chiark / gitweb /
selinux: selinuxfs can be mounted on /sys/fs/selinux
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 6 Jun 2011 22:48:16 +0000 (00:48 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 6 Jun 2011 22:53:39 +0000 (00:53 +0200)
commitef9d7dca5463e64510e174d55a869b4d5a3c4e84
treee25de95c51daa6dcf4d9d8793eb434cb1f4d7c87
parentaae5220d961a419a1e160de90ee5c393c7c13607
selinux: selinuxfs can be mounted on /sys/fs/selinux

The kernel now provides the /sys/fs/selinux mountpoint and libselinux
prefers it if it's available.

systemd currently tests only for /selinux and this leads to an infinite
loop of policy reloads in the latest Rawhide.

Fix it by checking both possible mountpoints.
Also add the new path to ignore_paths[].

/selinux appears also in nspawn.c. I don't think it's necessary to
change it there at this point.

https://bugzilla.redhat.com/show_bug.cgi?id=711015
src/mount-setup.c
src/selinux-setup.c