Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2631980ybd; Thu, 27 Jun 2019 16:18:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxktbIUpVpAuu17Ogq1e6NVpz/W4oKcc1jyNTokqq5F72fuQ2azTKdmquS+6W/Tgwg53xYU X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr9181444pjb.2.1561677503514; Thu, 27 Jun 2019 16:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561677503; cv=none; d=google.com; s=arc-20160816; b=X0YxzrpWTf/srJdJEbRvwSVx4e2WmIJJ8BGONHn8IPz9lvzQJgarh7iQZghikpTIUq dNkEHODdl6ya5ktDrPUF4OIzBjL898ac1inaJceg+o6kHQXWTJoqYzUfdSRgFZaykoI8 /O19BuY4fwxMakpZzZlQRAizTFrZrE82vP7CW3DkH1KZtQy4RGSuDc/YQdBqLNcCZIPb fs3I3QAymUDDX1zFw3dU9d5uGMszxXZn6wnJlPmsmebwQ0bjbjdZQ9ylxS7OY1TcsEKD iyVjr4NSEd3/naDbwMXDPbWuNhTp/tcbtbIas+gDf6r8DKOuNo61jPbC5EOTMYxLTn/c /U/w== 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; bh=1ALt8d0AtAjsRjrBD8rKsbA1G2O0Y0X5Cg7cv209nE4=; b=v+jv8aGmikh/Sj+3E0i8qBQRmb8T/gYBrEux2znfm39AAtubJoCwZWvGqbeWykq+eh OGLm+Sq1dtq0fPx31mPGmWkLFpIK76qqPZ9fJdtcBUDZ00heeZJYpUMPqH9ygPz0Wm5E vM1K02EobWFl+QFwSM0iTgM+YFZYMMpfq17nVeaUHH+IwAj3XwukvVlmBWEWkfxWtffq OHIGWT+oK5bUteKY/ELj3vcSZNhmUf4HHvWM++gXJH26o803p8TX1uPcVvnZ/wayv1S4 dCg9y09n68yewaWpdlibnlsBj5vMv2LNGaLWEi9RLM/tYupXgT0LD07tA/vEvBdJ8sZO BatA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aU9s6q0G; 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 i9si423372pfr.6.2019.06.27.16.18.07; Thu, 27 Jun 2019 16:18:23 -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=aU9s6q0G; 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 S1726719AbfF0XR7 (ORCPT + 99 others); Thu, 27 Jun 2019 19:17:59 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:41392 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfF0XR7 (ORCPT ); Thu, 27 Jun 2019 19:17:59 -0400 Received: by mail-io1-f65.google.com with SMTP id w25so8508953ioc.8 for ; Thu, 27 Jun 2019 16:17:58 -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=1ALt8d0AtAjsRjrBD8rKsbA1G2O0Y0X5Cg7cv209nE4=; b=aU9s6q0Gw5jxFhUMjcSh770eZamw7jwmsQtPSF3OsojwjJFkj/vdbzg1uaasp6O8oC 5Lf3Iylyam/fkMhb8IeT/68P8BTYkIsHI7vQ1GPqKc88kecKDHl2WC5/8te3z2WBI0Qn GcvLKKGe42nXpXjVYDLUDxBy0h88aHmFLnnxMaBSeVl0DYkoN2HA9rSmkVseW8dwgwZT vq+yckoAVxXmA1g0SqgcQ40WeZxmKDNcr597rc7c0Hek93KVhbjPOLKlC3lbT9+wUCJ6 2ANHgiLq+yJhPrxCs/QctQgXz782a+MotcpW5OxWyVZWuus/ZiT/xHuN/4vSOSGpSROl c1kA== 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=1ALt8d0AtAjsRjrBD8rKsbA1G2O0Y0X5Cg7cv209nE4=; b=cCA1Kj+mRdRKYupiPn2/qQfwnZdgS6U1k2a4ciiBSz/eQwZtV026s4XFMFX/CMRQCW YOMoCzZ1m8Cdhtg/4coarTYJubXOnwP4eusptYJCMvyRsBjsRP4OjvT73U3vTVeyp/Qk Nc88vlP5J7vqofyeqkz6I/jMb56MxMlLAqYiYlScJ20S5Vnc7ppD6mii+jMz2cbsIc0q guRYEICncGrCyUn69B3z+auUb6ko5u5LgGcbVlq1P9PMNm56MKvMuNwfJ6r3gajXpZiu Kt9YcXlzxx2dk2aPTw5ecuW2QKWm2E8hsHCTfLbqJiN8yckiPcAgxes1cOebTfmZS/GF DrbA== X-Gm-Message-State: APjAAAU/BNcqFoqP+tS0qgrRNIQTGFLtO6kvFyTZNV0lHeIpK1EBIjyp FvxQvKYAAa2Z9i+hhOsjlhIFVu1oeBMCwHSMnkkw/w== X-Received: by 2002:a6b:8dcf:: with SMTP id p198mr7960681iod.46.1561677478172; Thu, 27 Jun 2019 16:17:58 -0700 (PDT) MIME-Version: 1.0 References: <20190622000358.19895-1-matthewgarrett@google.com> <20190622000358.19895-10-matthewgarrett@google.com> In-Reply-To: From: Matthew Garrett Date: Thu, 27 Jun 2019 16:17:46 -0700 Message-ID: Subject: Re: [PATCH V34 09/29] kexec_file: Restrict at runtime if the kernel is locked down To: James Morris Cc: LSM List , Linux Kernel Mailing List , Linux API , Jiri Bohac , David Howells , kexec@lists.infradead.org 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 Thu, Jun 27, 2019 at 11:14 AM James Morris wrote: > > On Thu, 27 Jun 2019, Matthew Garrett wrote: > > > By that metric, on a secure boot system how do we determine that code > > running in the firmware environment wasn't compromised before it > > launched the initial signed kernel? > > Remote attestation tied to a hardware root of trust, before allowing > access to any further resources. If you use IMA you can get the same guarantees over kexec.