Skip to content

Commit 771ec78

Browse files
matttbekuba-moo
authored andcommitted
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: 73c900a ("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>
1 parent 92afd9f commit 771ec78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/mptcp/ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static struct ctl_table mptcp_sysctl_table[] = {
228228
{
229229
.procname = "available_schedulers",
230230
.maxlen = MPTCP_SCHED_BUF_MAX,
231-
.mode = 0644,
231+
.mode = 0444,
232232
.proc_handler = proc_available_schedulers,
233233
},
234234
{

0 commit comments

Comments
 (0)