]> Pileus Git - ~andy/linux/blobdiff - security/apparmor/include/audit.h
LSM: shrink sizeof LSM specific portion of common_audit_data
[~andy/linux] / security / apparmor / include / audit.h
index 4ba78c203af1a98f4de541a60db7d7c64b8cac13..3868b1e5d5baa729b8ff0fcfd1d89060b8cf71c5 100644 (file)
@@ -103,7 +103,33 @@ enum aa_ops {
 };
 
 
-/* define a short hand for apparmor_audit_data portion of common_audit_data */
+struct apparmor_audit_data {
+       int error;
+       int op;
+       int type;
+       void *profile;
+       const char *name;
+       const char *info;
+       union {
+               void *target;
+               struct {
+                       long pos;
+                       void *target;
+               } iface;
+               struct {
+                       int rlim;
+                       unsigned long max;
+               } rlim;
+               struct {
+                       const char *target;
+                       u32 request;
+                       u32 denied;
+                       uid_t ouid;
+               } fs;
+       };
+};
+
+/* define a short hand for apparmor_audit_data structure */
 #define aad apparmor_audit_data
 
 void aa_audit_msg(int type, struct common_audit_data *sa,