diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-02 18:56:06 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-03 18:35:10 -0500 |
commit | 1d21632d366b33b3adf4fa26144edf3162a9715d (patch) | |
tree | 175455034ab4eb1dcb7006f17ebcda2ddab8cde8 /net/sunrpc | |
parent | 46121cf7d85869bfe9588bac7ccf55aa0bc7f278 (diff) |
NFSv4: Ensure non-root user can trigger a referral automount
Currently only root can trigger a referral automount because only root
can access rpc_pipefs directories. Enabling read access to non-root
should be harmless (they can still not access the pipes themselves)
and will suffice to fix this problem.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 89273d35e0cc..081282878152 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -589,7 +589,7 @@ __rpc_mkdir(struct inode *dir, struct dentry *dentry) | |||
589 | { | 589 | { |
590 | struct inode *inode; | 590 | struct inode *inode; |
591 | 591 | ||
592 | inode = rpc_get_inode(dir->i_sb, S_IFDIR | S_IRUSR | S_IXUSR); | 592 | inode = rpc_get_inode(dir->i_sb, S_IFDIR | S_IRUGO | S_IXUGO); |
593 | if (!inode) | 593 | if (!inode) |
594 | goto out_err; | 594 | goto out_err; |
595 | inode->i_ino = iunique(dir->i_sb, 100); | 595 | inode->i_ino = iunique(dir->i_sb, 100); |