Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2802162rdb; Tue, 12 Sep 2023 12:29:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGS6ZHmBHNvU6Ev+ekAAALWVzwEWYRjcgBi02fraLI7abkfmO1B3EVkeuZRYsSis+z9rHcq X-Received: by 2002:a05:6870:80d2:b0:1c8:c128:c38e with SMTP id r18-20020a05687080d200b001c8c128c38emr532599oab.15.1694546998682; Tue, 12 Sep 2023 12:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694546998; cv=none; d=google.com; s=arc-20160816; b=IglpjuINBQYigcGmDCzQggHIRj1reLo0jelJp0ax0VRMS714V0/PmzXZT2Z6kq0m3N 3E6LJJRshBTJislJUcqPJRAVdrXUqPfCuhR72ocCnN0tJYbGK/mryU3JnSVI/GuV0pdl WbSaQKMofWtay8UgL6s7e1p0HtqUteyIkujX1YmWe3EJZ3PUTVwQYOd6vU2nYOFldI8Y wqTV3TXRPAL2/WRDHZLyS/OGNLaGWXNcYYemwZVNLsplp+NeCQIf90Ozmo9jWQCFIO2b kirgTtuC6DYBpN6MsJNBJXIrPtb8Z/qh3uSAwyNL8YpeiceYzX+y19/nRPBPBToi3v16 9ddw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=jJikcqHPybmmVVKH+rVSv5RHGUhMwLNpMC29dvhVmO8=; fh=OyLuxNsRtMkBqBFSNMDQ7AYBhjjWeETyRKdLPsW1emo=; b=hDga91NtFoR9Kk+6JlyhKMwZGEX/h7qe26lpawFoTIaBhVrkJWna6s3mYTsGGDjXvA IyjStmFCyfZKPERtBfROUaOaIvggQmDyMIqarz/nqEjIve5eg1Jb4CsmQEgbHkxttGbl o/pg/XP4vXdFg8E2XNHwBRbgMO7qxrkhSCfkn6CClK1sOA8OkkgNvfEFl4q4w+PiQM93 IBjWbNeX7TU1Yo9UgHuXlIl3ReZ7ftdLtjW3ga++xDIajZZZBQ94xgNK9q9m3tnQBSyS Bb+s3QWmbyMZAPK+e21Ut61WZVp3c0dlSVthlaspP8i1Zw1fNnb6BMhMB0JG5sfCa1Ec YVYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qvMafhMn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id z8-20020a633308000000b00565d9520544si8361317pgz.844.2023.09.12.12.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 12:29:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qvMafhMn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 38AD0826EE0E; Tue, 12 Sep 2023 03:20:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233975AbjILKUP (ORCPT + 99 others); Tue, 12 Sep 2023 06:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233281AbjILKUN (ORCPT ); Tue, 12 Sep 2023 06:20:13 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C99BB9; Tue, 12 Sep 2023 03:20:09 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id DB9F22183A; Tue, 12 Sep 2023 10:20:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694514007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jJikcqHPybmmVVKH+rVSv5RHGUhMwLNpMC29dvhVmO8=; b=qvMafhMnrSq+YoWWEMNmaYEsEk5vTGaEBGc1T4gYbVi3R0kR49A/DDY6fDsEVkoNaKxpo3 yCaQKZUA9rPgwFsMSQ+431NzV3KT3Usq5xIdFxPWgKNpdnHXz4zD7kYgYGQaL+5Gj+25i7 QqXYKf31KQ4Rg6g/euhbpyJd3vUusuI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694514007; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jJikcqHPybmmVVKH+rVSv5RHGUhMwLNpMC29dvhVmO8=; b=SdUW66/4mwgnCi6EzjAH9XZxz5vfmUtzOMt1sfV+pREB9CCpcsNFkoKnHC93XN+cApI9Rv qY84Xeuh58ZBm0Bg== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 3EAE42C142; Tue, 12 Sep 2023 10:20:07 +0000 (UTC) Date: Tue, 12 Sep 2023 12:20:06 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Jarkko Sakkinen Cc: linux-integrity@vger.kernel.org, Mimi Zohar , Dmitry Kasatkin , Paul Moore , James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, joeyli Subject: Re: [PATCH] integrity: powerpc: Do not select CA_MACHINE_KEYRING Message-ID: <20230912102006.GN8826@kitsune.suse.cz> References: <20230907165224.32256-1-msuchanek@suse.de> <20230912075134.GM8826@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:20:26 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Tue, Sep 12, 2023 at 12:46:32PM +0300, Jarkko Sakkinen wrote: > On Tue Sep 12, 2023 at 10:51 AM EEST, Michal Such?nek wrote: > > On Tue, Sep 12, 2023 at 12:45:35AM +0300, Jarkko Sakkinen wrote: > > > On Thu Sep 7, 2023 at 7:52 PM EEST, Michal Suchanek wrote: > > > > No other platform needs CA_MACHINE_KEYRING, either. > > > > > > > > This is policy that should be decided by the administrator, not Kconfig > > > > > > s/administrator/distributor/ ? > > > > It depends on the situation. Ideally the administrator would pick the > > distributor that provides a policy that is considered fitting for the > > purpose or roll their own. Unfortunately, they don't always have the > > choice. > > > > For the kerenel's part it should support wide range of policies for > > different use cases, and not force the hand of the administrator or > > distributor. > > > > > > > > > dependencies. > > > > > > > > cc: joeyli > > > > Signed-off-by: Michal Suchanek > > > > --- > > > > security/integrity/Kconfig | 2 -- > > > > 1 file changed, 2 deletions(-) > > > > > > > > diff --git a/security/integrity/Kconfig b/security/integrity/Kconfig > > > > index 232191ee09e3..b6e074ac0227 100644 > > > > --- a/security/integrity/Kconfig > > > > +++ b/security/integrity/Kconfig > > > > @@ -68,8 +68,6 @@ config INTEGRITY_MACHINE_KEYRING > > > > depends on INTEGRITY_ASYMMETRIC_KEYS > > > > depends on SYSTEM_BLACKLIST_KEYRING > > > > depends on LOAD_UEFI_KEYS || LOAD_PPC_KEYS > > > > - select INTEGRITY_CA_MACHINE_KEYRING if LOAD_PPC_KEYS > > > > - select INTEGRITY_CA_MACHINE_KEYRING_MAX if LOAD_PPC_KEYS > > > > help > > > > If set, provide a keyring to which Machine Owner Keys (MOK) may > > > > be added. This keyring shall contain just MOK keys. Unlike keys > > > > -- > > > > 2.41.0 > > > > > > I'd suggest to add even fixes tag. > > > > Here it is > > > > Fixes: d7d91c4743c4 ("integrity: PowerVM machine keyring enablement") > > commit b755dd58d180b796d21bc14d03045e4ab84222b0 (HEAD -> next, origin/next) > Author: Michal Suchanek > Date: Thu Sep 7 18:52:19 2023 +0200 > > integrity: powerpc: Do not select CA_MACHINE_KEYRING > > No other platform needs CA_MACHINE_KEYRING, either. > > This is policy that should be decided by the administrator, not Kconfig > dependencies. > > Fixes: d7d91c4743c4 ("integrity: PowerVM machine keyring enablement") > Signed-off-by: Michal Suchanek > Signed-off-by: Jarkko Sakkinen > > diff --git a/security/integrity/Kconfig b/security/integrity/Kconfig > index 232191ee09e3..b6e074ac0227 100644 > --- a/security/integrity/Kconfig > +++ b/security/integrity/Kconfig > @@ -68,8 +68,6 @@ config INTEGRITY_MACHINE_KEYRING > depends on INTEGRITY_ASYMMETRIC_KEYS > depends on SYSTEM_BLACKLIST_KEYRING > depends on LOAD_UEFI_KEYS || LOAD_PPC_KEYS > - select INTEGRITY_CA_MACHINE_KEYRING if LOAD_PPC_KEYS > - select INTEGRITY_CA_MACHINE_KEYRING_MAX if LOAD_PPC_KEYS > help > If set, provide a keyring to which Machine Owner Keys (MOK) may > be added. This keyring shall contain just MOK keys. Unlike keys > > If this look good to you, I'll put it to the -rc2 pull request. Looks good Thanks Michal