提交 6cbfad5f 编写于 作者: P Petr Vorel 提交者: Chuck Lever

nfsd: remove read permission bit for ctl sysctl

It's meant to be write-only.

Fixes: 89c905be ("nfsd: allow forced expiration of NFSv4 clients")
Signed-off-by: NPetr Vorel <pvorel@suse.cz>
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
上级 3ac3711a
...@@ -2645,7 +2645,7 @@ static const struct file_operations client_ctl_fops = { ...@@ -2645,7 +2645,7 @@ static const struct file_operations client_ctl_fops = {
static const struct tree_descr client_files[] = { static const struct tree_descr client_files[] = {
[0] = {"info", &client_info_fops, S_IRUSR}, [0] = {"info", &client_info_fops, S_IRUSR},
[1] = {"states", &client_states_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] = {""}, [3] = {""},
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册