aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-10-10 17:18:24 -0700
committerJames Morris <james.morris@microsoft.com>2018-10-10 20:40:22 -0700
commit07aed2f2af5a5892ced035dbcf3993f630825fc3 (patch)
tree2065a155d92f1a170c4b180162346db809b30a82 /security/smack
parentLSM: Convert security_initcall() into DEFINE_LSM() (diff)
downloadlinux-dev-07aed2f2af5a5892ced035dbcf3993f630825fc3.tar.xz
linux-dev-07aed2f2af5a5892ced035dbcf3993f630825fc3.zip
LSM: Record LSM name in struct lsm_info
In preparation for making LSM selections outside of the LSMs, include the name of LSMs in struct lsm_info. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: James Morris <james.morris@microsoft.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 c62e26939a69..2fb56bcf1316 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -4883,5 +4883,6 @@ static __init int smack_init(void)
* all processes and objects when they are created.
*/
DEFINE_LSM(smack) = {
+ .name = "smack",
.init = smack_init,
};