From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ram Pai Subject: Re: bind mounts and options Date: Fri, 28 Oct 2005 11:18:34 -0700 Message-ID: <1130523514.4902.22.camel@localhost> References: <20051028151343.365eecea.attila@kinali.ch> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from e34.co.us.ibm.com ([32.97.110.152]:40921 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S1030417AbVJ1SSz (ORCPT ); Fri, 28 Oct 2005 14:18:55 -0400 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id j9SIItEU017396 for ; Fri, 28 Oct 2005 14:18:55 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j9SIItk9511846 for ; Fri, 28 Oct 2005 12:18:55 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j9SIIs44027047 for ; Fri, 28 Oct 2005 12:18:55 -0600 To: Attila Kinali In-Reply-To: <20051028151343.365eecea.attila@kinali.ch> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 2005-10-28 at 06:13, Attila Kinali wrote: > Moin, > > I wanted to ask whether there is a technical reason > why bind mounts do not honour options passed to it. > > It would be a really cool feature to be able > to mount certain parts of the file system into > a chroot enviroment read only, so that it couldnt > be modified, but still be changed by a user outside > the chroot. > > At least i've seen a few patches floating around > that add at least the ro option, so i guess it should > not be too hard. A bind mount to a different location creates a new mount-instance of the underlying filesytem. If the underlying filesystem can handle multiple instances of itself being mounted with different read-options, this should be possible. But I dont think currently that is the case. RP > > Attila Kinali > - > To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html