Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp166349imb; Thu, 28 Feb 2019 19:48:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxHSoa2LzpOaB8wGloOT2zxAKWfyNvsynZ+L9XsJrdHqEeI70/68jrM0YbV2/hbTnh0wXiS X-Received: by 2002:a17:902:14b:: with SMTP id 69mr3141435plb.120.1551412091155; Thu, 28 Feb 2019 19:48:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551412091; cv=none; d=google.com; s=arc-20160816; b=Tt0HOtH9hzEQoPjGrCO3EsKuZOp6XqvY7hrIS16O6a7YN4R4MJTQtuS9UALZaMt+LZ ASH2JavGBUHAdC6ckvrotXLM+9ppJfSQ/eYipYrIS2LFl3t9WUkFAADODZqhb8VyNGa2 lT+SSJYHdWZUzBeBF3+V+n04WEG9n30kYv93eaQ1/6Oqmb1UJFgl1bu3S44BgW4TRzDr pdBwzE2LsLpkAIfcOaqAnhxZBD9vUj7KDXGolcRH17JKQ9z94JzJ0MlqpAZRa/XqZc+G 7Nx/BXnW+vWUWAwPYGex5+VK8D0bvjTYDMqqzTBvOPqAROcO04R4dOedXK/ayI+lpBfU MG7A== 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=GtFvcteIBJq3dYSU1h9ov8iTU+O9WXT4b1Ku5DaUd0w=; b=iG88BN9rQd8/3oaLZG0XQ8J9/fstwvs8It9+w7UnWn82tB261c7w+FBllR4wk3RnB8 cHpXprqcBMMllnSah1+GBlUX5R68YCMtAPjJeFaH06b+JH9mNZ29BQ/f3RK0OU+sz2kY Uiaae3x19VRGcmFyl0di7X/TFjWkafCQIux37NrO+sq2fFirm0GUla+5qoluG5tl3rZM Ns3mKR6z/zWoQeZaIPqoLYzv/liiItP7UrSHtuQDL8OpLzg/wKhrDnFKDvL8b4jZit2+ HwoXuds8avTM+uztTxtavakejgNNd8UhhBB3lFfJXAce/HBR7yLR+WT28WLqkRN4Z4rj U6yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VXH2nYGz; 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 22si19129773pgs.336.2019.02.28.19.47.55; Thu, 28 Feb 2019 19:48:11 -0800 (PST) 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=VXH2nYGz; 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 S1729040AbfCADd3 (ORCPT + 99 others); Thu, 28 Feb 2019 22:33:29 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:45978 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbfCADd3 (ORCPT ); Thu, 28 Feb 2019 22:33:29 -0500 Received: by mail-io1-f68.google.com with SMTP id x9so18444381iog.12 for ; Thu, 28 Feb 2019 19:33:28 -0800 (PST) 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=GtFvcteIBJq3dYSU1h9ov8iTU+O9WXT4b1Ku5DaUd0w=; b=VXH2nYGzuptscs7Fi4efQlx/r+cyna9QZXwaSg4rMz9AxSl9/Ehdtwpe4teyPs/qdy rc2Y4LKBegDyBC0E43GDNfna6kWvvA4NngkXrHqB7Wp15yNUlvN6Nh5CpP3H/iwP3zPh I8nFNir6284yHc/TvfVVvw4jYsR3guVNvL5TCah6YngTBf4Slm+t0rWNIPZcuY7fK4FR 9cd7gubpIrrk0rA1z/xrYjuQepAkTjZwi3d48W73JZNPl86xgFAM71znC9GoCBeg0MR1 DRrzonpU6222sy7XhhzWY/1USFNCfz36OqPRl/ZCl7Bcf4Udquz/eITqHhPpS1tSmUds wtCA== 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=GtFvcteIBJq3dYSU1h9ov8iTU+O9WXT4b1Ku5DaUd0w=; b=e1N63RJf8kzjRryz05aI/jWC1xJ7+Dr+Sjc8Lk8atrWjB3qPn8AN5JpETCip4/svxQ WbLSHFeVmQa8DmMZ7ruclNfNzEYubJdVQQsmlA5Vx5sTHkRzI6gva+SrW/f3EHtaKH5P eXU4xRGtIXFCQB6T3vIjy57xRHA+TC/K0ivYiV7Y426WgXdaJHZTriY689jiikBlqRrJ C/OvJP4shpp6ZnN8jI4U6pjBh32aDIFgzfDyNnnhoChihPE9B71oGVuom6G+hLbqAD4h 0+RGtGutfkvyhbC0bFrLeJxBCdwYTffSnC4khrnS2nkZbkMoGuZwaPDnCYQAy3nle7w2 MVIg== X-Gm-Message-State: APjAAAWJboGMOskaHmQw6bFc3qCGZdAYIVmIuBK/PyCv+i2vX+mAZRCX U4OdAoD/bWYAAnCZsUEkKlFSpw02+nwykIwl1EMdIOkwmAd4Tg== X-Received: by 2002:a5d:9254:: with SMTP id e20mr1601733iol.88.1551411207771; Thu, 28 Feb 2019 19:33:27 -0800 (PST) MIME-Version: 1.0 References: <1551392438.10911.227.camel@linux.ibm.com> <1551398720.10911.270.camel@linux.ibm.com> <1551404654.10911.276.camel@linux.ibm.com> In-Reply-To: <1551404654.10911.276.camel@linux.ibm.com> From: Matthew Garrett Date: Thu, 28 Feb 2019 19:33:16 -0800 Message-ID: Subject: Re: [PULL REQUEST] Lock down patches To: Mimi Zohar Cc: jmorris@namei.org, LSM List , Linux Kernel Mailing List , David Howells 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, Feb 28, 2019 at 5:45 PM Mimi Zohar wrote: > > On Thu, 2019-02-28 at 17:01 -0800, Matthew Garrett wrote: > > > > That's not a valid reason for preventing systems that do use IMA for > > > verifying the kexec kernel image signature or kernel module signatures > > > from enabling "lock down". This just means that there needs to be > > > some coordination between the different signature verification > > > methods. [1][2] > > > > I agree, but the current form of the integration makes it impossible > > for anyone using an IMA-enabled kernel (but not using IMA) to do > > anything unless they have IMA signatures. It's a problem we need to > > solve, I just don't think it's a problem we need to solve before > > merging the patchset. > > That's simply not true. Have you even looked at the IMA architecture > patches? Sorry, I think we're talking at cross purposes - I was referring to your patch "ima: require secure_boot rules in lockdown mode" (https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?h=efi-lock-down&id=7fa3734bd31a4b3fe71358fcba8d4878e5005b7f). If the goal is just to use the architecture rules then I don't see any conflict, and as far as I can tell things would just work as is if I drop the ima portion from "kexec_file: Restrict at runtime if the kernel is locked down"? Apologies, I'd thought that the secure_boot ruleset was still intended to be used in a lockdown environment.