diff options
Diffstat (limited to 'security/apparmor/include/audit.h')
| -rw-r--r-- | security/apparmor/include/audit.h | 28 | 
1 files changed, 27 insertions, 1 deletions
diff --git a/security/apparmor/include/audit.h b/security/apparmor/include/audit.h index 4ba78c203af..3868b1e5d5b 100644 --- a/security/apparmor/include/audit.h +++ b/security/apparmor/include/audit.h @@ -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,  |