diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2008-02-08 10:23:01 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2008-02-08 10:23:01 +0000 |
| commit | 17ffe02220c97f0d25754a0cb65474ec262d80f5 (patch) | |
| tree | f62098203e6e58aad2872272a85a8dd379e7a3db /named.init | |
| parent | 62d611d7dfa82552d98d0f745f10a5d76b852eaa (diff) | |
| download | bind-17ffe02220c97f0d25754a0cb65474ec262d80f5.tar.gz bind-17ffe02220c97f0d25754a0cb65474ec262d80f5.tar.xz bind-17ffe02220c97f0d25754a0cb65474ec262d80f5.zip | |
- reverted patch for #400461 (not correct)
- fixed wrong %{chroot}/dev/* labelling during fresh system installation
(#431202)
Diffstat (limited to 'named.init')
| -rwxr-xr-x | named.init | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -81,6 +81,13 @@ start() ckcf_options='-z'; # enable named-checkzone for each zone (9.3.1+) ! if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then +# XXX There's no way how label devs correctly during installation because +# bind-chroot is installed before selinux-policy-targeted (#431202) + if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled && [ -x /sbin/restorecon ]; then + for dev in random zero null; do + /sbin/restorecon ${ROOTDIR}/dev/$dev; + done + fi; OPTIONS="${OPTIONS} -t ${ROOTDIR}" ckcf_options="$ckcf_options -t ${ROOTDIR}"; [ -s /etc/localtime ] && cp -fp /etc/localtime ${ROOTDIR}/etc/localtime; |
