]> Pileus Git - ~andy/linux/blobdiff - security/apparmor/lib.c
LSM: shrink sizeof LSM specific portion of common_audit_data
[~andy/linux] / security / apparmor / lib.c
index 9516948041adee7bc4c32c7a5e699346b6f5bc0f..e75829ba0ff91f771d37e8dd6f7554748c8a1988 100644 (file)
@@ -65,8 +65,10 @@ void aa_info_message(const char *str)
 {
        if (audit_enabled) {
                struct common_audit_data sa;
+               struct apparmor_audit_data aad = {0,};
                COMMON_AUDIT_DATA_INIT(&sa, NONE);
-               sa.aad.info = str;
+               sa.aad = &aad;
+               aad.info = str;
                aa_audit_msg(AUDIT_APPARMOR_STATUS, &sa, NULL);
        }
        printk(KERN_INFO "AppArmor: %s\n", str);