]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/nfsctl.c
CRED: Pass credentials through dentry_open()
[mirror_ubuntu-artful-kernel.git] / fs / nfsctl.c
index aed8145d9087e053a9349a46c07bd03ac6b02ed5..cc4ef2642a514cd069ab372c4c1378729ff413c2 100644 (file)
@@ -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);