Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2587583imw; Wed, 6 Jul 2022 08:25:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uWi3HQz7eDafkihtE8VDmZQMRHk1fdLVfMWdZ7gZCjzRNonamBawGgddIA5mbU2Ax3u749 X-Received: by 2002:a17:906:9753:b0:722:f1e3:ec27 with SMTP id o19-20020a170906975300b00722f1e3ec27mr39024505ejy.355.1657121155716; Wed, 06 Jul 2022 08:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657121155; cv=none; d=google.com; s=arc-20160816; b=eyqsjF2i1CmVbYGCISR1wAl49KvuMhq+1F9NL07UcbXbMgsDFtaa+qIohSscB4JD/0 fry7N2k7QJ3+HXwywq+j9aFiwCkXp8mcN8GuhQQYckjJDZBxqqYQS2ygR/uSqcc2nq8H fpZrOaAx+m0uUV8PNlPERF/CPETDDIGKR96B3P/zsXv4WP3WXDcAsqlJFD+VzKqSmGs+ j6/KdesoCzXX4MzGIPtAJPQgwIGkQBF7523WhIOMHp53rfdjMnJcNJnlVzUV5+hScVDx k95QkqXLzuyQ0Rs5NyW2MRUECKsTCWtyO0jn24gfmUVYrGgDyjE+3IOeLFPTkUlaCgVR giNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=I0RXuzZs3s0id/kcom5gH7O0HmNMUUNPAv91LFO4+a4=; b=k/zsM8APF1QuOCJXsvZZLOp+xe0MLMXEbPfDWgIceWu1jhZU4G1bfVRfU3ZoQ0HkgE 7feYGj1yTR7Rrm+8+OLC7A/exeWH32y1Hp9v91qfp3S6rFWKUU6mc8e5aZig7xTeKarD AV4IY8RVqLBsrkkrrrKJeGIkIWJYbb8AXj4KbgVDo1MTNKohuux0rILsWWetn5ozqdKy 3VIKebX8ukqnZHY6YHe7B5hVqKURkJxmzRkq0CkoQAOkiWRVZ51C9Aqt/RXE+8ugnOSl 6jL4QQr1qATIMq6pww1+dLyze+74pJ/maCWBICiZCL8xRoTXPnIj4gDxTIWb4CNM52zn dakA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a50ec8c000000b0043a7fb10d46si4288441edr.545.2022.07.06.08.25.30; Wed, 06 Jul 2022 08:25:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232625AbiGFPHI (ORCPT + 99 others); Wed, 6 Jul 2022 11:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbiGFPHH (ORCPT ); Wed, 6 Jul 2022 11:07:07 -0400 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A58001AF06 for ; Wed, 6 Jul 2022 08:07:01 -0700 (PDT) Received: by mail-qt1-f181.google.com with SMTP id l14so18599541qtx.2 for ; Wed, 06 Jul 2022 08:07:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=I0RXuzZs3s0id/kcom5gH7O0HmNMUUNPAv91LFO4+a4=; b=thsqiGOm2hw49DgkAwKjxKE9N786KR1TLNJV1w7m/5QEnEk1xz3sZQTmhs3vNGW5qa 9snTMjyutcGHDjbEMMMp56hP2yKcpK7lcQ/lu3oHw2XKeZXLqbQOAs1c4lSxwf/WHt1M f+x8k+F98Tlkveo4thxWjJj+UPKTQriPhf1o+EHNZ0uM/yoCIjGhR9RftJUczTZULmRx 5VtlnDPg+sHVd6X0StcPw06jHMrI9qBD9y9Qv0WjvMSyx+tHi3ohV1Pm27LZdJQ6XpgM DIZCZSYbSr/Q8R9BrFSOTS5HKGkMOsBMOVvdy8Lm2Ypuev5SaRjJZZ0xIlX1CHD5Prj4 fYJw== X-Gm-Message-State: AJIora/ni2g7DeUnsIeqWJr8T/NUjIWdUyMvkcIzYys9ThEkLQXieHI5 89htEW7BmQxXGX11O+q1WIpNN5aMFYdn X-Received: by 2002:a05:6214:29e6:b0:470:44d9:1ec5 with SMTP id jv6-20020a05621429e600b0047044d91ec5mr36520228qvb.95.1657120020754; Wed, 06 Jul 2022 08:07:00 -0700 (PDT) Received: from localhost (pool-68-160-176-52.bstnma.fios.verizon.net. [68.160.176.52]) by smtp.gmail.com with ESMTPSA id d3-20020ac81183000000b0031a2cdab5cesm19492709qtj.37.2022.07.06.08.06.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jul 2022 08:07:00 -0700 (PDT) Date: Wed, 6 Jul 2022 11:06:58 -0400 From: Mike Snitzer To: Matthias Kaehlcke Cc: Alasdair Kergon , Kees Cook , James Morris , "Serge E . Hallyn" , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Douglas Anderson , linux-raid@vger.kernel.org, Song Liu , linux-security-module@vger.kernel.org, Milan Broz Subject: Re: [PATCH v7 1/3] dm: Add verity helpers for LoadPin Message-ID: References: <20220627153526.3750341-1-mka@chromium.org> <20220627083512.v7.1.I3e928575a23481121e73286874c4c2bdb403355d@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627083512.v7.1.I3e928575a23481121e73286874c4c2bdb403355d@changeid> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27 2022 at 11:35P -0400, Matthias Kaehlcke wrote: > LoadPin limits loading of kernel modules, firmware and certain > other files to a 'pinned' file system (typically a read-only > rootfs). To provide more flexibility LoadPin is being extended > to also allow loading these files from trusted dm-verity > devices. For that purpose LoadPin can be provided with a list > of verity root digests that it should consider as trusted. > > Add a bunch of helpers to allow LoadPin to check whether a DM > device is a trusted verity device. The new functions broadly > fall in two categories: those that need access to verity > internals (like the root digest), and the 'glue' between > LoadPin and verity. The new file dm-verity-loadpin.c contains > the glue functions. > > Signed-off-by: Matthias Kaehlcke > Acked-by: Kees Cook Acked-by: Mike Snitzer