Skip to content

Commit 7e450b4

Browse files
jtlaytonTrond Myklebust
authored andcommitted
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>
1 parent 981f9fa commit 7e450b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sunrpc/rpc_pipe.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ rpc_fill_super(struct super_block *sb, void *data, int silent)
11181118
sb->s_op = &s_ops;
11191119
sb->s_time_gran = 1;
11201120

1121-
inode = rpc_get_inode(sb, S_IFDIR | 0755);
1121+
inode = rpc_get_inode(sb, S_IFDIR | S_IRUGO | S_IXUGO);
11221122
sb->s_root = root = d_make_root(inode);
11231123
if (!root)
11241124
return -ENOMEM;

0 commit comments

Comments
 (0)