public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsd: Remove write permission from file content
@ 2013-01-04 11:45 ycnian
  2013-01-04 21:12 ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: ycnian @ 2013-01-04 11:45 UTC (permalink / raw)
  To: bfields; +Cc: linux-kernel, linux-nfs, Yanchuan Nian

From: Yanchuan Nian <ycnian@gmail.com>

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>
---
 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 9afa439..9f84703 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)
 			goto out_nomem;
 	}
 	if (cd->cache_show) {
-		p = proc_create_data("content", S_IFREG|S_IRUSR|S_IWUSR,
+		p = proc_create_data("content", S_IFREG|S_IRUSR,
 				cd->u.procfs.proc_ent,
 				&content_file_operations_procfs, cd);
 		cd->u.procfs.content_ent = p;
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-08 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04 11:45 [PATCH] nfsd: Remove write permission from file content ycnian
2013-01-04 21:12 ` J. Bruce Fields
     [not found]   ` <CAC5OsZPR88SktqjTKsqJVaxKZ1LkPnvPcT2gPSFq_oPDZ1FZpw@mail.gmail.com>
2013-01-08 15:18     ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox