LSM: Add security module hook list heads
authorCasey Schaufler <casey@schaufler-ca.com>
Sat, 2 May 2015 22:11:36 +0000 (15:11 -0700)
committerJames Morris <james.l.morris@oracle.com>
Tue, 12 May 2015 05:00:36 +0000 (15:00 +1000)
commite20b043a6902ecb61c2c84355c3bae5149f391db
treef5268475bb8b4bee2fbfafb063c41b02b9769af1
parentf25fce3e8f1f15d6d2a22620ebf98a68a4641f06
LSM: Add security module hook list heads

Add a list header for each security hook. They aren't used until
later in the patch series. They are grouped together in a structure
so that there doesn't need to be an external address for each.

Macro-ize the initialization of the security_operations
for each security module in anticipation of changing out
the security_operations structure.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Paul Moore <paul@paul-moore.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <james.l.morris@oracle.com>
include/linux/lsm_hooks.h
security/apparmor/lsm.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c
security/yama/yama_lsm.c