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>
char *lsm);
struct lsm_info {
+ const char *name; /* Required. */
int (*init)(void); /* Required. */
};
}
DEFINE_LSM(apparmor) = {
+ .name = "apparmor",
.init = apparmor_init,
};
return 0;
}
DEFINE_LSM(integrity) = {
+ .name = "integrity",
.init = integrity_iintcache_init,
};
/* SELinux requires early initialization in order to label
all processes and objects when they are created. */
DEFINE_LSM(selinux) = {
+ .name = "selinux",
.init = selinux_init,
};
* all processes and objects when they are created.
*/
DEFINE_LSM(smack) = {
+ .name = "smack",
.init = smack_init,
};
}
DEFINE_LSM(tomoyo) = {
+ .name = "tomoyo",
.init = tomoyo_init,
};