]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
nfsd: Remove write permission from file content
authorYanchuan Nian <ycnian@gmail.com>
Fri, 4 Jan 2013 11:45:35 +0000 (19:45 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jan 2013 23:17:38 +0000 (18:17 -0500)
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>
net/sunrpc/cache.c

index 9afa4393c21728cb5c0cbd675b6c25966fe99175..9f8470353362584d2fbd14e12a966a0fecec193d 100644 (file)
@@ -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;