From 5137e583ba2635b82667dc63cb35305750420411 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 12 Feb 2025 18:20:01 -0500 Subject: 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. Reviewed-by: Casey Schaufler Reviewed-by: John Johansen Signed-off-by: Paul Moore --- security/security.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'security/security.c') diff --git a/security/security.c b/security/security.c index b4eec4f00730..31a688650601 100644 --- a/security/security.c +++ b/security/security.c @@ -73,6 +73,8 @@ const char *const lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX + 1] = { [LOCKDOWN_CONFIDENTIALITY_MAX] = "confidentiality", }; +bool lsm_debug __ro_after_init; + unsigned int lsm_active_cnt __ro_after_init; const struct lsm_id *lsm_idlist[MAX_LSM_COUNT]; -- cgit v1.2.3