Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2966895ybi; Mon, 17 Jun 2019 13:41:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0AkmMN9s30ylfZlxEq5SZkhmkWRETDUaeMMH9kM0YfkPqlpmtNzP9e9c2JgWnK6BmRO+G X-Received: by 2002:a17:902:f087:: with SMTP id go7mr83684667plb.330.1560804096306; Mon, 17 Jun 2019 13:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560804096; cv=none; d=google.com; s=arc-20160816; b=0RneOus71S2FNhJup9F/wlfMORz8fwY0QZbXEnaTNf6HOUoFgFHNQOJmOvSb3M9obF 9rjfrKmno8AQPimxSzQrJLwlkgFLirUYsSswD4Se+cun7vwceDysgR5Gq0m5pbSDav80 tuqaMMW+J+1EY5000JS2GjbeHYn4YDDmXX2VNgRI19zB7Mu/G5CiheX4ghHv9L/djdtQ WoyxyBS/UwxVOx/IZlp0t9Gzg6YZ4yy0k6CtGAPAy+TzOqH4Eeg+EFdB46rezjUykRk8 ILXyqDTBmXYo6G0FSW89qGpd1gFbArKZjMvSnOBywGzRIk/BaqLPAHIL1EvkbAcEdqMP HMoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=4FOWlqEKS1Qpv2bCE7knZPv2FIYX6UIkd8w4U7nIppU=; b=c8GhvyWGzMJYJfG7O5jXPGF7Cv+5qJcjhfcPPA21eA8rVT0JHJdU8sHgxaSmsneHiH NzlJwlVON3ZLkRFqzX1+f0JN+huGKWQr5L86h50n5jvIyEocxTBntDUIgli9o1KEFE0J mPt7FVSirUtKd3v04gNAgS+8ei7MXp52d00NyU2FLXCh81i4KOh7To+lM9lp5ZBg/4e2 EyawDT64tIMG0nO75uW9zjUXadNLkK4BHP7K0ameVchi/hdEHFJSxgpr533pkWkcuFXG PyHgfCvJmJUaNWnsEXK/M2nGEN64Crex2q3LmFT1uz/9S9EAZg7wbtjkJ3B6w0TSact1 IE0A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 70si10953942plc.253.2019.06.17.13.41.20; Mon, 17 Jun 2019 13:41:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728746AbfFQUjx (ORCPT + 99 others); Mon, 17 Jun 2019 16:39:53 -0400 Received: from linux.microsoft.com ([13.77.154.182]:48736 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbfFQUjx (ORCPT ); Mon, 17 Jun 2019 16:39:53 -0400 Received: by linux.microsoft.com (Postfix, from userid 1029) id EE5F720BCFC5; Mon, 17 Jun 2019 13:39:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by linux.microsoft.com (Postfix) with ESMTP id E8F2C3010321; Mon, 17 Jun 2019 13:39:52 -0700 (PDT) Date: Mon, 17 Jun 2019 13:39:52 -0700 (PDT) From: Jaskaran Singh Khurana X-X-Sender: jaskarankhurana@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net To: Milan Broz cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-fsdevel@vger.kernel.org, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, jmorris@namei.org, scottsh@microsoft.com, ebiggers@google.com, mpatocka@redhat.com Subject: Re: [RFC PATCH v4 1/1] Add dm verity root hash pkcs7 sig validation. In-Reply-To: Message-ID: References: <20190613010610.4364-1-jaskarankhurana@linux.microsoft.com> <20190613010610.4364-2-jaskarankhurana@linux.microsoft.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Jun 2019, Milan Broz wrote: > On 13/06/2019 03:06, Jaskaran Khurana wrote: > ... > >> Adds DM_VERITY_VERIFY_ROOTHASH_SIG_FORCE: roothash signature *must* be >> specified for all dm verity volumes and verification must succeed prior >> to creation of device mapper block device. > > I had a quick discussion about this and one suggestion was > to add dm-verity kernel module parameter instead of a new config option. > > The idea is that if you can control kernel boot commandline, you can add it > there with the same effect (expecting that root device is on dm-verity as well). > > Isn't this better option or it is not going to work for you? Seems like a better option to me, I will make the change and remove both the configs. > > Milan > Regards, Jaskaran