diff options
| author | John Johansen <[email protected]> | 2022-09-19 07:46:09 +0000 |
|---|---|---|
| committer | John Johansen <[email protected]> | 2023-10-18 22:30:34 +0000 |
| commit | d20f5a1a6e792d22199c9989ec7ab9e95c48d60c (patch) | |
| tree | 391acb688c0a3956f455dddc1d3a1a5e2b190daa /security/apparmor/resource.c | |
| parent | apparmor: combine common_audit_data and apparmor_audit_data (diff) | |
| download | kernel-d20f5a1a6e792d22199c9989ec7ab9e95c48d60c.tar.gz kernel-d20f5a1a6e792d22199c9989ec7ab9e95c48d60c.zip | |
apparmor: rename audit_data->label to audit_data->subj_label
rename audit_data's label field to subj_label to better reflect its
use. Also at the same time drop unneeded assignments to ->subj_label
as the later call to aa_check_perms will do the assignment if needed.
Reviewed-by: Georgia Garcia <[email protected]>
Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'security/apparmor/resource.c')
| -rw-r--r-- | security/apparmor/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/resource.c b/security/apparmor/resource.c index b6b5e1bfe9a2..73ba26c646a5 100644 --- a/security/apparmor/resource.c +++ b/security/apparmor/resource.c @@ -36,7 +36,7 @@ static void audit_cb(struct audit_buffer *ab, void *va) rlim_names[ad->rlim.rlim], ad->rlim.max); if (ad->peer) { audit_log_format(ab, " peer="); - aa_label_xaudit(ab, labels_ns(ad->label), ad->peer, + aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, FLAGS_NONE, GFP_ATOMIC); } } |
