diff options
author | Eric Paris <eparis@redhat.com> | 2011-04-25 12:54:27 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2011-04-25 18:13:15 -0400 |
commit | f48b7399840b453e7282b523f535561fe9638a2d (patch) | |
tree | 29eed009469d35473367708ea60b9c5b01fc0c5f /security/smack/smack.h | |
parent | 0dc1ba24f7fff659725eecbba2c9ad679a0954cd (diff) |
LSM: split LSM_AUDIT_DATA_FS into _PATH and _INODE
The lsm common audit code has wacky contortions making sure which pieces
of information are set based on if it was given a path, dentry, or
inode. Split this into path and inode to get rid of some of the code
complexity.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security/smack/smack.h')
-rw-r--r-- | security/smack/smack.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/smack/smack.h b/security/smack/smack.h index b449cfdad21c..a16925c0e91a 100644 --- a/security/smack/smack.h +++ b/security/smack/smack.h | |||
@@ -316,22 +316,22 @@ static inline void smk_ad_setfield_u_tsk(struct smk_audit_info *a, | |||
316 | static inline void smk_ad_setfield_u_fs_path_dentry(struct smk_audit_info *a, | 316 | static inline void smk_ad_setfield_u_fs_path_dentry(struct smk_audit_info *a, |
317 | struct dentry *d) | 317 | struct dentry *d) |
318 | { | 318 | { |
319 | a->a.u.fs.path.dentry = d; | 319 | a->a.u.path.dentry = d; |
320 | } | 320 | } |
321 | static inline void smk_ad_setfield_u_fs_path_mnt(struct smk_audit_info *a, | 321 | static inline void smk_ad_setfield_u_fs_path_mnt(struct smk_audit_info *a, |
322 | struct vfsmount *m) | 322 | struct vfsmount *m) |
323 | { | 323 | { |
324 | a->a.u.fs.path.mnt = m; | 324 | a->a.u.path.mnt = m; |
325 | } | 325 | } |
326 | static inline void smk_ad_setfield_u_fs_inode(struct smk_audit_info *a, | 326 | static inline void smk_ad_setfield_u_fs_inode(struct smk_audit_info *a, |
327 | struct inode *i) | 327 | struct inode *i) |
328 | { | 328 | { |
329 | a->a.u.fs.inode = i; | 329 | a->a.u.inode = i; |
330 | } | 330 | } |
331 | static inline void smk_ad_setfield_u_fs_path(struct smk_audit_info *a, | 331 | static inline void smk_ad_setfield_u_fs_path(struct smk_audit_info *a, |
332 | struct path p) | 332 | struct path p) |
333 | { | 333 | { |
334 | a->a.u.fs.path = p; | 334 | a->a.u.path = p; |
335 | } | 335 | } |
336 | static inline void smk_ad_setfield_u_net_sk(struct smk_audit_info *a, | 336 | static inline void smk_ad_setfield_u_net_sk(struct smk_audit_info *a, |
337 | struct sock *sk) | 337 | struct sock *sk) |