mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 19:42:19 +00:00
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 <georgia.garcia@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -722,11 +722,11 @@ out:
|
||||
return error;
|
||||
|
||||
fail:
|
||||
ad.label = begin_current_label_crit_section();
|
||||
ad.subj_label = begin_current_label_crit_section();
|
||||
ad.info = name;
|
||||
ad.error = error = -EINVAL;
|
||||
aa_audit_msg(AUDIT_APPARMOR_DENIED, &ad, NULL);
|
||||
end_current_label_crit_section(ad.label);
|
||||
end_current_label_crit_section(ad.subj_label);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user