Received: by 10.213.65.68 with SMTP id h4csp21613imn; Tue, 3 Apr 2018 14:39:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49BVXKW9OBhhMtmkH3mVwLPPQUtO7n2MydXJXKJx9pQH3AUTJ9D3pCDA+KTHgkYrriMpysD X-Received: by 10.99.0.136 with SMTP id 130mr9984510pga.368.1522791549243; Tue, 03 Apr 2018 14:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522791549; cv=none; d=google.com; s=arc-20160816; b=xi3FfuK0chsMpuSJKzLMb7+mhJUIW6ii3/dCpTGcSHmOr/LwZlBIwEdv/mo1+QEMdE B/4YbMXvVyR/s6TIq8ebwlkBbgRJPDD1WWWfimg2zY432DHmQJyQ1h6Vv5H6pveMmJ8S w+DXxuR+seEkl7+aPQVXA/8MJA+tzojsRb0zN4AKtxZ98wGs6n0Jpj+271MHHYvRfYZt 9NWQiFSGm2FQ5VWJ/roD1VQE/pzXTQm48nydSm/baw6asGdCM26I64YhvXegCI6hK9cY mb1wBISc5aht+kHovVa96bBU7M3ozoQC6RfHk+TavcvP1CWQkuVKz5o5qlezhh+eLKNq Dtcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Dz7Gf7317+XRqUiOzoV9Q6/JuOMokg2rCgDU6btyB/Q=; b=NIdZAEHwEhjoVg/aOnB7xRBAxqmBmYODak8/FhzkrP/B40C+aLaHkAnRnnVHRH001K EmaXAvyPV8vsflKEi4hxFSLAelTE8N3g/Yx7yvnnMjtcM2y3Ro1wO/XZqVKrQsG4gK+v rLuY1WYsXKdYoOuCy/3z4hzpJir3rzo+WUxx4m9OYLQBeV+pu1FHEFbD0ppHFSKjtZre q5Jn2uM2lPVnmOijr559Ifdn3olmUoqmaWU7Za0VL2yNeR/RiQ9xrT2HZ2oa758BEdPI +Fus6Rzkk9cgtHKCpEjUxERIurwGrDG2FoTQ2oq/b092PcCznfoLvflCjJfeJvQNbG3d 1rVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DPFUvLMN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si1477123plz.64.2018.04.03.14.38.55; Tue, 03 Apr 2018 14:39:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DPFUvLMN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797AbeDCVhm (ORCPT + 99 others); Tue, 3 Apr 2018 17:37:42 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:53193 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753713AbeDCVhj (ORCPT ); Tue, 3 Apr 2018 17:37:39 -0400 Received: by mail-it0-f66.google.com with SMTP id f6-v6so14108982ita.2 for ; Tue, 03 Apr 2018 14:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dz7Gf7317+XRqUiOzoV9Q6/JuOMokg2rCgDU6btyB/Q=; b=DPFUvLMNfdK4PpVPJcqw4v/kAX20aLcSzX/rhNMaZMT9IGTa9+96scB9L8tnYZjBVl QPws3g5ZOdOYGnZpHPwFKaip4VG4f7aKTi8dn0ZBBVczHnrp1CzgzVbtv6j3oSSfhlx4 D7kWEu20GuY0YczYLLkIJqz7pp7EP8dH85LPVRSQUljF35q7QLsTwRvFIHDkMsM8Xyoa M6lpTCC4JCf2umr5OZJqUCeQI11gY3WLk1EOd1Stx1GLfSUH5roFg4QtEkeIL8YI1hOK aLmRHRCoTBJEHnZygG0K1PV/JQyzO1isS0/wI8iutQx6ZgCIjfYd4WNfUadj74wf7Cln xJBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dz7Gf7317+XRqUiOzoV9Q6/JuOMokg2rCgDU6btyB/Q=; b=qfceGd+UhnlHEAzh00uoWWIc02dhiL9MOZkKtE+9r38kcJ2gqu+K/76bftwlyqxYwW hlcolFXPohFuQPoF4wNte2WWqUOYPI3sd3Sa/YJCwXBTZLp1RtFJtdP7m4YC+2F617fh ortQKMb5ruKbIX6Li76iNzmhgjs7T4R4jI0DwxmUiW1eMy5dTcsZPGBj4u5PnnwDumCo de+x+ivOhnm3ck+D0rlxu08Jl7Wzydcg1cDvPmh6PVHSp/qGXkZv8dgbsUcth7DJ9lor zPhDNMg0MFjIBhZSkMt5dCHPaR1jLmPNK7t9RtftJTCP+1ZIptIAn7vo8gyfTiVsfYUh +IyA== X-Gm-Message-State: AElRT7GFpgfMwUz1WqVxzfUI6O3F+ig0rXCpFqMYWSa9I7ksClmKV+fQ IB5uyGx5KZZPzExjI6iO0mzBC6xIVUVwGDNwnxau5Q== X-Received: by 2002:a24:530f:: with SMTP id n15-v6mr6591788itb.123.1522791458833; Tue, 03 Apr 2018 14:37:38 -0700 (PDT) MIME-Version: 1.0 References: <4136.1522452584@warthog.procyon.org.uk> <186aeb7e-1225-4bb8-3ff5-863a1cde86de@kernel.org> <30459.1522739219@warthog.procyon.org.uk> <20180403212102.GL30522@ZenIV.linux.org.uk> In-Reply-To: <20180403212102.GL30522@ZenIV.linux.org.uk> From: Matthew Garrett Date: Tue, 03 Apr 2018 21:37:28 +0000 Message-ID: Subject: Re: [GIT PULL] Kernel lockdown for secure boot To: Alexander Viro Cc: Linus Torvalds , luto@kernel.org, David Howells , Ard Biesheuvel , jmorris@namei.org, Alan Cox , Greg Kroah-Hartman , Linux Kernel Mailing List , jforbes@redhat.com, linux-man@vger.kernel.org, jlee@suse.com, LSM List , linux-api@vger.kernel.org, Kees Cook , linux-efi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 3, 2018 at 2:21 PM Al Viro wrote: > On Tue, Apr 03, 2018 at 09:08:54PM +0000, Matthew Garrett wrote: > > If you don't want Secure Boot, turn it off. If you want Secure Boot, use a > > kernel that behaves in a way that actually increases your security. > That assumes you *can* turn that shit off. On the hardware where manufacturer > has installed firmware that doesn't allow that SB is a misfeature that has > to be worked around. Making that harder might improve the value of SB to > said manufacturers, but what's the benefit for everybody else? This is why Shim has support for its own key database, as well as allowing you to disable further signature validation. If the hardware supports third party code at all, you can just use Shim to sidestep any unreasonable restrictions the vendor has imposed. (This doesn't help with systems that don't support third party code at all, but this patchset does nothing to make that worse - that hardware wouldn't boot your own kernel before this patchset, and it won't afterwards either)