summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2020-03-13 13:39:57 +0100
committerChuck Lever <chuck.lever@oracle.com>2020-03-16 12:04:34 -0400
commit6cbfad5f201b3204d74b5c749edf03c3ce14bab4 (patch)
tree2fab8b9b99e6fdd1d57572f361343cd96b0d026e /fs/nfsd/nfs4state.c
parent3ac3711adb88f238ae562dcd3c6d064d23331404 (diff)
nfsd: remove read permission bit for ctl sysctl
It's meant to be write-only. Fixes: 89c905beccbb ("nfsd: allow forced expiration of NFSv4 clients") Signed-off-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 169829db2817..3a24b3c328c3 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2645,7 +2645,7 @@ static const struct file_operations client_ctl_fops = {
static const struct tree_descr client_files[] = {
[0] = {"info", &client_info_fops, S_IRUSR},
[1] = {"states", &client_states_fops, S_IRUSR},
- [2] = {"ctl", &client_ctl_fops, S_IRUSR|S_IWUSR},
+ [2] = {"ctl", &client_ctl_fops, S_IWUSR},
[3] = {""},
};