Commit 8dffd730 authored by Trond Myklebust's avatar Trond Myklebust

[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.
parent b49b7f62
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment