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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 2849e9b2c01d..27d4db9588bb 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -2045,8 +2045,14 @@ extern void security_add_hooks(struct security_hook_list *hooks, int count,
2045#define LSM_FLAG_LEGACY_MAJOR BIT(0) 2045#define LSM_FLAG_LEGACY_MAJOR BIT(0)
2046#define LSM_FLAG_EXCLUSIVE BIT(1) 2046#define LSM_FLAG_EXCLUSIVE BIT(1)
2047 2047
2048enum lsm_order {
2049 LSM_ORDER_FIRST = -1, /* This is only for capabilities. */
2050 LSM_ORDER_MUTABLE = 0,
2051};
2052
2048struct lsm_info { 2053struct lsm_info {
2049 const char *name; /* Required. */ 2054 const char *name; /* Required. */
2055 enum lsm_order order; /* Optional: default is LSM_ORDER_MUTABLE */
2050 unsigned long flags; /* Optional: flags describing LSM */ 2056 unsigned long flags; /* Optional: flags describing LSM */
2051 int *enabled; /* Optional: controlled by CONFIG_LSM */ 2057 int *enabled; /* Optional: controlled by CONFIG_LSM */
2052 int (*init)(void); /* Required. */ 2058 int (*init)(void); /* Required. */