LSM: Convert from initcall to struct lsm_info
authorKees Cook <keescook@chromium.org>
Thu, 11 Oct 2018 00:18:21 +0000 (17:18 -0700)
committerJames Morris <james.morris@microsoft.com>
Thu, 11 Oct 2018 03:40:21 +0000 (20:40 -0700)
commit5b89c1bd4c7e5c5ca8c5374fde35ecee6e16496c
tree1149bf533d702366169684a6ea71254f2d8917d6
parent6907e3746fa1b9b685230098266bbeba99b93c7d
LSM: Convert from initcall to struct lsm_info

In preparation for doing more interesting LSM init probing, this converts
the existing initcall system into an explicit call into a function pointer
from a section-collected struct lsm_info array.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: James Morris <james.morris@microsoft.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
include/linux/init.h
include/linux/lsm_hooks.h
include/linux/module.h
security/integrity/iint.c
security/security.c