diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2007-12-04 13:44:21 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2007-12-04 13:44:21 +0000 |
| commit | bb5d895564f52874a006adff83cd31c625b03470 (patch) | |
| tree | 9daa6d2ac27520259fb7661ad000b34fd4a904e7 /bind-chroot-admin.in | |
| parent | 27efb4347e88da39f6bb91db3ab031b8ac334ea8 (diff) | |
| download | bind-bb5d895564f52874a006adff83cd31c625b03470.tar.gz bind-bb5d895564f52874a006adff83cd31c625b03470.tar.xz bind-bb5d895564f52874a006adff83cd31c625b03470.zip | |
- bind-9.5-random_ports.patch was removed because upstream doesn't like it.bind-9_5_0-18_4_a7_fc9
query-source{,v6} options are sufficient (#391931)
- bind-chroot-admin called restorecon on /proc filesystem (#405281)
Diffstat (limited to 'bind-chroot-admin.in')
| -rw-r--r-- | bind-chroot-admin.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bind-chroot-admin.in b/bind-chroot-admin.in index 66e71ce..3a431d4 100644 --- a/bind-chroot-admin.in +++ b/bind-chroot-admin.in @@ -264,11 +264,15 @@ function sync_files() chmod 770 ${pfx}/var/named/{data/*/.,slaves/*/.,dynamic/*/.} >/dev/null 2>&1; if [ -e $changed ]; then if selinux_enabled && [ -x /sbin/restorecon ]; then - /sbin/restorecon -R ${BIND_CHROOT_PREFIX} >/dev/null 2>&1; + /sbin/restorecon -R ${BIND_CHROOT_PREFIX}/{dev,etc,var} >/dev/null 2>&1; /sbin/restorecon /etc/named.* >/dev/null 2>&1; /sbin/restorecon /etc/rndc.key >/dev/null 2>&1; /sbin/restorecon /etc/rndc.conf >/dev/null 2>&1; - /sbin/restorecon -R /var/named >/dev/null 2>&1; + for all in `ls /var/named`; do + if [ "x$all" != "xchroot" ]; then + restorecon -R /var/named/"$all" > /dev/null 2>&1; + fi + done fi; /sbin/service named try-restart rm -f $changed; |
