summaryrefslogtreecommitdiff
path: root/src/core/condition.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-03 21:09:38 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-03 21:51:28 +0100
commitcfb1f5df7ce6868d3edb7333591b91c9809d64d3 (patch)
tree44a3419d44887d8e5d046a1c54c69e624c0a5d42 /src/core/condition.c
parent875c2e220e2611165e09051c4747971811f1de58 (diff)
core: introduce ConditionSecurity=audit
And conditionalize journald audit support with it
Diffstat (limited to 'src/core/condition.c')
-rw-r--r--src/core/condition.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/condition.c b/src/core/condition.c
index ec78169fc3..8e2e3118d7 100644
--- a/src/core/condition.c
+++ b/src/core/condition.c
@@ -38,6 +38,7 @@
#include "apparmor-util.h"
#include "ima-util.h"
#include "selinux-util.h"
+#include "audit.h"
static bool condition_test_security(Condition *c) {
assert(c);
@@ -50,6 +51,8 @@ static bool condition_test_security(Condition *c) {
return mac_smack_use() == !c->negate;
if (streq(c->parameter, "apparmor"))
return mac_apparmor_use() == !c->negate;
+ if (streq(c->parameter, "audit"))
+ return use_audit() == !c->negate;
if (streq(c->parameter, "ima"))
return use_ima() == !c->negate;