Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1928953ybh; Fri, 13 Mar 2020 09:50:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsfY6FBObYn+wE0UECBPuFmVCkxjkLxRSqrk6c2g4Q2xGU38FUKi+3lFHGqaqlyTK28Ouq7 X-Received: by 2002:a9d:12b4:: with SMTP id g49mr12333759otg.50.1584118255446; Fri, 13 Mar 2020 09:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584118255; cv=none; d=google.com; s=arc-20160816; b=h/MZb4gFKnh5CiRfi83cQDCQ2/a32iBeGTVVrwmTMmJyZvy31Y5X5SNAWXU6F1Sdq1 NAnC0Nmzx9NU2/xyzBrFpWDXdMnzDv5OOxdGtfLsrdbKaO1X+Wief2DXvIzawma/+x+O ClEuyNomNpVUONmdS4atVf6dbTMue746WGP0MlLm4tlaBsL6MDNdhL0T/JKGPacztsj7 5e0mKKzKVjUo2jJHCnfkad/rKKlvlrfO8u5GVPp7B/muqtK7sAX776n35MPv56DrPLxT c9uR0F1bKLSP6931NDU2rWjCEjhs0352lTl+YPa22AAgBXzMr+RhVagXuCBeNCO6U8xL ee5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=4vhKPMR7SeZxlf7ZpBtqsj7Dz5N+IM1oiuv9cBc+Ink=; b=MlcynYmFuToznyA0mR/i/WnDrpAYNmDalAkZtsdfyKBqz7yHQULKSL+bXCNIggMap8 JqSVNV6VSEtNejZgrB1h9+faDmlOVS2zOCurWULjZk9esrILLanelfuiRExKOcyWZt/7 O8gnZi5zdvSN6/HZA1cOzkziUcxkQxiiXQH2DYPziRZ1j/1artF/shm09PUIJTX/dwFT AytYnIg/sABUO4+bQPuxV34cjC6B5M9BaWRUk7oJda/WpnnlSeIlWowETrTGY/DTHnQp G8aNEozFZvsiOn8BbLY3NhYJliUF9c90Tp8oQERpD/fciRqfyLqeP3s/CjU7DYPwpJob jT8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=iKm45esC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193si3658536oih.78.2020.03.13.09.50.43; Fri, 13 Mar 2020 09:50:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=iKm45esC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbgCMQtP (ORCPT + 99 others); Fri, 13 Mar 2020 12:49:15 -0400 Received: from hr2.samba.org ([144.76.82.148]:26618 "EHLO hr2.samba.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgCMQtO (ORCPT ); Fri, 13 Mar 2020 12:49:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-ID:Cc:To:From:Date; bh=4vhKPMR7SeZxlf7ZpBtqsj7Dz5N+IM1oiuv9cBc+Ink=; b=iKm45esCD3Z7W10y62bNXkvQId yQpjzJBHnGD8w/MVLMPLZSzXI3W1J0ESUAzUdCzKsrTNuazHyXEZuU6Un0upKxGdtnHfRTNdzXqlL E8WpeKrqXYyNYPmOy+ukbYgpqiE16Za+rqYwxLlMvA22gUMj8SxYEbGGbeD/1a+4eqihAs4n9I2Tb NZOOZh2TvLbutKsObumOFis7hoi4QZbGdla4YE0M25C2Ze8dCxTMvLgNLYzAZCxE0NH5vs1maItsK 9GzZP4YjFpJt2eAqHJmS8SaZqvxN1AsLwDyH76zUZ4Zo1vVDoXJASgCkN2QfVQzlHV0GfIGN0DVOU uD1tuibwoGkWrtuinM5SyWGu+mx0eCb/BYwZjEssXYc+bj0KTc0I+E/FVYy5313XY6P6ghsaorG21 RRRfxJvciWou6kGv/9FQR66d98ys9flGp9S8QD5tUXbxcmQZQbPASuDNh5aB9ANU5diyWYtTkeRnc d3m96Qz+vwBVqoehb9dqX+1G; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim) id 1jCnUj-0001NY-Ee; Fri, 13 Mar 2020 16:49:09 +0000 Date: Fri, 13 Mar 2020 09:48:57 -0700 From: Jeremy Allison To: Aleksa Sarai Cc: Stefan Metzmacher , Linus Torvalds , David Howells , Al Viro , Ian Kent , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Karel Zak , jlayton@redhat.com, Linux API , linux-fsdevel , LSM List , Linux Kernel Mailing List , Ralph =?iso-8859-1?Q?B=F6hme?= , Volker Lendecke Subject: Re: [PATCH 01/14] VFS: Add additional RESOLVE_* flags [ver #18] Message-ID: <20200313164857.GA17682@jeremy-acer> Reply-To: Jeremy Allison References: <158376244589.344135.12925590041630631412.stgit@warthog.procyon.org.uk> <158376245699.344135.7522994074747336376.stgit@warthog.procyon.org.uk> <20200310005549.adrn3yf4mbljc5f6@yavin> <580352.1583825105@warthog.procyon.org.uk> <3d209e29-e73d-23a6-5c6f-0267b1e669b6@samba.org> <8d24e9f6-8e90-96bb-6e98-035127af0327@samba.org> <20200313095901.tdv4vl7envypgqfz@yavin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200313095901.tdv4vl7envypgqfz@yavin> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 08:59:01PM +1100, Aleksa Sarai wrote: > > I have heard some folks asking for a way to create a directory and get a > handle to it atomically -- so arguably this is something that could be > inside openat2()'s feature set (O_MKDIR?). But I'm not sure how popular > of an idea this is. This would be very useful to prevent race conditions between making a directory and EA's on it, as are needed by Samba for DOS attributes and Windows/NFSv4 ACLS.