Skip to content

Commit 6cbfad5

Browse files
pevikchucklever
authored andcommitted
nfsd: remove read permission bit for ctl sysctl
It's meant to be write-only. Fixes: 89c905b ("nfsd: allow forced expiration of NFSv4 clients") Signed-off-by: Petr Vorel <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 3ac3711 commit 6cbfad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,7 @@ static const struct file_operations client_ctl_fops = {
26452645
static const struct tree_descr client_files[] = {
26462646
[0] = {"info", &client_info_fops, S_IRUSR},
26472647
[1] = {"states", &client_states_fops, S_IRUSR},
2648-
[2] = {"ctl", &client_ctl_fops, S_IRUSR|S_IWUSR},
2648+
[2] = {"ctl", &client_ctl_fops, S_IWUSR},
26492649
[3] = {""},
26502650
};
26512651

0 commit comments

Comments
 (0)