summaryrefslogtreecommitdiff
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-07-14 12:18:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2019-07-21 18:24:44 -0400
commitff0ebee239ce3461cab68ebb8e1a359fc34329de (patch)
tree3345c30871889d3e6120b26f7d85693a172fdcf7 /fs/namei.c
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlwn-ff0ebee239ce3461cab68ebb8e1a359fc34329de.tar.gz
lwn-ff0ebee239ce3461cab68ebb8e1a359fc34329de.zip
filename_lookup(): audit_inode() argument is always 0
We hadn't been passing LOOKUP_PARENT in flags to that thing since filename_parentat() had been split off back in 2015. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 209c51a5226c..83e5fb3fad76 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2350,7 +2350,7 @@ int filename_lookup(int dfd, struct filename *name, unsigned flags,
retval = path_lookupat(&nd, flags | LOOKUP_REVAL, path);
if (likely(!retval))
- audit_inode(name, path->dentry, flags & LOOKUP_PARENT);
+ audit_inode(name, path->dentry, 0);
restore_nameidata();
putname(name);
return retval;