lsm_audit: don't specify the audit pre/post callbacks in 'struct common_audit_data'
[linux-3.10.git] / security / apparmor / audit.c
index 23f7eb6..cc3520d 100644 (file)
@@ -160,9 +160,7 @@ void aa_audit_msg(int type, struct common_audit_data *sa,
                  void (*cb) (struct audit_buffer *, void *))
 {
        sa->aad->type = type;
-       sa->lsm_pre_audit = audit_pre;
-       sa->lsm_post_audit = cb;
-       common_lsm_audit(sa);
+       common_lsm_audit(sa, audit_pre, cb);
 }
 
 /**