Skip to content

Commit

Permalink
LSM: Correctly announce start of LSM initialization
Browse files Browse the repository at this point in the history
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 <keescook@chromium.org>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: James Morris <james.morris@microsoft.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
  • Loading branch information
Kees Cook authored and James Morris committed Oct 11, 2018
1 parent e6123c5 commit 98d2917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 98d2917

Please sign in to comment.