mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
apparmor: move task from common_audit_data to apparmor_audit_data
apparmor is the only LSM that uses the common_audit_data tsk field. Instead of making all LSMs pay for the stack space move the aa usage into the apparmor_audit_data. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
bd5e50f9c1
commit
0972c74ecb
3 changed files with 11 additions and 3 deletions
|
@ -67,8 +67,8 @@ static int audit_caps(struct aa_profile *profile, struct task_struct *task,
|
|||
struct apparmor_audit_data aad = {0,};
|
||||
COMMON_AUDIT_DATA_INIT(&sa, LSM_AUDIT_DATA_CAP);
|
||||
sa.aad = &aad;
|
||||
sa.tsk = task;
|
||||
sa.u.cap = cap;
|
||||
sa.aad->tsk = task;
|
||||
sa.aad->op = OP_CAPABLE;
|
||||
sa.aad->error = error;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue