Move SELinux mount to sysfs service

The selinux file system is mounted under /sys, so move the code for it
to the appropriate service.

X-Gentoo-Bug: 546290
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=546290
This commit is contained in:
William Hubbs 2015-04-11 16:29:58 -05:00
parent 1eab656ca1
commit 62addf1180
2 changed files with 9 additions and 9 deletions

View File

@ -60,14 +60,5 @@ start()
fi fi
fi fi
# Setup Kernel Support for SELinux
if [ -d /sys/fs/selinux ] && ! mountinfo -q /sys/fs/selinux; then
if grep -qs selinuxfs /proc/filesystems; then
ebegin "Mounting SELinux filesystem"
mount -t selinuxfs selinuxfs /sys/fs/selinux
eend $?
fi
fi
return 0 return 0
} }

View File

@ -82,6 +82,15 @@ mount_misc()
fi fi
fi fi
# Setup Kernel Support for SELinux
if [ -d /sys/fs/selinux ] && ! mountinfo -q /sys/fs/selinux; then
if grep -qs selinuxfs /proc/filesystems; then
ebegin "Mounting SELinux filesystem"
mount -t selinuxfs selinuxfs /sys/fs/selinux
eend $?
fi
fi
# setup up kernel support for efivarfs # setup up kernel support for efivarfs
# slightly complicated, as if it's build as a module but NOT yet loaded, # slightly complicated, as if it's build as a module but NOT yet loaded,
# it will NOT appear in /proc/filesystems yet # it will NOT appear in /proc/filesystems yet