Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp961162pxb; Thu, 4 Feb 2021 01:15:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+efbLVHexUAkhIiSn93hlwJbJvIDb10LqvcVnNCzSjsPENDlI83vklWk5SsZ5Si3aDOlv X-Received: by 2002:a17:906:ada:: with SMTP id z26mr6994125ejf.218.1612430119336; Thu, 04 Feb 2021 01:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612430119; cv=none; d=google.com; s=arc-20160816; b=CI2rdlBR734DMsEAWnq7sRy98nSUbYWo6WDguj/RkG0zXuHCrPQalt5vft5TkB9GwI E7tc3YRlRmcUL1RIy0Z8x4ukal7nfcJUtW0X6T65XsjBDpDHWwxgL3JNWs0pyGi0fq8k +2unAlpETynb0nAinz6D+6e2qvrUAr3KxV4qidMXVUhj5QaND9B/w1n0IFYkyeKEWrNS o4t4GOfbZA67lBU6uQWuUNewUEJTc1bzZ0BR9+apzMQYKO+4cH1xQoB4K6NWl0zYIu22 QHFu/d4l94TOVIXT0Wm6mDX3gwPOIkwYmFG/ebUu29GTOHeRbE6UlnFSM7+naoa9PW+2 V0xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=83YswTIVs8A+BvG5Cq0qVYxzgxFpUOkWSz7G7FevllY=; b=AaGL2DIo8xvDZlbxTQm4g19Dw5Iq8wGuOXWQzsSBGgQJv3LqZfj6z5MWb8/KFoii8v CQolD867vFxq8xKBu8scGGM3yNbmLMF3bfSI+RldSwxHB/t9o+5xJqt6KJrj/RW0uTwI InbLBhmUxY4/LaWtCtaOmVCmuLaM3nslM5GzQPwuel76yeLZQPOkw+u6j9IbUgeQz1L/ cY/NgUFs6HpmwsuEDcuxvvo7wFntxBHbbNKLVlQnP2lr3DcIzt/iW38o8DGVqNTHR3lE NuULPE6aoVNlnoJk//7UTM7CIFgT62w6rGA1CmNVVQKVBZ7OBA+WCMJZio2Vaqr/CzCd pQhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B+kY3W+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy11si2101184ejb.470.2021.02.04.01.14.54; Thu, 04 Feb 2021 01:15:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B+kY3W+9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235100AbhBDJN6 (ORCPT + 99 others); Thu, 4 Feb 2021 04:13:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31596 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbhBDJNO (ORCPT ); Thu, 4 Feb 2021 04:13:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612429909; h=from:from:reply-to:subject:subject: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=83YswTIVs8A+BvG5Cq0qVYxzgxFpUOkWSz7G7FevllY=; b=B+kY3W+9oWCC+6cvVe/X/P8TT9uSGJgM3AbZOdZvbXYxbt2ono5MQdF0zJMFIQ9HWN9KJi scqn6SDktCzcNedBKst5CPE6YbU/iPrv1Id3JThuFz6u5c3lbs7lhIwnnyZDyGaesRnuug ezLarjPznQK2cnFzQH9PYJOElPqaUrQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-247-DN2S4fUUNAmCJnuiVqh5Kw-1; Thu, 04 Feb 2021 04:11:45 -0500 X-MC-Unique: DN2S4fUUNAmCJnuiVqh5Kw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AABC95B364; Thu, 4 Feb 2021 09:11:42 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-115-23.rdu2.redhat.com [10.10.115.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 771C171C9D; Thu, 4 Feb 2021 09:11:36 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20210122181054.32635-1-eric.snowberg@oracle.com> <1103491.1612369600@warthog.procyon.org.uk> <10e6616e-0598-9f33-2de9-4a5268bba586@digikod.net> To: Eric Snowberg Cc: dhowells@redhat.com, =?us-ascii?Q?=3D=3Futf-8=3FQ=3FMicka=3DC3=3DABl?= =?us-ascii?Q?=5FSala=3DC3=3DBCn=3F=3D?= , dwmw2@infradead.org, Jarkko Sakkinen , James.Bottomley@HansenPartnership.com, masahiroy@kernel.org, michal.lkml@markovi.net, jmorris@namei.org, serge@hallyn.com, ardb@kernel.org, Mimi Zohar , lszubowi@redhat.com, javierm@redhat.com, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-security-module@vger.kernel.org, Tyler Hicks Subject: Re: Re: Conflict with =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn's?= blacklist patches [was [PATCH v5 0/4] Add EFI_CERT_X509_GUID support for dbx/mokx entries] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Feb 2021 09:11:35 +0000 Message-ID: <1352221.1612429895@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Snowberg wrote: > > On Feb 3, 2021, at 11:49 AM, Micka=C3=ABl Sala=C3=BCn = wrote: > >=20 > > This looks good to me, and it still works for my use case. Eric's > > patchset only looks for asymmetric keys in the blacklist keyring, so > > even if we use the same keyring we don't look for the same key types. My > > patchset only allows blacklist keys (i.e. hashes, not asymmetric keys) > > to be added by user space (if authenticated), but because Eric's > > asymmetric keys are loaded with KEY_ALLOC_BYPASS_RESTRICTION, it should > > be OK for his use case. There should be no interference between the two > > new features, but I find it a bit confusing to have such distinct use of > > keys from the same keyring depending on their type. >=20 > I agree, it is a bit confusing. What is the thought of having a dbx=20 > keyring, similar to how the platform keyring works? >=20 > https://www.spinics.net/lists/linux-security-module/msg40262.html That would be fine by me. David