Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4073364rwb; Mon, 21 Nov 2022 03:25:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MNIuuRn1squiBZ2nAilcfqMFKblNRXMV1Z/ZyaJpoFp+oBUTbfXK4XIYeHrRx6X+Xvaf9 X-Received: by 2002:a17:90b:2d8b:b0:202:f88d:587 with SMTP id sj11-20020a17090b2d8b00b00202f88d0587mr20417106pjb.232.1669029941664; Mon, 21 Nov 2022 03:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669029941; cv=none; d=google.com; s=arc-20160816; b=eOaX+W0M095KcIQrV0LEVgNPStWaowl7EwrUNuavXUXacSDDtSSvrHS3ko7N6/mVsD yyMg4IgDPbAapj8+Lm0PGe2wo1dvIXbcpYixz+Hz0UvRN9C0qu7mKSjKt1D5XsglNzDn gsi562TliLmMd+coHCIlKubeVnpO6zCZzuTH4VmhqZWTjxe2ILnZbd+bS0RHxmFg53O6 vwfpjK/0phOebtA3LNx+Ap+UDGcsLPOD6r7u0LOkaCb7RpZLPjEODMn1PVSr2KeZ6lQX U63YpGdT/EJfcvxKbxOm3pRJ4CzEQWqdSqNJeVvxoStyj/X7exv/ellK7EI7tsWSFnHv Pr5w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pA8c8V7IsiNIW0XLXvFbb36MqYFe5uIEjdS7+sXixBU=; b=Fsul71UVPmyjSoTq35Kw/3PHzvQCL5Y4m/Afwz26dQlxPR0Ic6YULIgHRMXW9HyNZV Ma92Ff6QAFACB5v2jtai8RCQ+KL2uJuZWbU/McsVacDdGZORGYO9LORHXjKR4i3Hnx2Z pomDIwywqAZNs6VNRcQmP5/8S/1wqgZQSoOHEGk2xwdSRueGWv5htIZIQ0kZvkbDMNhc PtK8oJwUD5ENN7rT/mMFbnKKu8jVz16a63gC1Gogvw+EbKLut0SWcyf4GcWVJec+atfo m5yZFqPj+T7zLadaUIBAdAgdw8nRS3ZudvczpxNn9MOdvq0fOcjboF8L/1o2ChWGXiyT ZHBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GGvnPAh3; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a17090a780600b001fb35ed6fdesi9085609pjk.53.2022.11.21.03.25.29; Mon, 21 Nov 2022 03:25:41 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GGvnPAh3; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbiKULFu (ORCPT + 92 others); Mon, 21 Nov 2022 06:05:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiKULFs (ORCPT ); Mon, 21 Nov 2022 06:05:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D93663D4; Mon, 21 Nov 2022 03:05:47 -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 0A11B60FF9; Mon, 21 Nov 2022 11:05:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B26DAC433D6; Mon, 21 Nov 2022 11:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1669028746; bh=u4K6l+tDjSuwIb4zoR5rarX0XnI/SZIfH7BiykUNNBA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GGvnPAh3esdRVAOOsFDTE1jSnAzFQCHFJAQzfyn1Khy7X4wEDDNf7cZ38Ch6J8dV9 SBciLLndL26XAZGX25M5wH+1JbWWuHxFAsvnOb5aYvjzMJula3DGPyHMvWwef86SUK kz5QYSyV8G3fj7sLyA3v7Ugrqvetj3eJ1iuxZG6Q= Date: Mon, 21 Nov 2022 12:05:42 +0100 From: Greg Kroah-Hartman To: James Bottomley Cc: Nayna , Nayna Jain , linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-efi@vger.kernel.org, linux-security-module , linux-kernel@vger.kernel.org, Michael Ellerman , npiggin@gmail.com, christophe.leroy@csgroup.eu, Dov Murik , George Wilson , Matthew Garrett , Dave Hansen , Benjamin Herrenschmidt , Paul Mackerras , Russell Currey , Andrew Donnellan , Stefan Berger Subject: Re: [PATCH 2/4] fs: define a firmware security filesystem named fwsecurityfs Message-ID: References: <20221106210744.603240-1-nayna@linux.ibm.com> <20221106210744.603240-3-nayna@linux.ibm.com> <8447a726-c45d-8ebb-2a74-a4d759631e64@linux.vnet.ibm.com> <44191f02-7360-bca3-be8f-7809c1562e68@linux.vnet.ibm.com> <88111914afc6204b2a3fb82ded5d9bfb6420bca6.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <88111914afc6204b2a3fb82ded5d9bfb6420bca6.camel@HansenPartnership.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Sun, Nov 20, 2022 at 10:14:26PM -0500, James Bottomley wrote: > On Sun, 2022-11-20 at 17:13 +0100, Greg Kroah-Hartman wrote: > > On Sat, Nov 19, 2022 at 01:20:09AM -0500, Nayna wrote: > > > > > > On 11/17/22 16:27, Greg Kroah-Hartman wrote: > > > > On Mon, Nov 14, 2022 at 06:03:43PM -0500, Nayna wrote: > > > > > On 11/10/22 04:58, Greg Kroah-Hartman wrote: > [...] > > > > > > I do not understand, sorry.? What does namespaces have to do > > > > > > with this? > > > > > > sysfs can already handle namespaces just fine, why not use > > > > > > that? > > > > > Firmware objects are not namespaced. I mentioned it here as an > > > > > example of the difference between firmware and kernel objects. > > > > > It is also in response to the feedback from James Bottomley in > > > > > RFC v2 [ > > > > > https://lore.kernel.org/linuxppc-dev/41ca51e8db9907d9060cc38ad > > > > > b59a66dcae4c59b.camel@HansenPartnership.com/]. > > > > I do not understand, sorry.? Do you want to use a namespace for > > > > these or not?? The code does not seem to be using namespaces.? > > > > You can use sysfs with, or without, a namespace so I don't > > > > understand the issue here. > > > > > > > > With your code, there is no namespace. > > > > > > You are correct. There's no namespace for these. > > > > So again, I do not understand.? Do you want to use filesystem > > namespaces, or do you not? > > Since this seems to go back to my email quoted again, let me repeat: > the question isn't if this patch is namespaced; I think you've agreed > several times it isn't. The question is if the exposed properties > would ever need to be namespaced. This is a subtle and complex > question which isn't at all explored by the above interchange. > > > How again can you not use sysfs or securityfs due to namespaces?? > > What is missing? > > I already explained in the email that sysfs contains APIs like > simple_pin_... which are completely inimical to namespacing. Then how does the networking code handle the namespace stuff in sysfs? That seems to work today, or am I missing something? If the namespace support needs to be fixed up in sysfs (or in securityfs), then great, let's do that, and not write a whole new filesystem just because that's not done. Also this patch series also doesn't handle namespaces, so again, I am totally confused as to why this is even being discussed... thanks, greg k-h