Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp763144pxa; Tue, 11 Aug 2020 14:36:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaVIUAnDlvSsSHdbmOqDaW2DLAEog0AN1cyhaNWOTL+h6QxOIVciTQcXK6TivbF2HZQ8IW X-Received: by 2002:a17:907:104a:: with SMTP id oy10mr28509619ejb.267.1597181795491; Tue, 11 Aug 2020 14:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597181795; cv=none; d=google.com; s=arc-20160816; b=nHPIxjP71XuSNXMy+wQP1vc10aoJoe4086X7r4SasAO37b0D3EF49q+Jzy1aqlBcV8 3YIh/V1DMqkT2JxRepOmWc5Oi3j1fih8w1jEGSHM6pMQKF7QKKnURuRhtgTDaxnnLJxP glLGlBms2QtpgJOrnQcYvoXV0mT4v1qD1Hul1aj0NBWbvvkG6s5RcYsm0iabiuN0LNne 2RmaeorALvl3u4EoZfOBpCjqfHFUKQUHUSIik2lkABOUhBpNWHb6ofc8TNEM0FyMqS9V MXbF5yrMrXbMFJkt6UPS1W+OWL9I2XWwY2jwwPv6kEBcAQ5tsmjPwBHGp1r24EsVdqwF Rbqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8w+EvcZsCqHpbTMb7B5p6NtPpopAs+8fJLhaCvPEguQ=; b=tkNnsgGzu5BZz4ulu9T+Wj3GCTHxsQWyRnl8Pz5dIGTHOjFPi0tsr2rGv+4QOeLla2 dfR/Z84Fwg7ogALzVkc1Du9yw5CWMBb5Hp3/uw5+f+YhlkPChChYL5SCl+C8RWNYKo/K ONRS6VHYnhLggJsOFOL9HlbppqY6CyTFvTHvyJhRkJVkJVibjJrokfgqrPPOdLOZ3wsW j7Ay8yhs15rVHKdICZ16ZFeNg6crGlRzBOstUvL46P2m67GMk4SVrbd3KSIT6QR2kX1b mc+/E2ZXL9Aqz1hj0RcX5XEOP1IWOyDD36ZLgUi2Fl5L9gBdzw3yPJ6o6+nMgyhR1Euv qEeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=i91CjXyS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si6250716ejt.551.2020.08.11.14.36.12; Tue, 11 Aug 2020 14:36:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=i91CjXyS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726366AbgHKVfh (ORCPT + 99 others); Tue, 11 Aug 2020 17:35:37 -0400 Received: from sonic312-30.consmr.mail.ne1.yahoo.com ([66.163.191.211]:44377 "EHLO sonic312-30.consmr.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbgHKVfh (ORCPT ); Tue, 11 Aug 2020 17:35:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1597181736; bh=8w+EvcZsCqHpbTMb7B5p6NtPpopAs+8fJLhaCvPEguQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From:Subject; b=i91CjXySd1TgYGOpZu2BTool5O+P8ufWcekoPfjnGFQp9kbbp4YCkeAzRTkM7AH8X3sfZ6sfWbJLK+FvddMQew7r5WK2dolRfKKtYB/IZ1DsFL0lWIv4vHJ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ANHc1nIGTidBz4BSbS.1Oa7O_JjpWi4O4WAp_7RBfNt3MA S3NpsokMdgsIOKTlZVp7eN3mK18dczJs0_.0Xi21tc6.ohEr70gLejLMbbjhREn9kURu..k1gdNr EUYPJOSwDZf5eaGQd9j7.VH8Asu16xztRa9cmxzyNZGyF2WqcOOrGbkvhfAuOGe0zd7yfh0WKAQI 8B3AoCYRz.wccr9hd.lS7kNel5rjpCUfpweZK_cP66XAZ_fCyoKDdLFOElU6zKQFdzGTCGEyMlyn ATPwA6O1Qe2ruuFkx.y6HLhdHAQ85jMhnNpdRFY4KedHWYsdnAG..cS9lxAfTM81z31E.3fcOOhx DvKyYL_YM7HhsGmX6wiXskyDSzS7H1jNTqei_OTjrr2j2m7lZQKDVMEYv6n3yhaTgbwxkSX8gGNP 5PWXqcKMMQ8A5YDvuNBAhk1LJgXBnD6D5xJep6cmbHeyeC_JVyL1wRB_dAyYUNBscorpkn0D5hY_ IxFJD0tiQhnl2tetFuJqrpq_NGHIR8aIq4ZkkHC1D4fys0ELI59Iq_CK1iV_6bLhFJKGZMrcSImc kvVBYO4myW2zF9GmT33nOUpmciPoyK_pdh_NHRQSECyWXoWVsu_ju8Wc7OgY8bnn9mTKZrflDwcB _B5SCzE92E6IdAorK8ll.vqIRtuhjgePlgw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Tue, 11 Aug 2020 21:35:36 +0000 Received: by smtp415.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 96b01fe5efcd5843237bda437e1afa7c; Tue, 11 Aug 2020 21:35:35 +0000 (UTC) Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Miklos Szeredi Cc: Andy Lutomirski , Linus Torvalds , linux-fsdevel , David Howells , Al Viro , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , Linux Kernel Mailing List , Casey Schaufler References: <5C8E0FA8-274E-4B56-9B5A-88E768D01F3A@amacapital.net> From: Casey Schaufler Message-ID: Date: Tue, 11 Aug 2020 14:35:33 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailer: WebService/1.1.16455 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 2076 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/11/2020 1:28 PM, Miklos Szeredi wrote: > On Tue, Aug 11, 2020 at 6:17 PM Casey Schaufler wrote: > >> Since a////////b has known meaning, and lots of applications >> play loose with '/', its really dangerous to treat the string as >> special. We only get away with '.' and '..' because their behavior >> was defined before many of y'all were born. > So the founding fathers have set things in stone and now we can't > change it. Right? The founders did lots of things that, in retrospect, weren't such great ideas, but that we have to live with. > Well that's how it looks... but let's think a little; we have '/' and > '\0' that can't be used in filenames. Also '.' and '..' are > prohibited names. It's not a trivial limitation, so applications are > probably not used to dumping binary data into file names. Hee Hee. Back in the early days of UNIX (the 1970s) there was command dsw(1) "delete from switches" because files with untypeible names where unfortunately common. I would question the assertion that "applications are not used to dumping binary data into file names", based on how often I've wished we still had dsw(1). > And that > means it's probably possible to find a fairly short combination that > is never used in practice (probably containing the "/." sequence). You'd think, but you'd be wrong. In the UNIX days we tried everything from "..." to ".NO_HID." and there always arose a problem or two. Not the least of which is that a "magic" pathname generated on an old system, then mounted on a new system will never give you the results you want. > Why couldn't we reserve such a combination now? > > I have no idea how to find such it, but other than that, I see no > theoretical problem with extending the list of reserved filenames. You need a sequence that is never used in any language, and that has never been used as a magic shell sequence. If you want a fun story to tell over beers, look up how using the "@" as the erase character on a TTY33 lead to it being used in email addresses. > Thanks, > Miklos