summaryrefslogtreecommitdiffstats
path: root/kernel/audit_tree.c
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2016-11-16 16:14:33 -0500
committerPaul Moore <paul@paul-moore.com>2016-11-20 15:38:00 -0500
commitc1e8f06d7a0eea232ce0767471e1b4756ccab70a (patch)
tree5b33f318b333b8bf61e2f24f9767bc977b2c261e /kernel/audit_tree.c
parent833fc48d18ce3595990b405ae82a160b33028994 (diff)
downloadop-kernel-dev-c1e8f06d7a0eea232ce0767471e1b4756ccab70a.zip
op-kernel-dev-c1e8f06d7a0eea232ce0767471e1b4756ccab70a.tar.gz
audit: fix formatting of AUDIT_CONFIG_CHANGE events
The AUDIT_CONFIG_CHANGE events sometimes use a op= field. The current code logs the value of the field with quotes. This field is documented to not be encoded, so it should not have quotes. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Reviewed-by: Richard Guy Briggs <rgb@redhat.com> [PM: reformatted commit description to make checkpatch.pl happy] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit_tree.c')
-rw-r--r--kernel/audit_tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c
index 2577247..055f11b 100644
--- a/kernel/audit_tree.c
+++ b/kernel/audit_tree.c
@@ -458,8 +458,7 @@ static void audit_tree_log_remove_rule(struct audit_krule *rule)
ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_CONFIG_CHANGE);
if (unlikely(!ab))
return;
- audit_log_format(ab, "op=");
- audit_log_string(ab, "remove_rule");
+ audit_log_format(ab, "op=remove_rule");
audit_log_format(ab, " dir=");
audit_log_untrustedstring(ab, rule->tree->pathname);
audit_log_key(ab, rule->filterkey);
OpenPOWER on IntegriCloud