From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD7C2ECE566 for ; Thu, 20 Sep 2018 16:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85C4C2147C for ; Thu, 20 Sep 2018 16:25:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HbO2ILha" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 85C4C2147C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733192AbeITWJq (ORCPT ); Thu, 20 Sep 2018 18:09:46 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34902 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730919AbeITWIB (ORCPT ); Thu, 20 Sep 2018 18:08:01 -0400 Received: by mail-pf1-f193.google.com with SMTP id p12-v6so4619424pfh.2 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=hZZeuekK8mhM7t31Zr6Yfv7FCaKzjAV+BJoaEqOewuFOcJYyJc0Co/hZWsXh89hS+1 lyfKXckAY+ojn8ng2mF+zPDwWKaaoNUGyVB0ZOJCMqoanHoVQFrY356VdvFPf7BlFRqA IPm3OsxirNt0ysb4AkwT5ABCuHDiLFuY84WQDq4oya0DFMKtOngc2obSSDDAynEGEPGl m5czu/AYixPavLDlgWRPoB+eZ1ytolnqyZ+R0T6fXSWtJ4EpNMW6oJX2b+i39faZqvm5 hISDv0T4dJARnh0dzMN3qRZK2Soyam+Yl0ZmKqHgoNkA4KzOQxOaQUMBwbshi1ei9isl MpQA== X-Gm-Message-State: APzg51B1P13ZfEg3ibeMrDhvtXgBKIpQi3rRWNzQaCRi8EgWLgDBSVMw CrRONLixejFEMZw464SyL8JT9g== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. -- 2.17.1