chiark / gitweb /
sd-daemon: turn sd-daemon.c into a shared library
[elogind.git] / src / selinux-setup.c
index c32c7ad8db5fb9c59341a63fc6c1d38d2e367a11..9ff27dcd77f03f0a1b7ab016d60deb3121b3e252 100644 (file)
@@ -39,7 +39,8 @@ int selinux_setup(char *const argv[]) {
        int enforce = 0;
 
        /* Already initialized? */
-       if (path_is_mount_point("/selinux") > 0)
+       if (path_is_mount_point("/sys/fs/selinux") > 0 ||
+           path_is_mount_point("/selinux") > 0)
                return 0;
 
        /* Before we load the policy we create a flag file to ensure