aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lsm_hooks.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/lsm_hooks.h')
-rw-r--r--include/linux/lsm_hooks.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 97a020c616ad..d13059feca09 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -2039,6 +2039,18 @@ extern char *lsm_names;
2039extern void security_add_hooks(struct security_hook_list *hooks, int count, 2039extern void security_add_hooks(struct security_hook_list *hooks, int count,
2040 char *lsm); 2040 char *lsm);
2041 2041
2042struct lsm_info {
2043 int (*init)(void); /* Required. */
2044};
2045
2046extern struct lsm_info __start_lsm_info[], __end_lsm_info[];
2047
2048#define security_initcall(lsm) \
2049 static struct lsm_info __lsm_##lsm \
2050 __used __section(.lsm_info.init) \
2051 __aligned(sizeof(unsigned long)) \
2052 = { .init = lsm, }
2053
2042#ifdef CONFIG_SECURITY_SELINUX_DISABLE 2054#ifdef CONFIG_SECURITY_SELINUX_DISABLE
2043/* 2055/*
2044 * Assuring the safety of deleting a security module is up to 2056 * Assuring the safety of deleting a security module is up to