From ff0ebee239ce3461cab68ebb8e1a359fc34329de Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 14 Jul 2019 12:18:05 -0400 Subject: [PATCH] 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 --- fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index 209c51a..83e5fb3 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; -- 2.7.4