From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamie Lokier Subject: Re: [RCF] [PATCH] unprivileged mount/umount Date: Wed, 11 May 2005 18:07:00 +0100 Message-ID: <20050511170700.GC2141@mail.shareable.org> References: <406SQ-5P9-5@gated-at.bofh.it> <40rNB-6p8-3@gated-at.bofh.it> <40t37-7ol-5@gated-at.bofh.it> <42VeB-8hG-3@gated-at.bofh.it> <42WNo-1eJ-17@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , ericvh@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, smfrench@austin.rr.com, hch@infradead.org Return-path: Received: from mail.shareable.org ([81.29.64.88]:20944 "EHLO mail.shareable.org") by vger.kernel.org with ESMTP id S261995AbVEKRHg (ORCPT ); Wed, 11 May 2005 13:07:36 -0400 To: "Bodo Eggert " <7eggert@gmx.de> Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Bodo Eggert wrote: > > How about a new clone option "CLONE_NOSUID"? > > IMO, the clone call ist the wrong place to create namespaces. It should be > deprecated by a mkdir/chdir-like interface. And the mkdir/chdir interface already exists, see "cd /proc/NNN/root". There are some small quirks to fix, should we decide that's the way to go. But it's basically there. File descriptors keep track of the namespace (actually vfsmnt) where they were opened. Today, if you pass a directory file descriptor from one process to another, you're granting access to see the other's namespace. That's why /proc/NNN/root works (with small fixes) in much the way you'd expect. -- Jamie