diff options
author | John Johansen <john.johansen@canonical.com> | 2022-09-19 20:48:48 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2023-10-18 15:30:38 -0700 |
commit | 90c436a64a6e20482a9a613c47eb4af2e8a5328e (patch) | |
tree | b5df0d74b93bb320f34f5b4a109f46a9128ea0b7 /security/apparmor/include/audit.h | |
parent | d20f5a1a6e792d22199c9989ec7ab9e95c48d60c (diff) | |
download | linux-90c436a64a6e20482a9a613c47eb4af2e8a5328e.tar.gz linux-90c436a64a6e20482a9a613c47eb4af2e8a5328e.tar.bz2 linux-90c436a64a6e20482a9a613c47eb4af2e8a5328e.zip |
apparmor: pass cred through to audit info.
The cred is needed to properly audit some messages, and will be needed
in the future for uid conditional mediation. So pass it through to
where the apparmor_audit_data struct gets defined.
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/audit.h')
-rw-r--r-- | security/apparmor/include/audit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/apparmor/include/audit.h b/security/apparmor/include/audit.h index 096f0a04af87..42d701fec5a6 100644 --- a/security/apparmor/include/audit.h +++ b/security/apparmor/include/audit.h @@ -109,6 +109,7 @@ struct apparmor_audit_data { int type; u16 class; const char *op; + const struct cred *subj_cred; struct aa_label *subj_label; const char *name; const char *info; |