diff options
Diffstat (limited to 'kernel/audit_fsnotify.c')
-rw-r--r-- | kernel/audit_fsnotify.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c index fba78047fb37..cf4512a33675 100644 --- a/kernel/audit_fsnotify.c +++ b/kernel/audit_fsnotify.c | |||
@@ -130,10 +130,8 @@ static void audit_mark_log_rule_change(struct audit_fsnotify_mark *audit_mark, c | |||
130 | ab = audit_log_start(NULL, GFP_NOFS, AUDIT_CONFIG_CHANGE); | 130 | ab = audit_log_start(NULL, GFP_NOFS, AUDIT_CONFIG_CHANGE); |
131 | if (unlikely(!ab)) | 131 | if (unlikely(!ab)) |
132 | return; | 132 | return; |
133 | audit_log_format(ab, "auid=%u ses=%u op=%s", | 133 | audit_log_session_info(ab); |
134 | from_kuid(&init_user_ns, audit_get_loginuid(current)), | 134 | audit_log_format(ab, " op=%s path=", op); |
135 | audit_get_sessionid(current), op); | ||
136 | audit_log_format(ab, " path="); | ||
137 | audit_log_untrustedstring(ab, audit_mark->path); | 135 | audit_log_untrustedstring(ab, audit_mark->path); |
138 | audit_log_key(ab, rule->filterkey); | 136 | audit_log_key(ab, rule->filterkey); |
139 | audit_log_format(ab, " list=%d res=1", rule->listnr); | 137 | audit_log_format(ab, " list=%d res=1", rule->listnr); |