[PATCH 07/11] seccomp: simplify sysctls with register_sysctl_init()

Kees Cook keescook at chromium.org
Thu Mar 2 22:56:27 UTC 2023


On Thu, Mar 02, 2023 at 12:28:22PM -0800, Luis Chamberlain wrote:
> register_sysctl_paths() is only needed if you have childs (directories)
> with entries. Just use register_sysctl_init() as it also does the
> kmemleak check for you.
> 
> Signed-off-by: Luis Chamberlain <mcgrof at kernel.org>

Acked-by: Kees Cook <keescook at chromium.org>

-- 
Kees Cook



More information about the Linux-security-module-archive mailing list