summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/lsm_audit.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/lsm_audit.h')
-rw-r--r--kernel/include/linux/lsm_audit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/include/linux/lsm_audit.h b/kernel/include/linux/lsm_audit.h
index 1cc89e9df..ffb9c9da4 100644
--- a/kernel/include/linux/lsm_audit.h
+++ b/kernel/include/linux/lsm_audit.h
@@ -40,6 +40,11 @@ struct lsm_network_audit {
} fam;
};
+struct lsm_ioctlop_audit {
+ struct path path;
+ u16 cmd;
+};
+
/* Auxiliary data to use in generating the audit record. */
struct common_audit_data {
char type;
@@ -53,6 +58,7 @@ struct common_audit_data {
#define LSM_AUDIT_DATA_KMOD 8
#define LSM_AUDIT_DATA_INODE 9
#define LSM_AUDIT_DATA_DENTRY 10
+#define LSM_AUDIT_DATA_IOCTL_OP 11
union {
struct path path;
struct dentry *dentry;
@@ -68,6 +74,7 @@ struct common_audit_data {
} key_struct;
#endif
char *kmod_name;
+ struct lsm_ioctlop_audit *op;
} u;
/* this union contains LSM specific data */
union {