OSDN Git Service

loadpin: simplify sysctls use with register_sysctl()
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:28:20 +0000 (12:28 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 18:49:20 +0000 (11:49 -0700)
commit5df5bdc3c4733a47a818576c13a7bfd0f0715124
treeb47ea3f9e02e2d885fee7d910859ed81e4814443
parent96200952abeb35c4407851bfcdcbc144cc0d027d
loadpin: simplify sysctls use with register_sysctl()

register_sysctl_paths() is not required, we can just use
register_sysctl() with the required path specified.

Reviewed-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
security/loadpin/loadpin.c