From: Kees Cook Date: Thu, 11 Oct 2018 00:18:17 +0000 (-0700) Subject: LSM: Correctly announce start of LSM initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=98d291708cbaab06efec195d0810a7ef60f7603a;p=linux.git LSM: Correctly announce start of LSM initialization For a while now, the LSM core has said it was "initializED", rather than "initializING". This adjust the report to be more accurate (i.e. before this was reported before any LSMs had been initialized.) Signed-off-by: Kees Cook Reviewed-by: Casey Schaufler Reviewed-by: James Morris Reviewed-by: John Johansen Signed-off-by: James Morris --- diff --git a/security/security.c b/security/security.c index 736e78da1ab9d..4cbcf244a9654 100644 --- a/security/security.c +++ b/security/security.c @@ -72,10 +72,11 @@ int __init security_init(void) int i; struct hlist_head *list = (struct hlist_head *) &security_hook_heads; + pr_info("Security Framework initializing\n"); + for (i = 0; i < sizeof(security_hook_heads) / sizeof(struct hlist_head); i++) INIT_HLIST_HEAD(&list[i]); - pr_info("Security Framework initialized\n"); /* * Load minor LSMs, with the capability module always first.