diff --git a/fs/namei.c b/fs/namei.c index 43a97ee1d4c864e4053f86aec5830e037721d125..498ede374dc002a18546b77e4c67e48f06961942 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2751,7 +2751,7 @@ static int do_last(struct nameidata *nd, struct path *path, if (error) return error; - audit_inode(name, dir, 0); + audit_inode(name, dir, LOOKUP_PARENT); error = -EISDIR; /* trailing slashes? */ if (nd->last.name[nd->last.len])