Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3247677rwi; Tue, 1 Nov 2022 18:18:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GjFIxsnpTwxYbALCnLm/WO/A9Q9EMobI3wvgm2YaaRt5qPqmojX24fzhGnW0f5KwH6Qva X-Received: by 2002:a17:902:8c81:b0:178:1701:cd with SMTP id t1-20020a1709028c8100b00178170100cdmr22712418plo.138.1667351892763; Tue, 01 Nov 2022 18:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667351892; cv=none; d=google.com; s=arc-20160816; b=jNiLeRLGJgqi1fDAjO/vihI4Q4GH6TiOTEUoNzbMXUZuxVwFTC+yV4vzGf8POldP53 RckFC+2BIxc+fYaK1KGJL9bSchP5PiJ913+2VFXF/XIq6JK8i4HOU10dhNmLsPziqIHA a965C/tudRk7rNlYCkKVJprpwqXigPx9ytRrKU9wlVl2UbU2k0d2g+G/2Ld+1n9TQ39B RZt0hleBFB06wkYqlC5JfRL+ZD2eEeshFD1QeEB56daDZpYJ/qlGExCfB8IjmZJ96fCm a30WAwfvg7HBZR1anJiShdUjc0tiB7aPVzxt8wMgDmblETsDbHD1aija+mzXAn2D44j3 99AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=zU98Qd6nUGmbsVpz/zaMgp0xzDyYsHdeE2cMqaZDK34=; b=QG2t3O0Dqq/66PeMVGYlilC6nQpdDKEa7ST2P4YgM3bpG4zxHidQpuzxEHv2AkQxfV WAPwDXNMoFESFJrhhy1HW/s2dd2Ej0wH6Pf1Bgx5LTIJZZtF+G1lQQMDLVmwBzJIvytb SixoE052DkMZj6mKkqJ2oNCqU8MRP++8UavAOlMrmm+0RSAGwcXnZLQL8kW9nQ4zjGkK QcuSp+fUTELIJA+TWB5mASjv1+nLDivA3FGlwnZezQCHyyX5dIa+QvpOo7DazjhuN9m5 LsTTWUSma28dsJn7TWPrCyQqoZFnjWssYn0INJ8pHAKls4XDeSi9zFZPI+7dfXdoKL1k xX/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZD0XIW5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a17090301d200b001868a25da0dsi16068913plh.40.2022.11.01.18.18.00; Tue, 01 Nov 2022 18:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZD0XIW5X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbiKBAxG (ORCPT + 96 others); Tue, 1 Nov 2022 20:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbiKBAxE (ORCPT ); Tue, 1 Nov 2022 20:53:04 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F2F71C103; Tue, 1 Nov 2022 17:53:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 60BE4CE1EFC; Wed, 2 Nov 2022 00:53:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3489AC433D6; Wed, 2 Nov 2022 00:53:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667350380; bh=zU98Qd6nUGmbsVpz/zaMgp0xzDyYsHdeE2cMqaZDK34=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=ZD0XIW5X8bQ6GyxVaAkhMLCWAlzm9VPmO9F5d8uUJpE9qniKStI1ZrS29WoVjQbpB 5GeUbvC2XxFg5wVqqXuOnTx9fUIrnG/YN6LEWIp6v5VADmsmsO8IRMw4LBYxlLEYzj /LStFFZ1y8MApwlitOfYWxqWmfWz+OmglIGAOEuMrCMCIv7B3OJaieOjd8C0yxOL/l BDXaLuHWTOlj5aYuqa/2zY5l14+5Pg5CO61eq9q9HgQC/UjEPxyR7y70csFJ+slmPy 0mMRf484UAAkDBxY0meN6Dp7wdo2WfMjxO5031RS6JCkPVhdDPg5n53RmTuYYQ2JV6 aDuUf08k/3k1g== Date: Tue, 01 Nov 2022 17:52:58 -0700 From: Kees Cook To: Casey Schaufler , Kees Cook , Paul Moore CC: James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, =?ISO-8859-1?Q?Micka=EBl_Sala=FCn?= , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-hardening@vger.kernel.org, casey@schaufler-ca.com Subject: Re: [PATCH v2] LSM: Better reporting of actual LSMs at boot User-Agent: K-9 Mail for Android In-Reply-To: References: <20221102000525.gonna.409-kees@kernel.org> Message-ID: <970317F3-D1A2-412D-88EF-18A606AC1E6A@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On November 1, 2022 5:46:55 PM PDT, Casey Schaufler wrote: >On 11/1/2022 5:05 PM, Kees Cook wrote: >> Enhance the details reported by "lsm=2Edebug" in several ways: > [=2E=2E=2E] > >Acked-by: Casey Schaufler Thanks! >I'm curious about what is driving this change=2E I was working on the ima stacking PoC and found the lsm=2Edebug output con= fusing to read, and I wrote it=2E :P So, I wanted to clarify things and mak= e sure stuff like lockdown was visible=2E Additionally, if we're going to k= eep the "lsm=3D" param as-is, I wanted it's value visible at boot so people= would know what to start from when making changes=2E -Kees --=20 Kees Cook