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>
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 9c6b419..ae159b0 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -2040,6 +2040,7 @@
char *lsm);
struct lsm_info {
+ const char *name; /* Required. */
int (*init)(void); /* Required. */
};