diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-07-14 19:19:57 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-07-22 01:24:45 +0300 |
commit | 39145f5f0cc924b494ad55a2bc9c1b4969b5a038 (patch) | |
tree | 559d3b73c4a7658cafc3eca00412793618f035f8 /fs/namei.c | |
parent | ff0ebee239ce3461cab68ebb8e1a359fc34329de (diff) | |
download | linux-39145f5f0cc924b494ad55a2bc9c1b4969b5a038.tar.xz |
filename_mountpoint(): make LOOKUP_NO_EVAL unconditional there
user_path_mountpoint_at() always gets it and the reasons to have it
there (i.e. in umount(2)) apply to kern_path_mountpoint() callers
as well.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 83e5fb3fad76..5b8c72dc0217 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2718,7 +2718,7 @@ filename_mountpoint(int dfd, struct filename *name, struct path *path, if (unlikely(error == -ESTALE)) error = path_mountpoint(&nd, flags | LOOKUP_REVAL, path); if (likely(!error)) - audit_inode(name, path->dentry, flags & LOOKUP_NO_EVAL); + audit_inode(name, path->dentry, LOOKUP_NO_EVAL); restore_nameidata(); putname(name); return error; |