summaryrefslogtreecommitdiffstats
path: root/security/lsm_audit.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-15 02:54:32 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-21 02:29:41 +0100
commit40ffe67d2e89c7a475421d007becc11a2f88ea3d (patch)
tree5373e71b18895b9ffd8370a88aec6c54438240a0 /security/lsm_audit.c
parentconstify path argument of trace_seq_path() (diff)
downloadlinux-40ffe67d2e89c7a475421d007becc11a2f88ea3d.tar.xz
linux-40ffe67d2e89c7a475421d007becc11a2f88ea3d.zip
switch unix_sock to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--security/lsm_audit.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c
index 293b8c45b1d1..8b8f0902f6e5 100644
--- a/security/lsm_audit.c
+++ b/security/lsm_audit.c
@@ -313,12 +313,8 @@ static void dump_common_audit_data(struct audit_buffer *ab,
}
case AF_UNIX:
u = unix_sk(sk);
- if (u->dentry) {
- struct path path = {
- .dentry = u->dentry,
- .mnt = u->mnt
- };
- audit_log_d_path(ab, " path=", &path);
+ if (u->path.dentry) {
+ audit_log_d_path(ab, " path=", &u->path);
break;
}
if (!u->addr)