Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261398AbVEXR4i (ORCPT ); Tue, 24 May 2005 13:56:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261369AbVEXR4i (ORCPT ); Tue, 24 May 2005 13:56:38 -0400 Received: from rev.193.226.233.9.euroweb.hu ([193.226.233.9]:49420 "EHLO dorka.pomaz.szeredi.hu") by vger.kernel.org with ESMTP id S261432AbVEXR4f (ORCPT ); Tue, 24 May 2005 13:56:35 -0400 To: mikew@google.com CC: miklos@szeredi.hu, jamie@shareable.org, linuxram@us.ibm.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@osdl.org, viro@parcelfarce.linux.theplanet.co.uk In-reply-to: <42936807.2000807@google.com> (message from Mike Waychison on Tue, 24 May 2005 10:44:39 -0700) Subject: Re: [RFC][PATCH] rbind across namespaces References: <1116627099.4397.43.camel@localhost> <1116660380.4397.66.camel@localhost> <20050521134615.GB4274@mail.shareable.org> <429277CA.9050300@google.com> <4292D416.5070001@waychison.com> <42935FCB.1010809@google.com> <42936807.2000807@google.com> Message-Id: From: Miklos Szeredi Date: Tue, 24 May 2005 19:56:09 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 20 > So you'd say 'mount /dev/foo /proc/self/fd/4' if 4 was an fd pointing to > a directory in another namespace? > > That does require proc_check_root be removed. :\ Or just make an exception to self? proc_check_root() could begin with: if (current == proc_task(inode)) return 0; For all other tasks it would still be effective. Miklos - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/