diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2013-05-07 13:21:46 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-05-08 22:24:37 -0400 |
commit | b62ee5249da92ff8960322eab770f742425831e3 (patch) | |
tree | c9136bb5df6bb9168d2f2cdd5c5543faeaa32222 /src/core | |
parent | 539e0a4d583bca7db837275b07a20a933b7f8f83 (diff) |
condition, man: Add support for ConditionSecurity=smack
According to Documentation/security/Smack.txt:
In keeping with the intent of Smack, configuration data is minimal
and not strictly required. The most important configuration step is
mounting the smackfs pseudo filesystem.
This means that checking the mount point should be enough.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/condition.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/condition.c b/src/core/condition.c index 4aa5530c36..16cae6d23b 100644 --- a/src/core/condition.c +++ b/src/core/condition.c @@ -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; } |