mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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 <casey@schaufler-ca.com> Reviewed-by: John Johansen <john.johhansen@canonical.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
450705334f
commit
5137e583ba
3 changed files with 66 additions and 70 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue