summaryrefslogtreecommitdiffstats
path: root/mm/cma.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-05-08 10:13:41 -0700
committerKees Cook <keescook@chromium.org>2024-05-08 12:50:40 -0700
commite406737b11103752838cf50fd197ec8e9352bbf7 (patch)
tree3914d3418cc0d348d2ad510f81d8ec002c2b6c93 /mm/cma.c
parent39cd87c4eb2b893354f3b850f916353f2658ae6f (diff)
downloadlinux-stable-e406737b11103752838cf50fd197ec8e9352bbf7.tar.gz
linux-stable-e406737b11103752838cf50fd197ec8e9352bbf7.tar.bz2
linux-stable-e406737b11103752838cf50fd197ec8e9352bbf7.zip
seccomp: Constify sysctl subhelpers
The read_actions_logged() and write_actions_logged() helpers called by the sysctl proc handler seccomp_actions_logged_handler() are already expecting their sysctl table argument to be read-only. Actually mark the argument as const in preparation[1] for global constification of the sysctl tables. Suggested-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/lkml/20240423-sysctl-const-handler-v3-11-e0beccb836e2@weissschuh.net/ [1] Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Reviewed-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20240508171337.work.861-kees@kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'mm/cma.c')
0 files changed, 0 insertions, 0 deletions