diff options
| author | Eric Paris <eparis@redhat.com> | 2011-04-25 13:10:27 -0400 |
|---|---|---|
| committer | Eric Paris <eparis@redhat.com> | 2011-04-25 18:14:07 -0400 |
| commit | a269434d2fb48a4d66c1d7bf821b7874b59c5b41 (patch) | |
| tree | 9c84b5f3e9f3adb3dd4a7e9da2b72dd7fe7eec49 /include | |
| parent | f48b7399840b453e7282b523f535561fe9638a2d (diff) | |
LSM: separate LSM_AUDIT_DATA_DENTRY from LSM_AUDIT_DATA_PATH
This patch separates and audit message that only contains a dentry from
one that contains a full path. This allows us to make it harder to
misuse the interfaces or for the interfaces to be implemented wrong.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/lsm_audit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/lsm_audit.h b/include/linux/lsm_audit.h index bbaceab83a65..88e78dedc2e8 100644 --- a/include/linux/lsm_audit.h +++ b/include/linux/lsm_audit.h | |||
| @@ -36,9 +36,11 @@ struct common_audit_data { | |||
| 36 | #define LSM_AUDIT_DATA_NONE 7 | 36 | #define LSM_AUDIT_DATA_NONE 7 |
| 37 | #define LSM_AUDIT_DATA_KMOD 8 | 37 | #define LSM_AUDIT_DATA_KMOD 8 |
| 38 | #define LSM_AUDIT_DATA_INODE 9 | 38 | #define LSM_AUDIT_DATA_INODE 9 |
| 39 | #define LSM_AUDIT_DATA_DENTRY 10 | ||
| 39 | struct task_struct *tsk; | 40 | struct task_struct *tsk; |
| 40 | union { | 41 | union { |
| 41 | struct path path; | 42 | struct path path; |
| 43 | struct dentry *dentry; | ||
| 42 | struct inode *inode; | 44 | struct inode *inode; |
| 43 | struct { | 45 | struct { |
| 44 | int netif; | 46 | int netif; |
