chiark / gitweb /
Start ctrl-alt-del.target irreversibly
[elogind.git] / src / core / condition.c
index 4aa5530c3645b8ba7ddc9f01789d7e73182da366..16cae6d23b6555a734e903b81fac9091ef251822 100644 (file)
@@ -164,6 +164,8 @@ static bool test_security(const char *parameter) {
 #endif
        if (streq(parameter, "apparmor"))
                return access("/sys/kernel/security/apparmor/", F_OK) == 0;
+       if (streq(parameter, "smack"))
+               return access("/sys/fs/smackfs", F_OK) == 0;
         return false;
 }