From patchwork Thu Sep 20 16:23:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 10608089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1FFE174F for ; Thu, 20 Sep 2018 16:25:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC6A32DDB5 for ; Thu, 20 Sep 2018 16:25:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A03E72E00F; Thu, 20 Sep 2018 16:25:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53C6B2DDB5 for ; Thu, 20 Sep 2018 16:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731056AbeITWIB (ORCPT ); Thu, 20 Sep 2018 18:08:01 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44335 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITWIB (ORCPT ); Thu, 20 Sep 2018 18:08:01 -0400 Received: by mail-pf1-f194.google.com with SMTP id k21-v6so4602632pff.11 for ; Thu, 20 Sep 2018 09:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6U8FlYD7rP2Z5yax3KFt9x7tHnPEb9jrVgAj32rVTY4=; b=HbO2ILhaYLf62Pv3wdaaDJfzQZgQ1+PDbxZ0KHrORB0lZI7Wb4ITajVIUAolZK+xSw dRr+KYaGHsGZaqcf4fAS0Yae3lKiyx4u3J5giCdbz8Ufapsfv7Y7dDb3izCeEJJl8Vbo 4Qs3vDXLKFzhO0SmOXPzHluoAjr/t2f83vk4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6U8FlYD7rP2Z5yax3KFt9x7tHnPEb9jrVgAj32rVTY4=; b=AWtjCXiRUZnRcbY5m8t7/pvNKjDAmLGn5pJrccB6zFzKVUEB900ggkeIAuU0n9DUuR w57lbddRFMsCx4OSuulB9fQO3/2LibiYYo9IFhvih4Z7ykioJOWi81K6lcoZ4sAJW9OV 0B3ne78+8hB/EQi4zgGva+kZYzHEvPtAnVYBGtcU+kcVGegvWX6Ffeiqs1BPosufymwD prkNKZPz1vnNmFpFaH//W5hgmrCKi9cmg4k/rXpY+/KkzCHh7YR2KjC8A8Q4cZT+DUbk b6WgjMAWUjL0BAZ/DwCopfC6uf7qjVtHWY74zujQPaa41PMExK9v0TpWyQUn43R7QBR3 zDMg== X-Gm-Message-State: APzg51AnYBzCUjNHUjQBw2sl3G2TY9M1vLQSFQBuCXp+Wf+acqRDLpyD jfr/vAMMPsrkO5B6pqbNpA2dOg== X-Google-Smtp-Source: ANB0VdawAFpy+a77fH7yllH2w72CFcyI8KJ6tWMfLUy6ixaafh3O6z0z8V7/jXvGa9Y1csDrEYUt6Q== X-Received: by 2002:a62:2904:: with SMTP id p4-v6mr19948279pfp.128.1537460625624; Thu, 20 Sep 2018 09:23:45 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id w5-v6sm29290713pfn.44.2018.09.20.09.23.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 09:23:43 -0700 (PDT) From: Kees Cook To: James Morris Cc: Kees Cook , Casey Schaufler , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "Schaufler, Casey" , LSM , Jonathan Corbet , linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH security-next v2 01/26] LSM: Correctly announce start of LSM initialization Date: Thu, 20 Sep 2018 09:23:13 -0700 Message-Id: <20180920162338.21060-2-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920162338.21060-1-keescook@chromium.org> References: <20180920162338.21060-1-keescook@chromium.org> Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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 --- security/security.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.