Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp483402pxa; Tue, 11 Aug 2020 07:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUt3dcFpKqc9Y9QsX0+uGBtSK7LAaig4xmPcjno+hDY3uHUU8CFYXIZstP6TpIIH3t2UHh X-Received: by 2002:a17:906:7e0a:: with SMTP id e10mr26243431ejr.312.1597157392480; Tue, 11 Aug 2020 07:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597157392; cv=none; d=google.com; s=arc-20160816; b=rwp7i0gQdQgqjKRLo9JMq7wgSW5WwWbYruyvBAx4UrwFfTyN+T+pLNsUU34NjOpO1D zN7HOMcHEhq0SvrTo1fsrZy0/fa+jvApMoqkuAseLpkXTZh4R1MwSvMxxS5ECdSpZM8D 5j7IyoaFV1cXBMaDGW/lmy2zQ9xi2bgQEz71JI6kS+xdNlRCpYZbLntvYev9z3mgNbww ywfOcVIIujuxk/UrZkZyHWrg0Qb7KWtlvgt6u2QRDIw3BZhjuOxqbqtyTaM7nleonyjH wu0eOHMf1DNAWmIAHdxgmQqiZWm5+PAQ0jGm5wQ/iTd4Miip92SPdZMkYL2MnZxzdJUX HcLA== 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=NlI3wwMv00NWAKa4U5L5YIW/C1hPZtgfWHscUycMhMg=; b=AKl9dcVEoZEivOH5EbTPNgvH3OtdgtXw/25SJyFhQpFWQ76guIc6j3PstgL7VexQ7H tZC2oTmJzBO2CWq19thptlVc69U4sfwF2u0iDKScDfCTmKxH1NikupSBPjid4e53FvUd bbY00SRrkQxTOqLyTo2/zKV8Qd3Adb8grSZI/CLUFYDn7LbZExeQvSComOVa0/DGuweJ /GqJ6tGLXcMsJLG8tQn/ZClBn4QEyYeN4oGcMuSvtAZFRBa+8CU+tWC2MHuDfTdto0H+ 4DxBIpWU6+MUCEXDjL2EoAFRvqsAuCr7fmeVo15ONwhk13FzqvmQrAToxuRysc7hp1XO g3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="b/1GrCuy"; 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 k13si12695899ejb.579.2020.08.11.07.49.29; Tue, 11 Aug 2020 07:49:52 -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="b/1GrCuy"; 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 S1728829AbgHKOrz (ORCPT + 99 others); Tue, 11 Aug 2020 10:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728821AbgHKOry (ORCPT ); Tue, 11 Aug 2020 10:47:54 -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 67CC0C061787 for ; Tue, 11 Aug 2020 07:47:54 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id qc22so13392429ejb.4 for ; Tue, 11 Aug 2020 07:47:54 -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=NlI3wwMv00NWAKa4U5L5YIW/C1hPZtgfWHscUycMhMg=; b=b/1GrCuy3zsT+xu5hfBEofJfyyKQre91pqNlsX0MOiaTmfxSPwy7IGLslRBMr1FYKY zI3t+/pBjNn/cWUYAhxg2ybd+V693B7WeKqrlAhEyzJ+Wc8nUDESQI2IF1QON3Jh9uVT YZ8yQWu+czbgj3GVSDUvltitl5HM0LYJ+TUMs= 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=NlI3wwMv00NWAKa4U5L5YIW/C1hPZtgfWHscUycMhMg=; b=XBRA1NvN73JdQG1lx1Sf6LYpYTTNUXvCC3K+RVckZyjl88TGrHGlbBJctzcxO3J9pu nn/8T/2z262lAI+y9ILFsPZZoOpAWHbXhBrmwQlu8TeXWXu4b4LVGDR8onbSUkslSIgI rmX+fwVGVze4L8/yOBJyYny4KrGCyjm858bNEg8RAbGZz46hgXNZyosuUg8g5aD64vDm o2yrRoiJXDpGRL9moOCIZzmxupQsYe5SRhhmDXrP5EpnlZ5GUKkcT0BQFv1CfY6JOIMH nWgM1+Y8bJ44TJAh4yGoUJHOZWBUisHRXk6VjO+pFLRPMY7LTfjor9LrpVi55UGhKVUE 1+CQ== X-Gm-Message-State: AOAM532+ubK0sCrr1VH630NpNctkBvxRJ2Y+4+2WUZ/tQ7QSxW8mUeMo k6a/0Lf5ysHqzueKw+4L7oGTSw5Lz42JQycXQhG+gA== X-Received: by 2002:a17:906:3c59:: with SMTP id i25mr26135160ejg.202.1597157272920; Tue, 11 Aug 2020 07:47:52 -0700 (PDT) MIME-Version: 1.0 References: <1845353.1596469795@warthog.procyon.org.uk> <20200811135419.GA1263716@miu.piliscsaba.redhat.com> <20200811140833.GH1236603@ZenIV.linux.org.uk> <20200811143107.GI1236603@ZenIV.linux.org.uk> <20200811144247.GK1236603@ZenIV.linux.org.uk> In-Reply-To: <20200811144247.GK1236603@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Tue, 11 Aug 2020 16:47:41 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Al Viro Cc: linux-fsdevel@vger.kernel.org, David Howells , Linus Torvalds , Karel Zak , Jeff Layton , Miklos Szeredi , Nicolas Dichtel , Christian Brauner , Lennart Poettering , Linux API , Ian Kent , LSM , linux-kernel@vger.kernel.org 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 4:42 PM Al Viro wrote: > > On Tue, Aug 11, 2020 at 04:36:32PM +0200, Miklos Szeredi wrote: > > > > > - strip off trailing part after first instance of /// > > > > - perform path lookup as normal > > > > - resolve meta path after /// on result of normal lookup > > > > > > ... and interpolation of relative symlink body into the pathname does change > > > behaviour now, *including* the cases when said symlink body does not contain > > > that triple-X^Hslash garbage. Wonderful... > > > > Can you please explain? > > Currently substituting the body of a relative symlink in place of its name > results in equivalent pathname. Except proc symlinks, that is. > With your patch that is not just no longer > true, it's no longer true even when the symlink body does not contain that > /// kludge - it can come in part from the symlink body and in part from the > rest of pathname. I.e. you can't even tell if substitution is an equivalent > replacement by looking at the symlink body alone. Yes, that's true not just for symlink bodies but any concatenation of two path segments. That's why it's enabled with RESOLVE_ALT. I've said that I plan to experiment with turning this on globally, but that doesn't mean it's necessarily a good idea. The posted patch contains nothing of that sort. Thanks, Miklos