Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4097539imj; Tue, 19 Feb 2019 15:26:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZkVzIuokElVl6tGvJHp9CKQDsVoJlDyNBYhWT4qeJsylJ7LGwqwRSfzTnrSK+liddwNbAh X-Received: by 2002:a63:1b49:: with SMTP id b9mr26343492pgm.112.1550618786921; Tue, 19 Feb 2019 15:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550618786; cv=none; d=google.com; s=arc-20160816; b=e+oXMJJLQ55lZ0lwYuGUqi6qrIrXk8/06l1Rs/Z2lbpWv7IITScQBC9fs7EfSL+oo4 9ZzbAZpa6AoB4VfNE7sauejr2XSqnQKtE3B88kk1fUqflSrUajd9XmI5Y/KF2/hWeWlQ Dib7abrnmKykj2+T3WhJ3UTqIsmxl80Fd6jdRip7pVjSEhhBRhwi648+pd/HDs52Wxx2 BkNumf4RJJ2hZlqMeCIlFsSId2e/rUzP4GVUx5bDu4HQRUFTTe9VkxU3l4ogOFsbY/IB ZKxBDTlV/Jc9779LKw7FKZ/SR1IOjgjl/hcbCTlUKv7g1Z1eE4padizXtZMU6UoWfget qSjA== 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-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=wjK+4ieGPDJmJzWYRbUr8/tAGU2ROxADQoHqUHl/l2w=; b=EWOgU7Rip56HKDI1bUw0HKEYZdH12ILHKK+6++hZ8MBjdJxAymo6RDwpOz012LBF3z bXufjsf147Tfv4NYakk7CnUQRN4+IcJLo1Jiuhl4LGwpTbU0LGPSuNIkRJf6n6sPg6Ck bjr2tuaVxyeQmG+2HQzj21D41VgInjYGQwrZj76r7KEPaBgOGZJs1HKmxdNkpQ7jfpro sBbeGEFyIqoQ6xfV+dL4c7ofNj57JoJ5Nof3ADviota+jzeJt/6vYWVyoUJ2vChLgeqH tP3QYK/c28clz4YZXZPXz2PykIy2wO6rV7ZkEFjnCYoKzBKQd+UeDjqpshTnmctgKp0l cFwg== 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 193si16822054pgc.220.2019.02.19.15.26.10; Tue, 19 Feb 2019 15:26:26 -0800 (PST) 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 S1729881AbfBSXY1 (ORCPT + 99 others); Tue, 19 Feb 2019 18:24:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41324 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbfBSXY1 (ORCPT ); Tue, 19 Feb 2019 18:24:27 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1B51E1E306; Tue, 19 Feb 2019 23:24:27 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-129.rdu2.redhat.com [10.10.121.129]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F8951710E; Tue, 19 Feb 2019 23:24:22 +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: <8736ojwwuq.fsf@xmission.com> References: <8736ojwwuq.fsf@xmission.com> <155024683432.21651.14153938339749694146.stgit@warthog.procyon.org.uk> <155024688620.21651.16013251077091180213.stgit@warthog.procyon.org.uk> To: ebiederm@xmission.com (Eric W. Biederman) Cc: dhowells@redhat.com, keyrings@vger.kernel.org, trond.myklebust@hammerspace.com, sfrench@samba.org, linux-security-module@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, rgb@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 06/27] containers, vfs: Allow syscall dirfd arguments to take a container fd MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20783.1550618661.1@warthog.procyon.org.uk> Date: Tue, 19 Feb 2019 23:24:21 +0000 Message-ID: <20784.1550618661@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 19 Feb 2019 23:24:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman wrote: > In fact if you take care to use a path that starts with '/' the normal > dirfd based operations work just fine. If the path starts with '/', dirfd is ignored. And there's an error in my patch description - it should be: mkdirat(cfd, "fred", 0755); David