Bug 602992
Summary: | SELinux is preventing /usr/sbin/named "write" access on named. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mijax <mijax.mijax> |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 12 | CC: | dwalsh, mgrepl, mijax.mijax |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:e0dccd9b769d11bb5f03f91e06aa9f91d01490fbaf818b66733d7c8b3cc1950c | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-06-16 14:47:17 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mijax
2010-06-11 08:23:56 UTC
*** Bug 602994 has been marked as a duplicate of this bug. *** *** Bug 602996 has been marked as a duplicate of this bug. *** *** Bug 602999 has been marked as a duplicate of this bug. *** Try to execute # restorecon -R -v /var/named After executing, is shown new alert, see: https://bugzilla.redhat.com/show_bug.cgi?id=603109 Did you move named directory to a different location? *** Bug 603109 has been marked as a duplicate of this bug. *** No, I did not move any thing but i instead of executing: # restorecon -R -v /var/named executed: # restorecon -R -v /chroot/named/var/named/ Because i run BIND DNS in chroot jail and there is not /var/named directroy. Yes that means you changed the default. You need to do the following commands # semanage fcontext -a -t var_t '/chroot(/.*)?' # semanage fcontext -a -e /var/named /chroot/named/var/named # restorecon -R -v /choot This will tell SELinux to label everything under /chroot as var_t and everything under /chroot/named/var/named as if it was under /var/named. I executed them but alert 2 new alarms: SELinux is preventing /usr/sbin/named "read" access on /chroot/named/etc/rndc.key. & SELinux is preventing /usr/sbin/named "write" access on /chroot/named/var/run/named. If need, I send Detailed Description and other informations that alerts show. Actually I think you need # semanage fcontext -d -e /var/named /chroot/named/var/named # semanage fcontext -a -e /var/named/chroot /chroot/named # restorecon -R -v /chroot OK. After executing your commands, Miroslav Grepl, named service ran successfully but after rebooting shown a SELinux alert. For repairing it, i run: setsebool -P named_write_master_zones=1 And Now all thing is OK. Thanks all. *** Bug 609470 has been marked as a duplicate of this bug. *** |