aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-05-16 13:04:26 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-16 13:16:09 -0400
commit7e450b4e47d14429d0cc17cf4ce389fc027937be (patch)
tree921d03e0659934f9ca4954447d3c6a38ad39f8fa /net
parent981f9face8fc21bede7b7a56a7cf6c176da5ab05 (diff)
rpc_pipefs: clear write bit from top level rpc_pipefs directory
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>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/rpc_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 3b62cf288031..f955d7252e4f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1118,7 +1118,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
1118 sb->s_op = &s_ops; 1118 sb->s_op = &s_ops;
1119 sb->s_time_gran = 1; 1119 sb->s_time_gran = 1;
1120 1120
1121 inode = rpc_get_inode(sb, S_IFDIR | 0755); 1121 inode = rpc_get_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO);
1122 sb->s_root = root = d_make_root(inode); 1122 sb->s_root = root = d_make_root(inode);
1123 if (!root) 1123 if (!root)
1124 return -ENOMEM; 1124 return -ENOMEM;