From: Eric Van Hensbergen <ericvh@gmail.com>
To: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Cc: Ram <linuxram@us.ibm.com>, Jamie Lokier <jamie@shareable.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [RFC][2.6 patch] Allow creation of new namespaces during mount system call
Date: Wed, 20 Apr 2005 13:00:16 -0500 [thread overview]
Message-ID: <a4e6962a0504201100167542f6@mail.gmail.com> (raw)
In-Reply-To: <20050420170921.GT13052@parcelfarce.linux.theplanet.co.uk>
On 4/20/05, Al Viro <viro@parcelfarce.linux.theplanet.co.uk> wrote:
>
> Excuse me, but could somebody give coherent rationale for such requirements?
> _Especially_ for joining existing group by completely unrelated process -
> something we don't do for any other component of process.
>
> On Wed, Apr 20, 2005 at 09:51:26AM -0700, Ram wrote:
> > Reading through the thread I assume the requirement is:
> >
> > 1) A User being able to create his own VFS-mount environment
> >
I think this enables a more secure environment for users when they
mount/bind their own file systems (be it network or synthetic). It
helps prevent them from "spoofing" files and/or resources for users
other than themselves. Security exposure for "system" files can be
limited by preventing users from mounting/binding over secure
locations and by enforcing nosuid/nosgid on user mounted file systems.
Since there is no way to get at the "private" namespace, its contents
are "safe" from otherwise privileged users of the system (I'm not sure
if I agree with this, but I think that is part of what sent us down
this thread in the first place).
> > 2) being able to use the same VFS-mount environment from
> > multiple login sessions.
> > 3) Being able to switch some processes to some other
> > VFS-mount environment.
These requirements are less clear to me - although it might be useful
to structure things in such a way that it is easy to recreate a
VFS-mount environment. To a certain extent the information in
/proc/x/mounts gives this information, but I'm unclear on how this
might impact synthetic file systems.
Another alternative is to allow easy re-export of a constructed
VFS-mount environment so that it could be mounted/bound into other
environments. The Plan 9 /srv (3) device kind of works this way. I
assume that is some of the intent under the shared subtree stuff as
well.
Of course that doesn't answer the question of why you need to do these
things in the first place. One case is when you've opened up a remote
file system in one window under a private namespace and realize you
need access to those files in another window -- opening up a new
connection to the server from the other window seems somewhat heavy
weight -- I imagine the same thing would be the case in a synthetic
file system case (like a user-space encrypted file system).
In Plan 9, the connection to the server (whether remote or local
synthetic) would be represented by a handle in the /srv device. This
single instance can then be mounted onto a particular process'
namespace, and all that is required to share the instance is the /srv
handle. The /srv handles can be per-user or just protected with
normal file system permissions (I guess this is sorta similar to Ram's
device suggestion).
All in all, I think these last two requirements represent a much
tougher problem and there very well may be a better solution to what
they are trying to do. Its also worth noting (as I think someone did)
that this invalidates private namespace's prevention of unauthorized
"super-user" access to user files (which is somewhat bogus anyways).
-eric
next prev parent reply other threads:[~2005-04-20 18:00 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 22:13 [RFC][2.6 patch] Allow creation of new namespaces during mount system call Eric Van Hensbergen
2005-04-19 22:23 ` Al Viro
2005-04-19 23:53 ` Eric Van Hensbergen
2005-04-20 3:33 ` Al Viro
2005-04-20 9:45 ` Jamie Lokier
2005-04-20 10:27 ` Al Viro
2005-04-20 12:03 ` Jamie Lokier
2005-04-20 12:39 ` Al Viro
2005-04-20 16:51 ` Ram
2005-04-20 17:09 ` Al Viro
2005-04-20 17:53 ` Miklos Szeredi
[not found] ` <a4e6962a0504201107518416e9@mail.gmail.com>
2005-04-20 18:18 ` Eric Van Hensbergen
2005-04-20 18:34 ` Miklos Szeredi
2005-04-20 20:43 ` Jamie Lokier
2005-04-20 20:54 ` Al Viro
2005-04-20 22:16 ` Jamie Lokier
2005-04-20 21:08 ` Al Viro
2005-04-20 22:19 ` Jamie Lokier
2005-04-20 18:00 ` Eric Van Hensbergen [this message]
2005-04-20 18:33 ` Ram
2005-04-20 22:04 ` Jamie Lokier
2005-04-30 8:56 ` Christoph Hellwig
2005-04-30 15:01 ` Jamie Lokier
2005-05-11 9:05 ` Christoph Hellwig
2005-04-21 7:33 ` Mount bind filehandle (Was: Re: [RFC][2.6 patch] Allow creation of new namespaces during mount system call) Jan Hudec
2005-04-21 8:09 ` Christoph Hellwig
2005-04-21 9:32 ` Jan Hudec
2005-04-20 18:57 ` [RFC][2.6 patch] Allow creation of new namespaces during mount system call Bryan Henderson
2005-04-20 19:37 ` Miklos Szeredi
2005-04-21 0:08 ` Bryan Henderson
2005-04-21 8:06 ` Miklos Szeredi
2005-04-21 13:33 ` [RFC][patch] mount permissions (was: [RFC][2.6 patch] Allow ...) Miklos Szeredi
2005-04-21 16:57 ` [RFC][2.6 patch] Allow creation of new namespaces during mount system call Bryan Henderson
2005-04-20 20:51 ` Al Viro
2005-04-21 0:23 ` Bryan Henderson
2005-04-21 0:32 ` Al Viro
2005-04-21 8:10 ` Christoph Hellwig
2005-04-20 21:09 ` Ram
2005-04-21 0:42 ` Bryan Henderson
2005-04-21 19:10 ` Ram
2005-04-20 18:25 ` Bryan Henderson
2005-04-20 12:48 ` Jan Hudec
2005-04-20 22:13 ` Jamie Lokier
2005-04-21 10:09 ` Jan Hudec
2005-04-21 18:44 ` Jamie Lokier
2005-04-21 18:52 ` Hiding secrets from root (Was: Re: [RFC][2.6 patch] Allow creation of new namespaces during mount system call) Jan Hudec
2005-04-21 20:35 ` Jamie Lokier
2005-04-20 13:14 ` [RFC][2.6 patch] Allow creation of new namespaces during mount system call Eric Van Hensbergen
2005-04-20 13:55 ` Eric Van Hensbergen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4e6962a0504201100167542f6@mail.gmail.com \
--to=ericvh@gmail.com \
--cc=jamie@shareable.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linuxram@us.ibm.com \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.