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 922CAC27C40 for ; Thu, 24 Aug 2023 17:16:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241519AbjHXRQW (ORCPT ); Thu, 24 Aug 2023 13:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241772AbjHXRQJ (ORCPT ); Thu, 24 Aug 2023 13:16:09 -0400 Received: from cavan.codon.org.uk (cavan.codon.org.uk [176.126.240.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F422219A3; Thu, 24 Aug 2023 10:16:04 -0700 (PDT) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id 9A43A406E5; Thu, 24 Aug 2023 18:16:03 +0100 (BST) Date: Thu, 24 Aug 2023 18:16:03 +0100 From: Matthew Garrett To: Jiao Zhou Cc: Ard Biesheuvel , Peter Jones , linux-fsdevel@vger.kernel.org, Jeremy Kerr , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel: Add Mount Option For Efivarfs Message-ID: References: <20230822162350.1.I96423a31e88428004c2f4a28ccad13828adf433e@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Aug 24, 2023 at 12:51:07PM +0100, Jiao Zhou wrote: > We want to support fwupd for updating system firmware on Reven. Capsule updates > need to create UEFI variables. Our current approach to UEFI variables of > just allowing access to a static list of them at boot time won't work here. > > I think we could add mount options to efivarfs to set the uid/gid. We'd > then mount the file system with fwupd's uid/gid. This approach is used by a > number of other filesystems that don't have native support for ownership, > so I think it should be upstreamable. Makes sense. Acked-by: Matthew Garrett