aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/lsm_audit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/lsm_audit.h b/include/linux/lsm_audit.h
index 40d1b84f2a3c..a5514a3a4f17 100644
--- a/include/linux/lsm_audit.h
+++ b/include/linux/lsm_audit.h
@@ -68,6 +68,7 @@ struct common_audit_data {
68 } u; 68 } u;
69 /* this union contains LSM specific data */ 69 /* this union contains LSM specific data */
70 union { 70 union {
71#ifdef CONFIG_SECURITY_SMACK
71 /* SMACK data */ 72 /* SMACK data */
72 struct smack_audit_data { 73 struct smack_audit_data {
73 const char *function; 74 const char *function;
@@ -76,6 +77,8 @@ struct common_audit_data {
76 char *request; 77 char *request;
77 int result; 78 int result;
78 } smack_audit_data; 79 } smack_audit_data;
80#endif
81#ifdef CONFIG_SECURITY_SELINUX
79 /* SELinux data */ 82 /* SELinux data */
80 struct { 83 struct {
81 u32 ssid; 84 u32 ssid;
@@ -86,6 +89,7 @@ struct common_audit_data {
86 struct av_decision *avd; 89 struct av_decision *avd;
87 int result; 90 int result;
88 } selinux_audit_data; 91 } selinux_audit_data;
92#endif
89 }; 93 };
90 /* these callback will be implemented by a specific LSM */ 94 /* these callback will be implemented by a specific LSM */
91 void (*lsm_pre_audit)(struct audit_buffer *, void *); 95 void (*lsm_pre_audit)(struct audit_buffer *, void *);