diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/ima/ima_audit.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/security/integrity/ima/ima_audit.c b/security/integrity/ima/ima_audit.c index 1e082bb987be..c1461150691c 100644 --- a/security/integrity/ima/ima_audit.c +++ b/security/integrity/ima/ima_audit.c | |||
@@ -54,19 +54,10 @@ void integrity_audit_msg(int audit_msgno, struct inode *inode, | |||
54 | audit_get_loginuid(current), | 54 | audit_get_loginuid(current), |
55 | audit_get_sessionid(current)); | 55 | audit_get_sessionid(current)); |
56 | audit_log_task_context(ab); | 56 | audit_log_task_context(ab); |
57 | switch (audit_msgno) { | 57 | audit_log_format(ab, " op="); |
58 | case AUDIT_INTEGRITY_DATA: | 58 | audit_log_string(ab, op); |
59 | case AUDIT_INTEGRITY_METADATA: | 59 | audit_log_format(ab, " cause="); |
60 | case AUDIT_INTEGRITY_PCR: | 60 | audit_log_string(ab, cause); |
61 | case AUDIT_INTEGRITY_STATUS: | ||
62 | audit_log_format(ab, " op=%s cause=%s", op, cause); | ||
63 | break; | ||
64 | case AUDIT_INTEGRITY_HASH: | ||
65 | audit_log_format(ab, " op=%s hash=%s", op, cause); | ||
66 | break; | ||
67 | default: | ||
68 | audit_log_format(ab, " op=%s", op); | ||
69 | } | ||
70 | audit_log_format(ab, " comm="); | 61 | audit_log_format(ab, " comm="); |
71 | audit_log_untrustedstring(ab, current->comm); | 62 | audit_log_untrustedstring(ab, current->comm); |
72 | if (fname) { | 63 | if (fname) { |