History

lsm: cleanup the debug and console output in lsm_init.c

Move away from an init specific init_debug() macro to a more general lsm_pr()/lsm_pr_cont()/lsm_pr_dbg() set of macros that are available both before and after init. In the process we do a number of minor changes to improve the LSM initialization output and cleanup the code somewhat.

Paul Moore committed 1 year ago

Commit 5137e581 parent 45070533 files · +66 −70Browse files

Showing the changes to security/security.c (1 of 3 files). Show all

Unified · Split

security/security.c+2−0
@@ -73,6 +73,8 @@ const char *const lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX + 1] = { · 72 unmodified lines
73 [LOCKDOWN_CONFIDENTIALITY_MAX] = "confidentiality",73 [LOCKDOWN_CONFIDENTIALITY_MAX] = "confidentiality",
74};74};
75 75
76bool lsm_debug __ro_after_init;
77
76unsigned int lsm_active_cnt __ro_after_init;78unsigned int lsm_active_cnt __ro_after_init;
77const struct lsm_id *lsm_idlist[MAX_LSM_COUNT];79const struct lsm_id *lsm_idlist[MAX_LSM_COUNT];
78 80