-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysctl: constify the ctl_table argument of proc_handlers
This is counterpart to Linux commit: commit 78eb4ea25cd5fdbdae7eb9fdf87b99195ff67508 Author: Joel Granados <[email protected]> Date: Wed Jul 24 20:59:29 2024 +0200 sysctl: treewide: constify the ctl_table argument of proc_handlers const qualify the struct ctl_table argument in the proc_handler function signatures. This is a prerequisite to moving the static ctl_table structs into .rodata data which will ensure that proc_handler function pointers cannot be modified. Fixes #349
- Loading branch information
Showing
1 changed file
with
50 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters