summaryrefslogtreecommitdiffstats
path: root/bind-chroot-admin.in
diff options
context:
space:
mode:
authorjvdias <jvdias@fedoraproject.org>2006-07-21 20:36:45 +0000
committerjvdias <jvdias@fedoraproject.org>2006-07-21 20:36:45 +0000
commitf86f53c3025c1a008b0bfdf78d1d9c9c65238023 (patch)
tree9ddad29018029bc823bc00cfee60d4ea8dcf7fcb /bind-chroot-admin.in
parenta39c9daff895dff28af80085b3b72f68e7018592 (diff)
fix addenda to bugs 189789, 196398
Diffstat (limited to 'bind-chroot-admin.in')
-rw-r--r--bind-chroot-admin.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/bind-chroot-admin.in b/bind-chroot-admin.in
index 9395c6e..e748d99 100644
--- a/bind-chroot-admin.in
+++ b/bind-chroot-admin.in
@@ -52,10 +52,7 @@ function rootdir()
function selinux_enabled()
{
- [ -e /etc/selinux/config ] && . /etc/selinux/config;
- if [ -n "$SELINUX" ] && [ "$SELINUX" != 'disabled' ] ; then
- return 0;
- fi;
+ while read d mp fs rest; do if [ "$fs" = "selinuxfs" ]; then return 0; fi; done < /proc/mounts
return 1;
}