LSM: Introduce LSM_FLAG_LEGACY_MAJOR
authorKees Cook <keescook@chromium.org>
Wed, 19 Sep 2018 23:13:25 +0000 (16:13 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:42 +0000 (13:18 -0800)
commit47008e5161fa097ce9b848dee194b43262b743a5
tree4a2e652b63497aef5f1b6d55f7ec24c562617a25
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
LSM: Introduce LSM_FLAG_LEGACY_MAJOR

This adds a flag for the current "major" LSMs to distinguish them when
we have a universal method for ordering all LSMs. It's called "legacy"
since the distinction of "major" will go away in the blob-sharing world.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
include/linux/lsm_hooks.h
security/apparmor/lsm.c
security/selinux/hooks.c
security/smack/smack_lsm.c
security/tomoyo/tomoyo.c