summaryrefslogtreecommitdiff
path: root/security/apparmor/lsm.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-10-11 03:18:24 +0300
committerJames Morris <james.morris@microsoft.com>2018-10-11 06:40:22 +0300
commit07aed2f2af5a5892ced035dbcf3993f630825fc3 (patch)
tree2065a155d92f1a170c4b180162346db809b30a82 /security/apparmor/lsm.c
parent3d6e5f6dcf6561e57b6466e43e14029fb196028d (diff)
downloadlinux-07aed2f2af5a5892ced035dbcf3993f630825fc3.tar.xz
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/apparmor/lsm.c')
-rw-r--r--security/apparmor/lsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index c4863956c832..dca4b7dbf368 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -1607,5 +1607,6 @@ alloc_out:
}
DEFINE_LSM(apparmor) = {
+ .name = "apparmor",
.init = apparmor_init,
};