First with the move to systemd, we were asked to move the /selinux file system to a more standard location.
From this point forward the selinuxfs will be mounted under /sys/fs/selinux.
This seems to be the new location for kernel interface file systems, like cgroup
# ls /sys/fs/
cgroup ext4 fuse selinux
libselinux has been modified to mount the selinuxfs file system on the /sys/fs/selinux directory if it exists, otherwise libselinux will fall back to mounting on the /selinux directory if it exists.
One problem I foresee and we are beginning to fix is any application that hard coded "/selinux" in to the application. So far we have had to fix anaconda, livecd-tools, policycoreutils, and dracut. In most cases you should use the command line tools like setenforce or selinuxenabeled, or use the python bindings
python
>>> import selinux
>>> print (selinux.is_selinux_enabled())
1
And not hard code the path.
Another option is to grep /proc/self/mountinfo
# grep selinuxfs /proc/self/mountinfo | head -1 | awk '{ print $5 }'
/sys/fs/selinux
If you know of any applications that hard code /selinux into them, please let me know and I can work with the maintainer or developer to fix the code.
- Fedora 16 is about to go to Alpha release, some SELinux changes.
Typo?
2011-08-16 09:07 am (UTC)
Re: Typo?
2011-08-16 11:22 am (UTC)
Re: Typo?
2011-08-16 11:27 am (UTC)
Re: Typo?
2011-08-16 12:57 pm (UTC)