From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34E41C3DA6E for ; Fri, 16 Dec 2022 20:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231489AbiLPUz0 (ORCPT ); Fri, 16 Dec 2022 15:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229742AbiLPUzW (ORCPT ); Fri, 16 Dec 2022 15:55:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4A8F57B6B; Fri, 16 Dec 2022 12:55:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B1D562203; Fri, 16 Dec 2022 20:55:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72201C433F0; Fri, 16 Dec 2022 20:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671224120; bh=Xwcytn+LoirjjEGfFRYRfniLWhHW1mgnIB+bcrZQfrA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M08Tp1Nd4FaewBLlMg7sBZRj6HV+oopMEURtYwNlMRbz4VjYPGQ/qCd+W7pemHb9x 0vUAuy1Cm5dVMIp7PhWEbp3itnRVeJ8KeYxDynKo1QWtmJpOOpqen99iyVERF4PyCy oJBXgXdmZPg3XQxLDaOp/X/scQDEVUl2ugeJiVkCVxSWEW1BvHV2yI/r6mFjbA+fG/ plymEurGnXR0A74q+mivvOnbm7dVuUbtTHVGlbx8uzOuB2diLWpC1T6gWiLeor9b2i ytVWVHlC5efZgfm3nV1xYO9dH6BFQe8jnpcK75vuWSIFj9v42UjwXXru4GKqdoIA9h xkNZ64Qu9aIsQ== Date: Fri, 16 Dec 2022 12:55:18 -0800 From: Eric Biggers To: Luca Boccassi Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, linux-integrity@vger.kernel.org, Jes Sorensen , Victor Hsieh Subject: Re: [PATCH] fsverity: mark builtin signatures as deprecated Message-ID: References: <20221208033548.122704-1-ebiggers@kernel.org> <00c7b6b0e2533b2bf007311c2ede64cb92a130db.camel@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00c7b6b0e2533b2bf007311c2ede64cb92a130db.camel@debian.org> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Dec 08, 2022 at 09:37:29PM +0000, Luca Boccassi wrote: > > The second question is easy: because the kernel is the right place for > our use case to do this verification and enforcement, exactly like dm- > verity does. Well, dm-verity's in-kernel signature verification support is a fairly new feature. Most users of dm-verity don't use it, and will not be using it. > Userspace is largely untrusted, or much lower trust anyway. Yes, which means the kernel is highly trusted. Which is why parsing complex binary formats, X.509 and PKCS#7, in C code in the kernel is not a great idea... - Eric