Lines Matching refs:enabled
66 if (!lsm->enabled) in is_enabled()
69 return *lsm->enabled; in is_enabled()
75 static void __init set_enabled(struct lsm_info *lsm, bool enabled) in set_enabled() argument
81 if (!lsm->enabled) { in set_enabled()
82 if (enabled) in set_enabled()
83 lsm->enabled = &lsm_enabled_true; in set_enabled()
85 lsm->enabled = &lsm_enabled_false; in set_enabled()
86 } else if (lsm->enabled == &lsm_enabled_true) { in set_enabled()
87 if (!enabled) in set_enabled()
88 lsm->enabled = &lsm_enabled_false; in set_enabled()
89 } else if (lsm->enabled == &lsm_enabled_false) { in set_enabled()
90 if (enabled) in set_enabled()
91 lsm->enabled = &lsm_enabled_true; in set_enabled()
93 *lsm->enabled = enabled; in set_enabled()
121 if (!lsm->enabled) in append_ordered_lsm()
122 lsm->enabled = &lsm_enabled_true; in append_ordered_lsm()
178 int enabled = lsm_allowed(lsm); in prepare_lsm() local
181 set_enabled(lsm, enabled); in prepare_lsm()
184 if (enabled) { in prepare_lsm()
340 if (!lsm->enabled) in early_security_init()
341 lsm->enabled = &lsm_enabled_true; in early_security_init()
365 if (lsm->enabled) in security_init()