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: [email protected] Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 92afd9f commit 771ec78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)