diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-10 13:22:28 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-12 10:04:14 -0400 |
commit | ae2bb293a3e8adbc54d08cede5afc22929030c03 (patch) | |
tree | ba746f159ca0b7fe2fb5d517d5ee9850f36deda4 /fs/namei.c | |
parent | ea73ea7279884ba80896d4ea0f0443bf48b9e311 (diff) | |
download | linux-ae2bb293a3e8adbc54d08cede5afc22929030c03.tar.bz2 |
get rid of cred argument of vfs_open() and do_dentry_open()
always equal to ->f_cred
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index 223925e30adb..3cf02804d5ff 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3396,7 +3396,7 @@ finish_open_created: if (error) goto out; BUG_ON(*opened & FILE_OPENED); /* once it's opened, it's opened */ - error = vfs_open(&nd->path, file, current_cred()); + error = vfs_open(&nd->path, file); if (error) goto out; *opened |= FILE_OPENED; @@ -3499,7 +3499,7 @@ static int do_o_path(struct nameidata *nd, unsigned flags, struct file *file) int error = path_lookupat(nd, flags, &path); if (!error) { audit_inode(nd->name, path.dentry, 0); - error = vfs_open(&path, file, current_cred()); + error = vfs_open(&path, file); path_put(&path); } return error; |