diff options
| author | Joel Granados <joel.granados@kernel.org> | 2026-08-10 15:01:02 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-08-13 13:12:21 +0200 |
| commit | ef6cb145e216b0378686bce356f3317284d54231 (patch) | |
| tree | ec58eb5ebb5d26b311f0d781a6b5f7bd3bb4035b /tools/perf/scripts/python/stackcollapse.py | |
| parent | 68b3d4dbaf20539fc3268a2def90aa5e3b79bcb9 (diff) | |
net: enforce net sysctl registration
Replace the warning and file permission change with an error when an
"unsafe" net sysctl registration is detected.
One of the barriers preventing the const qualification of the ctl_tables
in the net directory is the permission (->mode) change in
ensure_safe_net_sysctl. This prep commit removes that barrier and
ensures that the received ctl_table pointer to the net ctl_table
register function is const.
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Link: https://patch.msgid.link/20260810-jag-net_const_qualify-v4-1-77e888237c69@kernel.org
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
