LSM: Convert security_initcall() into DEFINE_LSM()
authorKees Cook <keescook@chromium.org>
Thu, 11 Oct 2018 00:18:23 +0000 (17:18 -0700)
committerJames Morris <james.morris@microsoft.com>
Thu, 11 Oct 2018 03:40:21 +0000 (20:40 -0700)
commit3d6e5f6dcf6561e57b6466e43e14029fb196028d
tree829be56c4ecc3bf4bc9b4c9726977c6ad83fe010
parent3ac946d12e344a48c1192ef8910c6095a0d6a8ac
LSM: Convert security_initcall() into DEFINE_LSM()

Instead of using argument-based initializers, switch to defining the
contents of struct lsm_info on a per-LSM basis. This also drops
the final use of the now inaccurate "initcall" naming.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: James Morris <james.morris@microsoft.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
include/linux/lsm_hooks.h
security/apparmor/lsm.c
security/integrity/iint.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c