rpc_pipefs: clear write bit from top level rpc_pipefs directory
authorJeff Layton <jlayton@redhat.com>
Wed, 16 May 2012 17:04:26 +0000 (13:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 May 2012 17:16:09 +0000 (10:16 -0700)
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>
net/sunrpc/rpc_pipe.c

index 3b62cf2880316bfb9942960e1fc34e39c64f92bf..f955d7252e4fe1ab20338159b3a6b011dd305ca0 100644 (file)
@@ -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;