aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-10-10 17:18:17 -0700
committerJames Morris <james.morris@microsoft.com>2018-10-10 20:40:21 -0700
commit98d291708cbaab06efec195d0810a7ef60f7603a (patch)
tree2bf31e4f0b4c1d37c74b9915f107d1518d99d08a /security
parentsecurity: fix LSM description location (diff)
downloadlinux-dev-98d291708cbaab06efec195d0810a7ef60f7603a.tar.xz
linux-dev-98d291708cbaab06efec195d0810a7ef60f7603a.zip
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>
Diffstat (limited to 'security')
-rw-r--r--security/security.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c
index 736e78da1ab9..4cbcf244a965 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.