|
@@ -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 {
|