Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2535819ybi; Mon, 17 Jun 2019 06:32:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFk24bdaVw5ND4byRPSjVNZcJC3dDvfv4n5AOmNKhj7BnePq2v9owCifxQWgZY9YneR5Z3 X-Received: by 2002:a17:902:6b07:: with SMTP id o7mr85635885plk.180.1560778347313; Mon, 17 Jun 2019 06:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560778347; cv=none; d=google.com; s=arc-20160816; b=wp6v/1LU+zAsaNCjCezn3Y8pWlRZxu2wc7UpWmzEcKwqdlndREkfvvntgcdYY1nE+W bZ4jXWl2ei8Lr86MzwhKTs1vll0HHPB5Wy0TSaudL8syZA0vHTxS2VyD2temzQYPEuhS pXEijCeqEBWm3y3ggVLgK5YXqxz5+BnqJcMytXyEeStNZs23pd1qiyukjFfXJ7CidB8x D1DKmmHmK3UqAxQFZulK7W19CG6C/i6vaJ+qScVhX8FaG3n/8p2gVYdNGMF8Dh9oZLSj NvUDrG6pOVOhe8ZH0lgNLvpPo52yp1aNXczRbs0NvL2mZUgFptk7qsLM6NtFyASn7P2o cllA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=TK/taqnh4uTdUXYrgyPWRNDtNYlU83EQagbd52Vya7Q=; b=xx9jCjivgxkb2PAKGpFAPRwsb8njpSKgGrsBWa0fk4tpXAQ5ipWapO5PtiXWuc36G3 HNTxmy+Eu500OQBx4b5K848XvwYwdyiAFRD4GQgChyJBC59B/6lDqk5wv0vdlNHswJQn ejD/G/BUA3cz1Ju5s5ZfBbIBGjo/yNSX7DWGD0Y6KOaGt3EchY+rishm5beAx1C/1SVn ihIdIYRgRTdXIE/SQOfaTIn5AW6J4hNlG9GsZfzCwAUwvrdTGkaKQHsaicBxQkL/vorM /TDFIdEqUUI2B2WE4uISH2S19KVF7PGjxfMs5zra+QT2mSnXfEqcwDUG0Z/c3aGTkj7j 083w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ENOJaDIc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b73si9979205pjc.53.2019.06.17.06.32.10; Mon, 17 Jun 2019 06:32:27 -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=@gmail.com header.s=20161025 header.b=ENOJaDIc; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727810AbfFQNb0 (ORCPT + 99 others); Mon, 17 Jun 2019 09:31:26 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52359 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfFQNb0 (ORCPT ); Mon, 17 Jun 2019 09:31:26 -0400 Received: by mail-wm1-f68.google.com with SMTP id s3so9297363wms.2; Mon, 17 Jun 2019 06:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=TK/taqnh4uTdUXYrgyPWRNDtNYlU83EQagbd52Vya7Q=; b=ENOJaDIcKIyM2ugEwPbDz5yXeyQ4yLGFt0UoLTW/SfFBEE1GI2WZm4B05Cd7QL89vm i0uC0fZ45h8c9+AtE188tELX/cImyDiX8JOdrOjRAPst2wYL72WdZkzlsLKHDbKwO88A fBFmMZpUnBGo/OcqPiFLq31dtZ7vEz5ltwwm5fW1BBQoxHLdm68UDAUY0eWDPuCJUMO6 7HRMfUWEw3KrXVWJwrHfxbWhDffWtoEfx2r//PsTOBcWzfEFH4v6yI6qU44K4tN05rq5 SPtgc4Ts8aT7Zs16DyZAZzSzKhli314JMqBmSk3V1umqS0zyyySyltYGB4IxrHJrp70g 7cgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=TK/taqnh4uTdUXYrgyPWRNDtNYlU83EQagbd52Vya7Q=; b=ERJf3MjkwqXu3lyNHDZGXS21aN6FzW2T1u9voYJoCUw7R0JmHFXRdKRdaJWW0SAANN KZLoEhXuQCmOEs1c+W8ATnDrVZ9b1KLee0LfrWEQSyxF93Y73073coDz7np+WA4ulRGy GhQABTAxTiPYMuOD7u1rBnbROvFbp75jpEdbuD5gATVekIerbKmmGgHq0+n8kXGkgDnP QORMBsEsioOMtlALc97PI3kY51aPnE7rVIPJ5zM8Xo3+uI4okus6sZLPWTu1RBxViOHi CxrwiveEjYGJLG9cnMsh/3EaQSWnOxiYacc4prusne69RXQbgCz2Tz9SwJcTcGxp5S5m bcdQ== X-Gm-Message-State: APjAAAU2ovnyxBO+cUCHkpal4xIa3rMSP7zvqrr7pTKDOJb/1CiZQPjg L+aZuJ/dFevy554l5jbOZ6Q= X-Received: by 2002:a1c:700b:: with SMTP id l11mr18910782wmc.106.1560778283508; Mon, 17 Jun 2019 06:31:23 -0700 (PDT) Received: from [172.22.36.64] (redhat-nat.vtp.fi.muni.cz. [78.128.215.6]) by smtp.gmail.com with ESMTPSA id q12sm8027900wrp.50.2019.06.17.06.31.22 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2019 06:31:23 -0700 (PDT) Subject: Re: [RFC PATCH v4 1/1] Add dm verity root hash pkcs7 sig validation. To: Jaskaran Khurana , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, jmorris@namei.org, scottsh@microsoft.com, ebiggers@google.com, mpatocka@redhat.com References: <20190613010610.4364-1-jaskarankhurana@linux.microsoft.com> <20190613010610.4364-2-jaskarankhurana@linux.microsoft.com> From: Milan Broz Openpgp: preference=signencrypt Message-ID: Date: Mon, 17 Jun 2019 15:31:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190613010610.4364-2-jaskarankhurana@linux.microsoft.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Milan