chiark / gitweb /
sd-journal: check if the pointers passed are the same
[elogind.git] / src / core / condition.c
index abed4e5bf07be9950ebf80a51357a882c1ee3868..4293d6d1f190e7b386d2fa4e0a61d6f669283756 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, "ima"))
+                return access("/sys/kernel/security/ima/", F_OK) == 0;
         if (streq(parameter, "smack"))
                 return access("/sys/fs/smackfs", F_OK) == 0;
         return false;