From: Jeff Layton Date: Wed, 16 May 2012 17:04:26 +0000 (-0400) Subject: rpc_pipefs: clear write bit from top level rpc_pipefs directory X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e450b4e47d14429d0cc17cf4ce389fc027937be;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Trond Myklebust --- 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) 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;