Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp725800pxa; Tue, 11 Aug 2020 13:29:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvDpKyXDt9g7YMX274F4MvSxBXIrQncZT9rPQQQi3x43QI6y2kDYaXiog5PA7+x0dwxfK5 X-Received: by 2002:a17:906:6558:: with SMTP id u24mr26990158ejn.364.1597177776846; Tue, 11 Aug 2020 13:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597177776; cv=none; d=google.com; s=arc-20160816; b=mMgdbK0jwDYqoXfYcqF2FB063IyQaozOHmiFvOj/BHuI1tt57EmB/eMkVnv4LkBl1o fE0Jh8e0ZaqFMtkTIdNFBRDumhIJNYm/hWIAD3306D0BhzAbOQ3qnv0yxcuLW1r+ahnK F/CRo5Q+XubRLoxH6fH+dqgL7M6E1tyFWItTYmI8a6ylteFWPAQamVatxYNZ042HDyFs Hwqf5neS7GgOUeoB3OdGCIIZueoWmZkGBiEUXlFo1mEvKRaj8XIgcZCsQHzwYlKaoWDj XQXH5z0imA8qEMzzkvDEROaoeZaplTKFMBb+RN9gvhr5bZqI04E5/4nlbcyxNe9b9kcl OdpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ve5Yd3mwVy0R7O+69rb0Z3/pkYDrUBPYv3Y7SDQCiIs=; b=g+bP3pkA8wJHomLk+ewp7YcCWL7wue2NyqJd3/fCytmfK908511Ly4MHDWDRKcBRE6 ksRElgARZRU6lY/AN1f+8iwho+K4hcIVPdA5NGruJN5zgNihJnQOL0nQnvwFXcmGJGv6 OgdQfxOAGMrLeGtd5iLEdomwmepXZCzZF6Psi8qi8louMznQOZ8fcFbvenI0aTrWfjvb ts4dIu8HHoqUbBh70yMxqScSVwUet5d5+zz6BZbDi0RRqK7Zzgc0h5fAQLy7qFpX9hni vsOQ30aQUcHFfvkRERndk0mmOFGq1AZ86Ase0UOQGdkdF9aCkmD+j3td1UxhVoHJyKpv 5HyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=chfynWAB; 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 sa12si13437416ejb.276.2020.08.11.13.29.11; Tue, 11 Aug 2020 13:29:36 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=chfynWAB; 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 S1726705AbgHKU2p (ORCPT + 99 others); Tue, 11 Aug 2020 16:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbgHKU2o (ORCPT ); Tue, 11 Aug 2020 16:28:44 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D039C06178A for ; Tue, 11 Aug 2020 13:28:43 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id d6so14517906ejr.5 for ; Tue, 11 Aug 2020 13:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ve5Yd3mwVy0R7O+69rb0Z3/pkYDrUBPYv3Y7SDQCiIs=; b=chfynWAB8HsSXn0Nq9kuiBHfOY/TZ4j75nPnyD8edBXlVosZV/a4sfirrV1K1EKGZQ CcdKgi6EAOOB4iCCl58grDpy8pwBziFonZaMthHTr/jQhkDC3TEiBlQCO6xUpVbJ1fwt zcQQlAsevZ8biY9RI4Sz9V1uGTfE6bGeW0b0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ve5Yd3mwVy0R7O+69rb0Z3/pkYDrUBPYv3Y7SDQCiIs=; b=a9NAkPZZ2IX2OsGn3q3VRE6dOZL+5Rv19/VHDEQa8CoqdykYxOeVGzyc8Z7LLRLfl+ 5jxeWL4ylVLkHTCNrJsyt8jqCA+KyEG29+yjuwJX+iCNHbdiGj8YtWhmFkHiA8Fl2J1t 7HpBbpB5K5/gRBA3BSXOfHLS/FziT1beVtJsf62Q4FPodTtuP9fXOiVUg6docYSvedUH Kiwxv49Zj/qIcJOvCmu9gzawJVA5WMwd4DAeMbkqm3UQer8qcCHhzxFLKusYgsVIslN5 CBz4HEAXAtqYZjIBRgOaF0ws0axsZLGNg56fHnmv2W7wED4LURHo1Iu7z+vbvfEP/HqH IdxA== X-Gm-Message-State: AOAM532ZdZknTVbkEYgQuJwnP54pfF0jsGsftFv4gv4WAXBpkM6NC7CT hoa7m59dyy8yijCLwUwSh2F7btGcE2IZJcyJvoJhXA== X-Received: by 2002:a17:906:b2d7:: with SMTP id cf23mr27554943ejb.113.1597177722443; Tue, 11 Aug 2020 13:28:42 -0700 (PDT) MIME-Version: 1.0 References: <5C8E0FA8-274E-4B56-9B5A-88E768D01F3A@amacapital.net> In-Reply-To: From: Miklos Szeredi Date: Tue, 11 Aug 2020 22:28:31 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Casey Schaufler 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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. And that means it's probably possible to find a fairly short combination that is never used in practice (probably containing the "/." sequence). 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. Thanks, Miklos