From: David Leimbach <leimy2k@gmail.com>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: /etc/mtab and per-process namespaces
Date: Tue, 4 Oct 2005 13:07:48 -0700 [thread overview]
Message-ID: <3e1162e60510041307q3fc900e7tdcf96eb268816eac@mail.gmail.com> (raw)
In-Reply-To: <20051004194301.GO7992@ftp.linux.org.uk>
On 10/4/05, Al Viro <viro@ftp.linux.org.uk> wrote:
> On Tue, Oct 04, 2005 at 12:14:47PM -0700, David Leimbach wrote:
> > Hmm no responses on this thread a couple days now. I guess:
> >
> > 1) No one cares about private namespaces or the fact that they make
> > /etc/mtab totally inconsistent.
> > 2) Private Namespaces aren't important to anyone and will never be
> > robust unless someone who cares, like me, takes it over somehow.
> > 3) Everyone is busy with their own shit and doesn't want to deal with
> > me or mine right now.
>
> 4) If you insist on having /etc/mtab the same file in all namespaces,
> you obviously will have its contents not matching at least some
> of them. Either have it separate in each namespace where you want
> to see it, or simply use /proc/self/mounts instead.
Well I guess it's my fault to some extent with the subject line. I
don't really care about /etc/mtab so much except that I'd like it to
be consistent if it is going to be there. I'd rather it do one of two
things. Show me my current process's namespace accurately or just the
stuff that's global to all namespaces. Right now it's kind of in
between.
Also since when I type "mount" it just spits out what's in "mtab" it
seems like that should be made more accurate... not /proc/self/mounts.
(it looks like you can just edit the file and stick whatever you want
in there... I just stuck the line:
"blah blah blah"
in there and got:
"blah on blah type blah ()"
from "mount" with no arguments)
>
> BTW, "private" is an odd term - they are all on the same footing; "system"
> one is just the namespace of init (and those of its descendents that share
> the namespace with it). Nothing special about it...
>
It's actually a bit more like "protected" I suppose [in an OO
inheritance sense]. If I use clone with the right flags my new
process has a namespace that doesn't get reflected in the other
process's. Sure I still inherit the parent's namespace, but I'm free
to bind to my hearts content in ways that other processes will not see
[unless they are children of the currently clone'd process].
Even in this "protected" namespace other processes can clearly see
what I'm doing via /etc/mtab. It seems there will always be a way to
sniff out this information though since all the files of the form
/proc/<pid>/mounts are read accessible by everyone.
Dave
next prev parent reply other threads:[~2005-10-04 20:07 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-02 22:08 David Leimbach
2005-10-04 19:14 ` David Leimbach
2005-10-04 19:18 ` Christoph Hellwig
2005-10-04 19:49 ` Michael Tokarev
2005-10-04 19:52 ` David Leimbach
2005-10-04 19:43 ` Al Viro
2005-10-04 20:07 ` David Leimbach [this message]
2005-10-04 20:20 ` Al Viro
2005-10-05 16:29 ` Ram
2005-10-14 2:10 ` Mike Waychison
2005-10-17 0:47 ` Ian Kent
2005-10-20 3:53 ` Rob Landley
2005-10-20 3:42 ` Rob Landley
[not found] <4TkbZ-6KJ-9@gated-at.bofh.it>
[not found] ` <4U0uy-33E-7@gated-at.bofh.it>
[not found] ` <4U0XK-3Gp-47@gated-at.bofh.it>
2005-10-04 21:20 ` Bodo Eggert
2005-10-05 0:14 ` Al Viro
2005-10-22 13:23 Dr. Greg Wettstein
2005-10-29 0:06 ` Ram Pai
2005-10-29 10:16 ` Rob Landley
2005-10-31 19:11 ` Ram Pai
2005-10-31 23:27 ` Rob Landley
2005-11-01 0:01 ` Ram Pai
2005-11-01 7:36 ` Miklos Szeredi
2005-11-01 8:44 ` Rob Landley
[not found] <50rBX-76N-37@gated-at.bofh.it>
[not found] ` <50rBX-76N-35@gated-at.bofh.it>
2005-10-22 17:26 ` Bodo Eggert
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=3e1162e60510041307q3fc900e7tdcf96eb268816eac@mail.gmail.com \
--to=leimy2k@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ftp.linux.org.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®