projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CRED: Pass credentials through dentry_open()
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
fs
/
nfsctl.c
diff --git
a/fs/nfsctl.c
b/fs/nfsctl.c
index aed8145d9087e053a9349a46c07bd03ac6b02ed5..cc4ef2642a514cd069ab372c4c1378729ff413c2 100644
(file)
--- a/
fs/nfsctl.c
+++ b/
fs/nfsctl.c
@@
-41,7
+41,8
@@
static struct file *do_open(char *name, int flags)
error = may_open(&nd, MAY_WRITE, FMODE_WRITE);
if (!error)
- return dentry_open(nd.path.dentry, nd.path.mnt, flags);
+ return dentry_open(nd.path.dentry, nd.path.mnt, flags,
+ current_cred());
path_put(&nd.path);
return ERR_PTR(error);