mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 08:39:08 -04:00
mptcp: sysctl: avail sched: remove write access
'net.mptcp.available_schedulers' sysctl knob is there to list available
schedulers, not to modify this list.
There are then no reasons to give write access to it.
Nothing would have been written anyway, but no errors would have been
returned, which is unexpected.
Fixes: 73c900aa36 ("mptcp: add net.mptcp.available_schedulers")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250108-net-sysctl-current-nsproxy-v1-1-5df34b2083e8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
92afd9f3bc
commit
771ec78dc8
@@ -228,7 +228,7 @@ static struct ctl_table mptcp_sysctl_table[] = {
|
||||
{
|
||||
.procname = "available_schedulers",
|
||||
.maxlen = MPTCP_SCHED_BUF_MAX,
|
||||
.mode = 0644,
|
||||
.mode = 0444,
|
||||
.proc_handler = proc_available_schedulers,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user