]> Pileus Git - ~andy/linux/blobdiff - security/apparmor/capability.c
LSM: shrink sizeof LSM specific portion of common_audit_data
[~andy/linux] / security / apparmor / capability.c
index 9982c48def4e2a7f237e235548b679d6bdb7935e..088dba3bf7dcbcc9a716c3559842d88819c4ef01 100644 (file)
@@ -64,11 +64,13 @@ static int audit_caps(struct aa_profile *profile, struct task_struct *task,
        struct audit_cache *ent;
        int type = AUDIT_APPARMOR_AUTO;
        struct common_audit_data sa;
+       struct apparmor_audit_data aad = {0,};
        COMMON_AUDIT_DATA_INIT(&sa, CAP);
+       sa.aad = &aad;
        sa.tsk = task;
        sa.u.cap = cap;
-       sa.aad.op = OP_CAPABLE;
-       sa.aad.error = error;
+       sa.aad->op = OP_CAPABLE;
+       sa.aad->error = error;
 
        if (likely(!error)) {
                /* test if auditing is being forced */