Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp103785imm; Thu, 2 Aug 2018 14:53:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdVcMcFgKgnWj0sUIpLowVprwqDkx25fwSGmPeDdHUzzqXU6ICzpA5LjQOeED/4eLA6cddF X-Received: by 2002:a63:5c7:: with SMTP id 190-v6mr1037507pgf.385.1533246797824; Thu, 02 Aug 2018 14:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533246797; cv=none; d=google.com; s=arc-20160816; b=lsNDov96ImbwbHj1BostGk+6V3uz/JqFFeSA8wpNgsfW2GLyVZBVxnu3K5KitrOYjv a9q7+1XA6EB+nBbAD8ew1H5o7LmxC540rUqoHWwkePjuCZIsmckt+3GjxjTsz/jjpLho 3Id93rSS9p054GVbFIPQHty1f9SRr7bkNIGkC8N3ax00rDIvLfO4+hwUp/O9NGW1EpnZ p54spDty7T/vQPE5uIYkxZbByUmbPzrsuoYzhnMD1iTdnN79oXFA87yyMG9WwCBcm19R fme5j/2DtY9UgWR+8yvb8GihyzXDneX5wHhRIiEuDx6BIx7iLQtciOPxGEmyfM5HlC7k 0Dtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:arc-authentication-results; bh=JZxrOFOvuPYKZKQJb4DcSl16/tRr+nXKiyk9UkvYxSw=; b=KENsOKzDb6rzx+2TgHS8NrKkjjiQzrwz7SLYp9/ZWyxHrt0rjnVZnvZvQoGdMZpG70 43haXp+lhPuBZ0+DrljLsNP83ce2sjwcirpUBSobSBbHPHvoSn0cb9/uxqbYJJhgFZ9s fFlfiVfvXtoiGcNvqgRrUBaom/S9DM5VEflLNimPzpScBgsg3jsweaN3p/RJ8Aid4UvO Ue1UpJny4kBeEtZPrdjK8XtE6o+sArQz3WwGgtX+ubdTcGcWKKG0kx0XpkWYxGZMUGIs 5gOmOPWkVL50c/FAU2mcbOwzbjUxgOxictrU8n3rWx/Bi5+P4zJMsZfrnWF7kFXFNARO 5/jQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24-v6si2146336plr.240.2018.08.02.14.53.03; Thu, 02 Aug 2018 14:53:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732572AbeHBXpE convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Aug 2018 19:45:04 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47364 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732482AbeHBXpD (ORCPT ); Thu, 2 Aug 2018 19:45:03 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6780040216F4; Thu, 2 Aug 2018 21:52:00 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-116.rdu2.redhat.com [10.10.120.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 731161C71E; Thu, 2 Aug 2018 21:51:59 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <7a292a44-7e17-572b-2d1e-0085ef400010@gmail.com> References: <7a292a44-7e17-572b-2d1e-0085ef400010@gmail.com> <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <153313705165.13253.4602180607294286849.stgit@warthog.procyon.org.uk> To: Alan Jenkins Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-api@vger.kernel.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/33] vfs: syscall: Add open_tree(2) to reference or clone a mount [ver #11] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21310.1533246718.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Thu, 02 Aug 2018 22:51:58 +0100 Message-ID: <21311.1533246718@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 02 Aug 2018 21:52:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 02 Aug 2018 21:52:00 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Jenkins wrote: > Another closely-related limitation of `mount`, is that it can't atomically set > the propagation type at mount time. I want to add a mount_setattr() too at some point: fd = open_tree(..., OPEN_TREE_CLONE); mount_setattr(fd, ...); move_mount(fd, ...); I'm not sure whether you should be able to fchdir into the cloned tree since it isn't attached to any mount namespace. David