X-Received: by 2002:a62:7c56:0:b0:4f0:f268:ec03 with SMTP id x83-20020a627c56000000b004f0f268ec03mr2287358pfc.8.1645661419693; Wed, 23 Feb 2022 16:10:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645661419; cv=none; d=google.com; s=arc-20160816; b=MQMPhysV4aBA8odvJpg59EoEpGQNw8IBDeyc/EvCVh7W77suivpoG+xAHiaaCsfkH9 SYGv90NnmAS0zbTWuT3+fQOz5hboEpVssFw7mXFXcLghoggY5R5faewoOXwlBd1Htti0 OxCjOVuIVjbsXcG+YWnpanSDydpvo4gUR2xg7ojL0i2+57RiH8++FVojIxNYdgCiNwc1 PTPP7ZpehFeHOa4/9GonXoBxF2vUWPTYl7gkhE9Q25Lo6w9eESTyjb+rbe4BFwB6v+BE c8SHY6BnVjAyf9AnihnzSxEM4LH1ubunlKHUJGGuAzAZdBEssQvRJWjJymSeuXgAX2pq ZTgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YejMd+WtlxKsxO6LfTidvufGHqaXYarv0onMpVK6Zcs=; b=Jsgb00NOnw6GtM810G/LqWQrmoyB6w/SKvzAuSBwbLa1syl/OxoO9U5Qz6N3NHyhA5 VbJxWpYQQ9daco++lE2Dnfoliu+xM+9qVDhRFKnQ4F0HeIy5hbHn534fM3lw+4B9Y9nz Ax92mN4jej5WFspHCeVOFhyr7xNiqsrevXeGR5VCQLcYLbbACxHcYOr013psEh7EC5CY 2EF+WgzxR3/o/yuWbDY5lv+38ZSOHtyPBkHAAu9Mc92i5UbwJnsahLba/eBcczwbDY33 jdiQ2d9TDvaMXpdXkS8D5n/uu6fHoXl9EPix3iGcRdaCjUbU+lUDk7xaE344b5yr+44F Ic8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CrM2zLNB; 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 p18-20020a17090b011200b001bc79cf32d0si3356224pjz.122.2022.02.23.16.10.01; Wed, 23 Feb 2022 16:10:19 -0800 (PST) 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=CrM2zLNB; 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 S241932AbiBWPcP (ORCPT + 99 others); Wed, 23 Feb 2022 10:32:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232424AbiBWPcO (ORCPT ); Wed, 23 Feb 2022 10:32:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 296FF427E8; Wed, 23 Feb 2022 07:31:46 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id E0E45B82036; Wed, 23 Feb 2022 15:31:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D18B0C340E7; Wed, 23 Feb 2022 15:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645630303; bh=fC8yGrY48PKtT4DS+luMMfJ7rNHAPvz8jWUq4qwqVUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CrM2zLNBTu0KQHuAIAJ44SRZsWLw7FpWnucwR3Ig2Ib96u3qhoX3BeHY7B8ifBpAi uYUGZiFDS5qwQBCzu6vC+8mSI4fbBoK9we24RLoyUxJw/G7ctwJyXEYfqzIwOQZ/jw 0HUZ8ps7+LFK0M1vrPvU7XvJOAUvSXJnqj0ySIUQQVAwBIrRu07Nfjmadp517mJ9+B Y4wfpuh70eh1DfM4IuNkCJwoHFfIF8AhKBejExFxbnaNrFIUtqw0EsPoM1qwHicyhd GCzPcrz3x/+Q4vAyMxLq2dGllppFBCm6QrUDrRGECgZghY8Kign/l67u6bkR8lxMzq zOopXEVLRzdrw== Date: Wed, 23 Feb 2022 16:32:21 +0100 From: Jarkko Sakkinen To: Mimi Zohar Cc: Eric Snowberg , dhowells@redhat.com, dwmw2@infradead.org, ardb@kernel.org, jmorris@namei.org, serge@hallyn.com, nayna@linux.ibm.com, keescook@chromium.org, torvalds@linux-foundation.org, weiyongjun1@huawei.com, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org, James.Bottomley@hansenpartnership.com, pjones@redhat.com, konrad.wilk@oracle.com Subject: Re: [PATCH v10 0/8] Enroll kernel keys thru MOK Message-ID: References: <20220126025834.255493-1-eric.snowberg@oracle.com> <78d2c13ad60b5f845cb841d257d1b41290f575c6.camel@linux.ibm.com> <8e9e4bc3bbd831a606f264ec3f4dfcafdeebece6.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 Tue, Feb 22, 2022 at 07:32:20AM -0500, Mimi Zohar wrote: > On Tue, 2022-02-22 at 13:26 +0100, Jarkko Sakkinen wrote: > > On Tue, Feb 22, 2022 at 06:59:25AM -0500, Mimi Zohar wrote: > > > On Sun, 2022-02-20 at 20:00 +0100, Jarkko Sakkinen wrote: > > > > On Wed, Jan 26, 2022 at 05:06:09PM -0500, Mimi Zohar wrote: > > > > > > > > > > > > > > > Mimi brought up that we need a MAINTAINERS update for this and also > > > > > > .platform. > > > > > > > > > > > > We have these: > > > > > > > > > > > > - KEYS/KEYRINGS > > > > > > - CERTIFICATE HANDLING > > > > > > > > > > > > I would put them under KEYRINGS for now and would not consider further > > > > > > subdivision for the moment. > > > > > > > > > > IMA has dependencies on the platform_certs/ and now on the new .machine > > > > > keyring. Just adding "F: security/integrity/platform_certs/" to the > > > > > KEYS/KEYRINGS record, ignores that dependency. The discussion wouldn't > > > > > even be on the linux-integrity mailing list. > > > > > > > > > > Existing requirement: > > > > > - The keys on the .platform keyring are limited to verifying the kexec > > > > > image. > > > > > > > > > > New requirements based on Eric Snowbergs' patch set: > > > > > - When IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY is enabled, > > > > > the MOK keys will not be loaded directly onto the .machine keyring or > > > > > indirectly onto the .secondary_trusted_keys keyring. > > > > > > > > > > - Only when a new IMA Kconfig explicitly allows the keys on the > > > > > .machine keyrings, will the CA keys stored in MOK be loaded onto the > > > > > .machine keyring. > > > > > > > > > > Unfortunately I don't think there is any choice, but to define a new > > > > > MAINTAINERS entry. Perhaps something along the lines of: > > > > > > > > > > KEYS/KEYRINGS_INTEGRITY > > > > > M: Jarkko Sakkinen > > > > > M: Mimi Zohar > > > > > L: keyrings@vger.kernel.org > > > > > L: linux-integrity@vger.kernel.org > > > > > F: security/integrity/platform_certs > > > > > > > > > > > > > This would work for me. > > > > > > Thanks, Jarkko. Are you planning on upstreaming this change, as you > > > previously said, or would you prefer I do it? > > > > > This is the problem I'm encountering: > > > > https://lore.kernel.org/keyrings/YhLNYxBTbKW62vtC@iki.fi/ > > That's the answer to a different question. :) I was asking about the > MAINTAINERS record. Aaaaa... sorry! Yeah, please do it :-) BR, Jarkko