[Pkg-sysvinit-devel] Bug#493679: initscripts: need to have SE Linux context set on /lib/init/rw

Russell Coker russell at coker.com.au
Mon Aug 4 06:05:37 UTC 2008


Package: initscripts
Version: 2.86.ds1-60
Severity: normal

After /lib/init/rw is mounted the root directory needs to have it's
context set.  This can be done by /etc/init.d/mountkernfs.sh after
calling domount(), or can be done in the domount() function in
/lib/init/mount-functions.sh.

For my tests I have the following in /lib/init/mount-functions.sh at the
end of the domount() function:

if [ "$FSTYPE" = "tmpfs" -a -x /sbin/restorecon ]; then
        /sbin/restorecon $MTPT
fi





More information about the Pkg-sysvinit-devel mailing list