linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Ram <linuxram@us.ibm.com>,
	Al Viro <viro@parcelfarce.linux.theplanet.co.uk>,
	Eric Van Hensbergen <ericvh@gmail.com>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [RFC][2.6 patch] Allow creation of new namespaces during mount system call
Date: Sat, 30 Apr 2005 16:01:11 +0100	[thread overview]
Message-ID: <20050430150111.GB4362@mail.shareable.org> (raw)
In-Reply-To: <20050430085656.GA23513@infradead.org>

Christoph Hellwig wrote:
> > The problem is the current mechanism _forces_ the user to have
> > different environments on the same box - there's no choice.
> > 
> > Which is, as Al says, just like environment variables.
> > 
> > But not like files - if I create a file called $HOME/foo, I expect
> > that I can access it from a different login.  I might want to have
> > different environments, but that's not the _default_ when dealing with
> > files.
> > 
> > The question is whether private user-mounts should, by default, behave
> > more like environment variables or more like files.
> 
> I think you're a little confused.

No, I'm not.

Here's a perhaps more illustrative example.  My bookmarks in
~/.ncftp/bookmarks are not per session, they're per user.  They're not
"global" as in shared by all users in the usual sense.  (Yes, the file
is in a shared namespace, but other users won't be using it when they
type "ncftp".)

The _concept_ "my Ncftp bookmarks" is per-user, and bookmarks created
in one session are immediately usable in another session.

That's what I mean when I say "more like files".

Environment variables are not like that, bookmarks are.

Rephrasing the question: The question is whether private user-mounts
should, by default, behave more like environment variables or more
like bookmarks.

It's a user interface question, not a technical question.  Understand?

I think the user interface is more intuitive when private user-mounts
appear across all sessions shared by the same user.  That doesn't
preclude a non-default option to turn that off.

And here's _why_ I think that's more intuitive: people expect things
which appear in the filesystem to be visible across all sessions.
User-mounts certainly are visible in the filesystem.

> Files are a global ressource and as
> such it makes sense to see them everywhere.

No, files are not seen everywhere, as evidenced by the existence of
namespaces...  They're seen everywhere within a particular namespace.
And that namespace is determined by userspace policy...

> But you're not arguing for making the namespace a global ressource
> (again), but a per-user one, which has no precedence.

As a user interface, it has the precedence of bookmarks, cookies,
options in dotfiles...

I am arguing for making namespaces a global resource, which can be
joined and accessed by userspace however it likes.

Which makes it a policy entirely settable by userspace tools.

(And /proc/NNN/root is _very_ close to providing that.  It seems that
it just works as expected when the permission checks are removed).

The fact that I'd personally use namespaces in a per-user way is a
policy decision.  I use ssh-agent in a per-user way too, but that's my
choice, and other users can use it however they want.

-- Jamie

  reply	other threads:[~2005-04-30 15:01 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
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 [this message]
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=20050430150111.GB4362@mail.shareable.org \
    --to=jamie@shareable.org \
    --cc=ericvh@gmail.com \
    --cc=hch@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).