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:
parent
1eab656ca1
commit
62addf1180
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user