Skip to content

Commit

Permalink
rpc_pipefs: clear write bit from top level rpc_pipefs directory
Browse files Browse the repository at this point in the history
We can't create new files or directories here from userspace, so let's
not pretend that this directory is writable.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Jeff Layton authored and Trond Myklebust committed May 16, 2012
1 parent 981f9fa commit 7e450b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
sb->s_op = &s_ops;
sb->s_time_gran = 1;

inode = rpc_get_inode(sb, S_IFDIR | 0755);
inode = rpc_get_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO);
sb->s_root = root = d_make_root(inode);
if (!root)
return -ENOMEM;
Expand Down

0 comments on commit 7e450b4

Please sign in to comment.