summaryrefslogtreecommitdiff
path: root/src/mount-setup.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-06-07 00:48:16 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-06-07 00:53:39 +0200
commitef9d7dca5463e64510e174d55a869b4d5a3c4e84 (patch)
treee25de95c51daa6dcf4d9d8793eb434cb1f4d7c87 /src/mount-setup.c
parentaae5220d961a419a1e160de90ee5c393c7c13607 (diff)
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
Diffstat (limited to 'src/mount-setup.c')
-rw-r--r--src/mount-setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 48c32eab33..6feee6aa16 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -63,6 +63,7 @@ static const MountPoint mount_table[] = {
* we just list them here so that we know that we should ignore them */
static const char * const ignore_paths[] = {
+ "/sys/fs/selinux",
"/selinux",
"/proc/bus/usb"
};