diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-05-13 12:25:18 +0300 |
|---|---|---|
| committer | Joel Granados <j.granados@samsung.com> | 2024-06-03 16:16:15 +0300 |
| commit | 32fe91524e1651b9a0e11ddfbc63de9aa485cf48 (patch) | |
| tree | 8c6531a0fa5cf9622f64f8124c7525da5042286f /include | |
| parent | 4154342bf153a6c2a2820e3d517188d7c76f7055 (diff) | |
| download | linux-32fe91524e1651b9a0e11ddfbc63de9aa485cf48.tar.xz | |
sysctl: constify ctl_table arguments of utility function
In a future commit the proc_handlers themselves will change to
"const struct ctl_table". As a preparation for that adapt the internal
helper.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Joel Granados <j.granados@samsung.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sysctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 09db2f2e6488..54fbec062772 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -237,7 +237,7 @@ extern struct ctl_table_header *register_sysctl_mount_point(const char *path); void do_sysctl_args(void); bool sysctl_is_alias(char *param); -int do_proc_douintvec(struct ctl_table *table, int write, +int do_proc_douintvec(const struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos, int (*conv)(unsigned long *lvalp, unsigned int *valp, |
