diff options
author | Yanchuan Nian <ycnian@gmail.com> | 2013-01-04 06:45:35 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-01-23 18:17:38 -0500 |
commit | ec1686761753ead775e9474a6265323a4c555bc6 (patch) | |
tree | d06029ef918aa6e63a9320e3b923819d150f595a /net/sunrpc/cache.c | |
parent | 266533c6df7a4a4e2ebd0bfdd272f7eb7cf4b81f (diff) |
nfsd: Remove write permission from file content
The write function doesn't be implemented in file content, and it's meaningless
to write data into this file directly. Remove write permission from it.
Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 9afa4393c217..9f8470353362 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -1614,7 +1614,7 @@ static int create_cache_proc_entries(struct cache_detail *cd, struct net *net) | |||
1614 | goto out_nomem; | 1614 | goto out_nomem; |
1615 | } | 1615 | } |
1616 | if (cd->cache_show) { | 1616 | if (cd->cache_show) { |
1617 | p = proc_create_data("content", S_IFREG|S_IRUSR|S_IWUSR, | 1617 | p = proc_create_data("content", S_IFREG|S_IRUSR, |
1618 | cd->u.procfs.proc_ent, | 1618 | cd->u.procfs.proc_ent, |
1619 | &content_file_operations_procfs, cd); | 1619 | &content_file_operations_procfs, cd); |
1620 | cd->u.procfs.content_ent = p; | 1620 | cd->u.procfs.content_ent = p; |