Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp448714pxb; Thu, 25 Feb 2021 06:48:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOEQxOTAQ8zKpGaeJt1006YIw4Xq63lqRhvvwo00hGrnZpCaEfn17biS9c6CPyEOYYatXD X-Received: by 2002:a17:906:8474:: with SMTP id hx20mr2986367ejc.129.1614264523725; Thu, 25 Feb 2021 06:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614264523; cv=none; d=google.com; s=arc-20160816; b=zPF/mCEgLZjBbM4ivq5GZGIMdPN27DfVKRF1bvSdg7eeX48wmDwvTSxcMaSUcbrITw /Pxi2NVByJV4CMasqjJN/6WvQMAJzRXCFK0WSApgUeQi2ZGGvlWt5ewg5FCTuz0iAHLO 3ybm+Cnu0hZ7YjtwUnhhjkH6utefCm0QqP6gyvyWhM59LfdVNkjBjlx2Wo2df3178H8d B3pyb0wzCBgna5kWEe004O1i93FxR4pbjSVOwivjVQSOuKtSk2oXL15wcwn7/Mix3pPE TPlTIiHaSv5B2LytCNKpAclh5wG0wqN35y2I0sca4QNfYDLDw8EJQovJ3h3lJxQbuCnQ GV0g== 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=Bro6K1L61Sgcgif8LOhoB45JhdsJvdKQppn6eGahtEs=; b=Xti1UIAC6mVC/8ksQjDqmIV4OC1X9KWX6q+JnbBxk+zfvPZ6wrzRrPBrc8zeS/fLlr 7rH5yc0yYtBQi9ZfFIkYChFqrDvqZsd3WNvJeh/O73ZgPZVj30Ja66ucuBrb31r+bGyx RJUnT90fPBPRAnuOENsyJo1jtO39XifBfL9S4X+8VRMwdD9lhwmXFsjt5xCkLi72yrN5 0IF1apYVWPpmmz+P9AiVSGe/mO2Pw/uDm34HXuBODqXmoTj1xglU/htYdYddgcY9HiDH cQ8VWOgr2g11+BAvlckyejmtwQE0dqaYQowvlNdKqUNTQ9vwWRCwc1RJzctLZW73KO24 RI2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gPhWLdv3; 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 ju13si3463675ejb.263.2021.02.25.06.48.20; Thu, 25 Feb 2021 06:48:43 -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=gPhWLdv3; 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 S232495AbhBYOpK (ORCPT + 99 others); Thu, 25 Feb 2021 09:45:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60296 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbhBYOpG (ORCPT ); Thu, 25 Feb 2021 09:45:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614264217; 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=Bro6K1L61Sgcgif8LOhoB45JhdsJvdKQppn6eGahtEs=; b=gPhWLdv3OI+OeIZMYrQ5ZRZbo+UvgVybX2TzP0laWpswV3wAlPQLZ0KDN0fehyFvOYeOa1 lBcUDJ52lYJX/FSdg0An0PWBMFBKZGLJqfdDOKVNm2wzklW+EZPBHU/K3L5gD5htJR8+2X eJVQUoArcuMDEFRZRhuWSaFtYhZDbJE= 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-98-ueaSdkpkNOq9pf5i1BRPjg-1; Thu, 25 Feb 2021 09:43:35 -0500 X-MC-Unique: ueaSdkpkNOq9pf5i1BRPjg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B3F2C86A066; Thu, 25 Feb 2021 14:43:33 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-119-68.rdu2.redhat.com [10.10.119.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 68B6C60861; Thu, 25 Feb 2021 14:43:32 +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: <20210217165058.1336155-1-eric.snowberg@oracle.com> <3524595.1614124044@warthog.procyon.org.uk> <3731128.1614163916@warthog.procyon.org.uk> To: Eric Snowberg Cc: dhowells@redhat.com, Jarkko Sakkinen , =?us-ascii?Q?=3D=3Futf-8=3FQ=3FMicka=3DC3=3DABl?= =?us-ascii?Q?=5FSala=3DC3=3DBCn=3F=3D?= , David Woodhouse , keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cert: Add kconfig dependency for validate_trust MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 25 Feb 2021 14:43:31 +0000 Message-ID: <506021.1614264211@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Snowberg wrote: > > I've added an extra config option to turn on SYSTEM_REVOCATION_LIST sup= port. >=20 > I believe this is ok. However currently, whenever the kernel finds eithe= r a > EFI_CERT_SHA256_GUID or EFI_CERT_X509_SHA256_GUID entry in the dbx, it lo= ads > it into the blacklist keyring. Then anytime signature validation takes > place, these entries are referenced. If there is a match, the signature > check fails. Now with the inclusion of EFI_CERT_X509_GUID, I question why > we want to enable it thru a Kconfig option, when we don=E2=80=99t for the= other two > types. But we do. mark_hash_blacklisted(), is_hash_blacklisted() and is_binary_blacklisted() = do nothing if CONFIG_SYSTEM_BLACKLIST_KEYRING=3Dn. David