Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2214492imm; Thu, 20 Sep 2018 09:26:30 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdag2Z0jThx94Y76XT01qN+j8pKK/H5bqCRamPUDOVMOmm3L/nlOKNnFAX+t1ljw86m580tD X-Received: by 2002:a62:198e:: with SMTP id 136-v6mr42217911pfz.103.1537460790889; Thu, 20 Sep 2018 09:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537460790; cv=none; d=google.com; s=arc-20160816; b=0/u5cO8KhdeDE/yqSXXCbwX8hymsbDh2H8BbydOgbfs1CgF0JMQA4ysHkWnB07hx5X 1nJuXUpuIMTbPdJ5WD4b8oD6EDXUsiXiaz9yHtA/S9G+ftOlOvBlCeMrvCbT3s9ZdLOz bY7XfTzuK7TCXVkU6u5rfltgKv9z8CRkke8rsyO0JbklExtqiNjcbU/YFu1LkbcufFhC LQfnwpVns8y42KmhbsT4XhtOSrjMGE928iMc+ueywg9xkNggxgdKoAtjC35d2w9Afzfm U9Jn/Rmr89JhES4H1EtdqF13Czv7T39pMVA2y1brKf3EDI5YeKrvi20aIB3umGQn42BQ omLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=6U8FlYD7rP2Z5yax3KFt9x7tHnPEb9jrVgAj32rVTY4=; b=sf+piALP1FqG+2DbEfmzMDXED4uA7whMuR2onSPP1vNH+87xoVcWliIPFPZQ8T6wK1 bE1s809L1k8Cpjaz6WKjIS5b3VMcCL1lVrEkY0gjm9um25+jpulZH3S0ttoFArxDzfOd f+J2Ims1ytF+PG3MbWQLh/05i2JOch4Vfbn3SOVBaTLDKcRp8xIA5lVWVRcX5Fl9N/+V 9UQ/zwvM8exuXWFRTN4ScAFRK/66uig56M4hu/OkglDz8x1vlPVepB4kvTmWzbPaXtGV xpvTRxRuAmagHlaq20Vc0i6QAucZZQjFI93BCROxunlK3dvPgyMnOYbNN1rn95J6ZLhn CgEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HbO2ILha; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18-v6si24199052pgk.355.2018.09.20.09.26.15; Thu, 20 Sep 2018 09:26:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HbO2ILha; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733155AbeITWJq (ORCPT + 99 others); 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-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