seccomp: simplify sysctls with register_sysctl_init()
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:28:22 +0000 (12:28 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 18:49:20 +0000 (11:49 -0700)
commit02a6b455fb35d29620ceaa0ed053ae9846f875ca
treefed9f00b5ba93a05211db9573b2dc5b9bfeac9db
parent98cfeb8d540aa009cd5cb973def265b6c44afa00
seccomp: simplify sysctls with register_sysctl_init()

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.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/seccomp.c