Skip to content

Commit 98d2917

Browse files
keesJames Morris
authored andcommitted
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 <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>
1 parent e6123c5 commit 98d2917

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security/security.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ int __init security_init(void)
7272
int i;
7373
struct hlist_head *list = (struct hlist_head *) &security_hook_heads;
7474

75+
pr_info("Security Framework initializing\n");
76+
7577
for (i = 0; i < sizeof(security_hook_heads) / sizeof(struct hlist_head);
7678
i++)
7779
INIT_HLIST_HEAD(&list[i]);
78-
pr_info("Security Framework initialized\n");
7980

8081
/*
8182
* Load minor LSMs, with the capability module always first.

0 commit comments

Comments
 (0)