summaryrefslogtreecommitdiff
path: root/security/smack
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-09-19 16:13:25 -0700
committerKees Cook <keescook@chromium.org>2019-01-08 13:18:42 -0800
commit47008e5161fa097ce9b848dee194b43262b743a5 (patch)
tree4a2e652b63497aef5f1b6d55f7ec24c562617a25 /security/smack
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
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>
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 430d4f35e55c..d72d215d7fde 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -4812,5 +4812,6 @@ static __init int smack_init(void)
*/
DEFINE_LSM(smack) = {
.name = "smack",
+ .flags = LSM_FLAG_LEGACY_MAJOR,
.init = smack_init,
};