- return is_selinux_enabled() > 0;
-#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 use_selinux();
+ if (streq(parameter, "apparmor"))
+ return use_apparmor();
+ if (streq(parameter, "ima"))
+ return use_ima();
+ if (streq(parameter, "smack"))
+ return use_smack();