Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp123942oof; Mon, 24 Sep 2018 17:22:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV638ElE12quON/Q3ce6yO4O5nncY0U343cx7poMuLYhkNH9Fc46dmtigcyMhTqJeduI8h4Sp X-Received: by 2002:a62:1895:: with SMTP id 143-v6mr954455pfy.227.1537834945172; Mon, 24 Sep 2018 17:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537834945; cv=none; d=google.com; s=arc-20160816; b=H1gcqQ3mLkHqK9q1ko8khz+Ut1BR8r6uRIkUykr/NY9YCHYzOuI1JQlJI7wofMVsUe wbci3MeYQ/WhgC0JhhWAPzatliwKcVqJhrtpt6SVLdaEC5uy8sBkKHVoDaf/12+PZ7Jv y/W55WgMWHKMjjnRJczjqf6gtugP3ZAsimvuQczz9lX5zWuSw61BpTGW4aLwnEEI76ZM WR4OD/DY91P4ZhIOfRWgXLA5HWfOvfMGVConcAZkfOwY+7nVBqsg+jiCskQ/lv7+Kuxw ahJ/4HPhTtptHpwRc/yTm2V4lIs2NXRc/CPvR7cFToMd55qgdLHsXshbXzwFYWHGApk5 BxUg== 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=qTlAiVyKmDi3nh8j1vnhRyGyfYh9dCrYAglaiQr2kEE=; b=iEDjEVkFoQxdsPRC2VYoyVjBF92tCBIzNP8fDnXIIlrD/VwPd7mHyI96E9Se9fC6V/ 2Xqdzh3Jj3IB2f791rWNkH5sEnMBbWLe8exDoEFYMQntIhcnf9KpUlFTO7re2kP0HMUA VtKSHuwVPgpgf3zPUJWdsAOt1AfizBkjO2h0lAqBogIVFG0DdAkWiQK5Vvg6mzeHXEOk 7RBIn9m3aNgdGFr/7hIpkh8OoYpm1T8p92nEttRPMG6NwTVWLfNkwfdVenvUVkvW9jV0 Ps4DdNOD21YsienwB9WkYna+dbfApc7Oa6CZxksghmwe6NNDpiNilhtG5RPyLIf3uuZ6 kcNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q4TLlttf; 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 g7-v6si709581pll.360.2018.09.24.17.22.09; Mon, 24 Sep 2018 17:22:25 -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=Q4TLlttf; 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 S1727555AbeIYGXY (ORCPT + 99 others); Tue, 25 Sep 2018 02:23:24 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46983 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbeIYGXY (ORCPT ); Tue, 25 Sep 2018 02:23:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id b129-v6so10097974pga.13 for ; Mon, 24 Sep 2018 17:18:38 -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=qTlAiVyKmDi3nh8j1vnhRyGyfYh9dCrYAglaiQr2kEE=; b=Q4TLlttf9SWn5R1kA4WKpqdKlAuU/moC7pj+yvqlTzhZ9TjtdSCLF5usqIPtccSGoi OZy0pj6ErE+sjgLo47Aab7JIt8McPZewwEjok1ZFsQKb8RuaobSqi5WmzDB4ZMNZNU3u kOTs9NQ4HosS561qozeDshv+3XH966lxETk+Q= 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=qTlAiVyKmDi3nh8j1vnhRyGyfYh9dCrYAglaiQr2kEE=; b=sPGmcR2sS51SljhEDFBAMsAVFGruAMBos3jwvgbT7BezCzRD6DRWq63Z7Y2RftNMrH Kt+AWdr0syxZ9UNCrWDr/Up9ZMr7qar18awvu3UU8tBej5Ufu+K9d146dpaf9FFVoaNg qXm6Qeo1mjxv5HTjtvVDongJVBF9TgCk/fBxtssyQG1rlbgPG3myXVqkMyJ8Qc8Jyn6m y6GQ3ksYpDbLUmb5DzulsoGSB3wXXNZKJy+81KLykrtZvHGzf30AX2lvrLUW/V+w5yMu 3xSKZTdrxb7a15e6GjqwGk2m6RKlX1xQ6I/n0QxdUOxZ93nZIPaL9yy97xBuCedws/Df 3oqg== X-Gm-Message-State: ABuFfohUeS1cqnOIlyN1DLGRVIHGYRNBPj78vVsw9+wfp9Mg1CZx+FeO qi5YundNtWSmpnlvtDNatLYDMaDcQl0= X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr286688plf.155.1537834718469; Mon, 24 Sep 2018 17:18:38 -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 f184-v6sm594491pfc.88.2018.09.24.17.18.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Sep 2018 17:18:37 -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 v3 01/29] LSM: Correctly announce start of LSM initialization Date: Mon, 24 Sep 2018 17:18:04 -0700 Message-Id: <20180925001832.18322-2-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925001832.18322-1-keescook@chromium.org> References: <20180925001832.18322-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 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. -- 2.17.1