Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp741888pxa; Tue, 11 Aug 2020 13:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGCrnhaIMISFFA6p9qjzALc3P6/X8G54F28nrGaPYbqqUfdQj96ALejcHNLogLEZnMSJM8 X-Received: by 2002:a05:6402:297:: with SMTP id l23mr28201667edv.145.1597179551922; Tue, 11 Aug 2020 13:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597179551; cv=none; d=google.com; s=arc-20160816; b=BRfxt0l1yorEIHO57clVmS8R2X6qacejjbTxlpT3e74bUmORoSZyd6L2m5fBPQK/nd d9gHinIkA3i2D2KcPcvShT7x5DRFgqH+XqHk6CpYIL7AuHuKSSYOkgATxiNlyR5iJnU8 aaefIr9qq6bqyPE7FMQtPT0PgP2UBXyPvPZNNPe5z7Jg1BlG3Mcu+g4l9tpmkYX4s0Po KIppeggzuRi5iQJULRr6rFQgmwqPmkiu3GtNwEukwE5xGmtl3EngQq9Nqyf944FozSXU TJxfl+UOLVTLjZ5W5e1iUZNatYfF+ewrZXf2ErWN26eFnctYn6Rhtk81pa737h5s4CVw mQBA== 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=mIwwgXuVYR9J8FN3Q7OBMSeO2MRyPkPN2N5o9h2ay8w=; b=JyU3iQikuDIp856QdIJ07LbwDrwd3DPcDxHU21d1BeAQuUfNsOIsNjT0xSsgnAKg/7 r/qQacs0+5mZis/7DoDPmTylVBs/y/w0Nm5/57Yj73LMJOVXy9rlm7dRSr0wmKQErWUR VMzzeZGKQtX/+x0nv7xnvAmty2xty5ExHyah5oNAZSUdKDpZ6y7hxLviY4qJ4xzJIgYG x8H6+64EY0qgSQOY+R4TeSRUVRE0BcEker4BDKQsWG7heMeLSlCXM4cqEbIofEe7g3hw WzmlIxxyo29ZYLwLMBISHCB5okdp0SCDRPGp+wBB/7ns2DxhH5qgnvURt7Ig4Z3DRdhy SgkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=eKcrw8bQ; 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 bf22si6536370edb.475.2020.08.11.13.58.48; Tue, 11 Aug 2020 13:59:11 -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=eKcrw8bQ; 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 S1726115AbgHKU4b (ORCPT + 99 others); Tue, 11 Aug 2020 16:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbgHKU4a (ORCPT ); Tue, 11 Aug 2020 16:56:30 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82A5C061788 for ; Tue, 11 Aug 2020 13:56:29 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id bs17so10135675edb.1 for ; Tue, 11 Aug 2020 13:56:29 -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=mIwwgXuVYR9J8FN3Q7OBMSeO2MRyPkPN2N5o9h2ay8w=; b=eKcrw8bQXY0ON3Tby3NTqixV/DjoLpozBmhQ9Wxh8CrzQKneLuoqFBgMjT6gAHEG5x zYyv+zLUzEwpSrr4OU+QfyjH1a/L/3382mM+GuZnpa9mC47RvCYGIpTbFcfYEHdSy8L3 lYq0C+Xov6wYQlMCdmDB+OTEIdrvHwkv9okCI= 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=mIwwgXuVYR9J8FN3Q7OBMSeO2MRyPkPN2N5o9h2ay8w=; b=guxY2TjIdxA4NmqtHBxE5Eyt+NWvLkGExceV90D+ZRtTEfne5U0n6bMmKbbaxMfrhA DPaYAepzcAxSl96iW6zzgbvOUvJ4IJABEmntrKifbRKBF3Z1NCDNm/9BYfliG3ksBIhe XecFVf3uWM1zolvr6Lltikgd3fIt4Qo6l7yZ+X7HqII5Xry4s5S9DDduei2qV4oSaB4I jOFsZhIAH0c5CTUa/zhtJQKCEyf1LqItWmcrM5XczoZ0KRtoaqZlxUVwuuXYN0tDkwWP nxg53R++x0Py/YWRhkAfORIpQR7LZyyc8/qICwa+soGMFc4qdvkOJQmgfUjyVT8teYqj k/mg== X-Gm-Message-State: AOAM530nAkM+Yl6wbNY6DEwI3ghKDma87Z3Xp+IazAJaJK1LSiugQzJB FYG8bQOq0+YUNyjGxdZDq513+mgww6NZyEO0eq82Cg== X-Received: by 2002:a05:6402:12c4:: with SMTP id k4mr27523537edx.358.1597179388290; Tue, 11 Aug 2020 13:56:28 -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:56:17 +0200 Message-ID: Subject: Re: file metadata via fs API (was: [GIT PULL] Filesystem Information) To: Jann Horn Cc: Casey Schaufler , 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 10:37 PM Jann Horn wrote: > If you change the semantics of path strings, you'd have to be > confident that the new semantics fit nicely with all the path > validation routines that exist scattered across userspace, and don't > expose new interfaces through file server software and setuid binaries > and so on. So that's where O_ALT comes in. If the application is consenting, then that should prevent exploits. Or? Thanks, Miklos