summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2003-01-14 18:09:23 -0800
committerTrond Myklebust <trond.myklebust@fys.uio.no>2003-01-14 18:09:23 -0800
commit8dffd7300083445b265ec2c4549de42ca8c1010d (patch)
tree0c082039c7e2cff5783ad6909d5c739ae70bc4d9
parentb49b7f62a6ba6323860e1676470f893030fe017f (diff)
[PATCH] Fix RPC client warning in 2.5.58...
The warning /lockd/clntXxXxXxXx RPC: Couldn't create pipefs entry is due to the lockd process starting RPC clients as an unprivileged user, causing path_walk() to fail. The following patch fixes it.
-rw-r--r--net/sunrpc/rpc_pipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 79ddba53eafc..db2940bdb673 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -342,19 +342,19 @@ struct rpc_filelist {
static struct rpc_filelist files[] = {
[RPCAUTH_lockd] = {
.name = "lockd",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_nfs] = {
.name = "nfs",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_portmap] = {
.name = "portmap",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
[RPCAUTH_statd] = {
.name = "statd",
- .mode = S_IFDIR | S_IRUSR | S_IXUSR,
+ .mode = S_IFDIR | S_IRUGO | S_IXUGO,
},
};
@@ -425,7 +425,7 @@ rpc_lookup_path(char *path, struct nameidata *nd, int flags)
return -ENODEV;
}
nd->mnt = mntget(rpc_mount);
- nd->dentry = dget(rpc_mount->mnt_sb->s_root);
+ nd->dentry = dget(rpc_mount->mnt_root);
nd->last_type = LAST_ROOT;
nd->flags = flags;