Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4601722rwd; Tue, 30 May 2023 07:33:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vcsvzAeWF/9XKP9w5X4PBvw1H8sXROwnnfMGcI9ZoUgsG+k5j+etOy0Fcd++8mt9cMhr9 X-Received: by 2002:a17:90b:fd7:b0:256:ab7:b670 with SMTP id gd23-20020a17090b0fd700b002560ab7b670mr2939176pjb.1.1685457234240; Tue, 30 May 2023 07:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685457234; cv=none; d=google.com; s=arc-20160816; b=Y09goqIQB5Rc6QpuUVwPt+LJXaWTZNmU4vRMMYqMyVQfFSBI+X+aFpXFA9SAoACd1l gSVXZUNvTW5r1rFcaFk8rH7QbbztVmzrg37gYTNO696Nph4CX+5dOaFT0Mtosx60r7tO IKQvNCl4maY9sCPxkN08EgtU9hXvd6dRujH2FeSgtD8J1HeEYui6hpVBmFC5BKoJCUbU WF+9uGZhsSHYOt8ISnh3VQ+pf2LutfRIn/FvM7jLFYUw8uS6GF6z1IlYmv9QfyLSMY5q HZmLhKBfJpKHATxqxZL73j01KR+oyA9FLdTZ161+fd/ZqT9ggxZzbW3ve44iApu4Jq62 zhFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hTW9ndHNpc+d1xX2fydVvBLa4h9baZWEzUVWLMfgr+c=; b=hMilaZyqQbqKX4Q9E0MT4j+TN8sT9LKZ2J2EUAJcVdtzlqp6MYJ+QOClscnWBpe0Sn Ugorx8hY4lOqBzg1tdpjaT6ZUNp1UFyIBXJ9vv/FuVNEHRl7KdyPtFe1nojkhsu2VMTZ +rdpJe2m3xZnpxxj/PWSwTEa0vlLu79MMK2y7xn5sAzXG3jNAXJCKzFzwvdTd5sb9euX SeXLthYNS8/FTCiheu30MNIbdGv6YBvQ8wLIvcXOiwjiTghNvFm/LHk2rXr9bWnk/PFt miGExblA1eqxGa3PhUiQywNChBMn6+LuUQmlOSQyNNcsRc32V/bJ6cOjtrhJV6L98z5g eASQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a17090aa79700b0024dd0a6c437si11594586pjq.59.2023.05.30.07.33.35; Tue, 30 May 2023 07:33:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232486AbjE3O3b (ORCPT + 99 others); Tue, 30 May 2023 10:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjE3O31 (ORCPT ); Tue, 30 May 2023 10:29:27 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66716102; Tue, 30 May 2023 07:29:05 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 277B268B05; Tue, 30 May 2023 16:28:27 +0200 (CEST) Date: Tue, 30 May 2023 16:28:26 +0200 From: Christoph Hellwig To: Christian Brauner Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Xiu Jianfeng , gregkh@linuxfoundation.org, rafael@kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, code@tyhicks.com, hirofumi@mail.parknet.co.jp, linkinjeon@kernel.org, sfrench@samba.org, senozhatsky@chromium.org, tom@talpey.com, chuck.lever@oracle.com, jlayton@kernel.org, miklos@szeredi.hu, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, stephen.smalley.work@gmail.com, eparis@parisplace.org, casey@schaufler-ca.com, dchinner@redhat.com, john.johansen@canonical.com, mcgrof@kernel.org, mortonm@chromium.org, fred@cloudflare.com, mpe@ellerman.id.au, nathanl@linux.ibm.com, gnoack3000@gmail.com, roberto.sassu@huawei.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-cachefs@redhat.com, ecryptfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, wangweiyang2@huawei.com, Christoph Hellwig Subject: Re: [PATCH -next 0/2] lsm: Change inode_setattr() to take struct Message-ID: <20230530142826.GA9376@lst.de> References: <20230505081200.254449-1-xiujianfeng@huawei.com> <20230515-nutzen-umgekehrt-eee629a0101e@brauner> <75b4746d-d41e-7c9f-4bb0-42a46bda7f17@digikod.net> <20230530-mietfrei-zynisch-8b63a8566f66@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530-mietfrei-zynisch-8b63a8566f66@brauner> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-nfs@vger.kernel.org On Tue, May 30, 2023 at 03:58:35PM +0200, Christian Brauner wrote: > The main concern which was expressed on other patchsets before is that > modifying inode operations to take struct path is not the way to go. > Passing struct path into individual filesystems is a clear layering > violation for most inode operations, sometimes downright not feasible, > and in general exposing struct vfsmount to filesystems is a hard no. At > least as far as I'm concerned. Agreed. Passing struct path into random places is not how the VFS works. > So the best way to achieve the landlock goal might be to add new hooks What is "the landlock goal", and why does it matter? > or not. And we keep adding new LSMs without deprecating older ones (A > problem we also face in the fs layer.) and then they sit around but > still need to be taken into account when doing changes. Yes, I'm really worried about th amount of LSMs we have, and the weird things they do.