projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
981f9fa
)
rpc_pipefs: clear write bit from top level rpc_pipefs directory
author
Jeff Layton
<jlayton@redhat.com>
Wed, 16 May 2012 17:04:26 +0000
(13:04 -0400)
committer
Trond 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
patch
|
blob
|
history
diff --git
a/net/sunrpc/rpc_pipe.c
b/net/sunrpc/rpc_pipe.c
index
3b62cf2
..
f955d72
100644
(file)
--- 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;