diff options
author | Matthieu Baerts (NGI0) <[email protected]> | 2025-01-08 16:34:29 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2025-01-09 08:53:34 -0800 |
commit | 771ec78dc8b48d562e6015bb535ed3cd37043d78 (patch) | |
tree | 88492944f92ecdf70b52cf3400a5f5317d68648b | |
parent | 92afd9f3bc22c92a88a8972eb34a9ef814d3286b (diff) |
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: 73c900aa3660 ("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]>
-rw-r--r-- | net/mptcp/ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/ctrl.c b/net/mptcp/ctrl.c index 38d8121331d4..d9b57fab2a13 100644 --- a/net/mptcp/ctrl.c +++ b/net/mptcp/ctrl.c @@ -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, }, { |