diff options
Diffstat (limited to 'security/apparmor/ipc.c')
| -rw-r--r-- | security/apparmor/ipc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/security/apparmor/ipc.c b/security/apparmor/ipc.c index 7ee05c6f3c64..c3da93a5150d 100644 --- a/security/apparmor/ipc.c +++ b/security/apparmor/ipc.c | |||
| @@ -26,7 +26,7 @@ static void audit_cb(struct audit_buffer *ab, void *va) | |||
| 26 | { | 26 | { |
| 27 | struct common_audit_data *sa = va; | 27 | struct common_audit_data *sa = va; |
| 28 | audit_log_format(ab, " target="); | 28 | audit_log_format(ab, " target="); |
| 29 | audit_log_untrustedstring(ab, sa->aad.target); | 29 | audit_log_untrustedstring(ab, sa->aad->target); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | /** | 32 | /** |
| @@ -41,10 +41,12 @@ static int aa_audit_ptrace(struct aa_profile *profile, | |||
| 41 | struct aa_profile *target, int error) | 41 | struct aa_profile *target, int error) |
| 42 | { | 42 | { |
| 43 | struct common_audit_data sa; | 43 | struct common_audit_data sa; |
| 44 | struct apparmor_audit_data aad = {0,}; | ||
| 44 | COMMON_AUDIT_DATA_INIT(&sa, NONE); | 45 | COMMON_AUDIT_DATA_INIT(&sa, NONE); |
| 45 | sa.aad.op = OP_PTRACE; | 46 | sa.aad = &aad; |
| 46 | sa.aad.target = target; | 47 | aad.op = OP_PTRACE; |
| 47 | sa.aad.error = error; | 48 | aad.target = target; |
| 49 | aad.error = error; | ||
| 48 | 50 | ||
| 49 | return aa_audit(AUDIT_APPARMOR_AUTO, profile, GFP_ATOMIC, &sa, | 51 | return aa_audit(AUDIT_APPARMOR_AUTO, profile, GFP_ATOMIC, &sa, |
| 50 | audit_cb); | 52 | audit_cb); |
