Re: [PATCH] seccomp: Constify sysctl subhelpers

2024-05-08 Thread Luis Chamberlain
On Wed, May 08, 2024 at 10:13:41AM -0700, Kees Cook wrote: > 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 i

Re: [PATCH] seccomp: Constify sysctl subhelpers

2024-05-08 Thread Thomas Weißschuh
On 2024-05-08 10:13:41+, Kees Cook wrote: > 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

[PATCH] seccomp: Constify sysctl subhelpers

2024-05-08 Thread Kees Cook
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. S