* bind mounts and options
@ 2005-10-28 13:13 Attila Kinali
2005-10-28 18:18 ` Ram Pai
0 siblings, 1 reply; 4+ messages in thread
From: Attila Kinali @ 2005-10-28 13:13 UTC (permalink / raw)
To: linux-fsdevel
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.
Attila Kinali
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bind mounts and options
2005-10-28 13:13 bind mounts and options Attila Kinali
@ 2005-10-28 18:18 ` Ram Pai
2005-10-28 18:28 ` Shaya Potter
2005-10-29 10:22 ` Attila Kinali
0 siblings, 2 replies; 4+ messages in thread
From: Ram Pai @ 2005-10-28 18:18 UTC (permalink / raw)
To: Attila Kinali; +Cc: linux-fsdevel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bind mounts and options
2005-10-28 18:18 ` Ram Pai
@ 2005-10-28 18:28 ` Shaya Potter
2005-10-29 10:22 ` Attila Kinali
1 sibling, 0 replies; 4+ messages in thread
From: Shaya Potter @ 2005-10-28 18:28 UTC (permalink / raw)
To: Ram Pai; +Cc: Attila Kinali, linux-fsdevel
On Fri, 2005-10-28 at 11:18 -0700, Ram Pai wrote:
> 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.
one could create a really simple stackable file system that did this,
use fist, generate base0fs, and edit the code to disallow all function
paths that can change the filesystem. It's not a complete situation, as
meta data (access time...) would still be updated.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bind mounts and options
2005-10-28 18:18 ` Ram Pai
2005-10-28 18:28 ` Shaya Potter
@ 2005-10-29 10:22 ` Attila Kinali
1 sibling, 0 replies; 4+ messages in thread
From: Attila Kinali @ 2005-10-29 10:22 UTC (permalink / raw)
To: Ram Pai; +Cc: linux-fsdevel
On Fri, 28 Oct 2005 11:18:34 -0700
Ram Pai <linuxram@us.ibm.com> wrote:
> 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.
Well, the patch at http://www.13thfloor.at/patches/ seems to do
that. Though i have to admit that i hardly know anything about the
vfs system, so i cannot say whether it does it the right way
and whether it works in all cases.
Attila Kinali
--
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
-- reeler in +kaosu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-29 10:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 13:13 bind mounts and options Attila Kinali
2005-10-28 18:18 ` Ram Pai
2005-10-28 18:28 ` Shaya Potter
2005-10-29 10:22 ` Attila Kinali
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.