yama: simplfy sysctls with register_sysctl()
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 2 Mar 2023 20:28:21 +0000 (12:28 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 13 Apr 2023 18:49:20 +0000 (11:49 -0700)
commit98cfeb8d540aa009cd5cb973def265b6c44afa00
tree3e12ce270715cacbc752aa91568c2687e933e477
parent5df5bdc3c4733a47a818576c13a7bfd0f0715124
yama: simplfy sysctls with register_sysctl()

register_sysctl_paths() is only need if you have directories with
entries, simplify this by using register_sysctl().

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