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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F34CC433E2 for ; Sat, 29 Aug 2020 19:25:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 16B7F20774 for ; Sat, 29 Aug 2020 19:25:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728410AbgH2TZ5 (ORCPT ); Sat, 29 Aug 2020 15:25:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728335AbgH2TZ4 (ORCPT ); Sat, 29 Aug 2020 15:25:56 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A96EAC061236 for ; Sat, 29 Aug 2020 12:25:56 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kC6Ta-0079Df-Jd; Sat, 29 Aug 2020 19:25:22 +0000 Date: Sat, 29 Aug 2020 20:25:22 +0100 From: Al Viro To: Miklos Szeredi Cc: Matthew Wilcox , Dave Chinner , Christian Schoenebeck , "Dr. David Alan Gilbert" , Greg Kurz , linux-fsdevel@vger.kernel.org, Stefan Hajnoczi , Miklos Szeredi , Vivek Goyal , Giuseppe Scrivano , Daniel J Walsh , Chirantan Ekbote Subject: Re: xattr names for unprivileged stacking? Message-ID: <20200829192522.GS1236603@ZenIV.linux.org.uk> References: <20200816225620.GA28218@dread.disaster.area> <20200816230908.GI17456@casper.infradead.org> <20200817002930.GB28218@dread.disaster.area> <20200827152207.GJ14765@casper.infradead.org> <20200827222457.GB12096@dread.disaster.area> <20200829160717.GS14765@casper.infradead.org> <20200829161358.GP1236603@ZenIV.linux.org.uk> <20200829180448.GQ1236603@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sat, Aug 29, 2020 at 09:13:24PM +0200, Miklos Szeredi wrote: > > d_path() is the least of the problems, actually. Directory tree structure on > > those, OTOH, is a serious problem. If you want to have getdents(2) on that > > shite, you want an opened descriptor that looks like a directory. And _that_ > > opens a large can of worms. Because now you have fchdir(2) to cope with, > > lookups going through /proc/self/fd//..., etc., etc. > > Seriously, nobody wants fchdir(). And getdents() does not imply fchdir(). Yes, it does. If it's a directory, fchdir(2) gets to deal with it. If it's not, no getdents(2). Unless you special-case the damn thing in said fchdir(2). > As for whether we'd need foobarat() on such a beast or let > /proc/self/fd/ be dereferenced, I think no. So comes the argument: > but then we'll break all those libraries and whatnot relying on these > constructs. Well, sorry, so would we if we didn't introduce this in > the first place. That's not really breaking anything, it's just > setting expectations. Translation: we'll special-case that in procfs, etc., etc. and handwave the problems away. Lovely...