Re: [PATCH] private mounts

From: Bryan Henderson (hbryan_at_us.ibm.com)
Date: 04/27/05

  • Next message: Jes Sorensen: "Re: returning non-ram via ->nopage, was Re: [patch] mspec driver for 2.6.12-rc2-mm3"
    To: Bodo Eggert <7eggert@gmx.de>
    Date:	Tue, 26 Apr 2005 15:07:58 -0700
    
    

    >> Just to be clear, then: this idea is fundamentally different from the
    >> mkdir/cd analogy the thread starts with above.
    >
    >NACK, it's very similar to the cd "$HOME" (or ulimit calls) done by the
    >login mechanism,

    That's not a NACK. The cd "$HOME" and ulimit calls done by the login
    process (more precisely, by a shell profile) are quite different from the
    mkdir/cd the thread started with. Who creates a new directory in his
    shell profile? I assume the mkdir/cd analogy is a case of a person doing
    a mkdir and cd in a running shell. (That is indeed analogous to what one
    would like to do with a private mount).

    When you said "by the login process or by wrappers like nice," in response
    to my pointing out that setnamespace would need to be a shell builtin
    command, I assumed you were talking about putting it in the code that
    execs the shell as opposed to in the shell profile, thus eliminating the
    need for a shell builtin.

    But the important thing is just to recognize, as you say explicitly now,
    that setnamespace has to be shell builtin command for
    setnamespace/mknamespace to be analogous to mkdir/cd. That was my
    original statement, if somewhat indirect:

    >> >> >mknamespace -p users/$UID # (like mkdir -p)
    >> >> >setnamespace users/$UID # (like cd)
    >> >> ^^^^^^^^
    >> >> You realize that 'cd' is a shell command, and has to be, I hope.
    That
    >> >> little fact has thrown a wrench into many of the ideas in this
    thread.

    --
    Bryan Henderson                          IBM Almaden Research Center
    San Jose CA                              Filesystems
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Jes Sorensen: "Re: returning non-ram via ->nopage, was Re: [patch] mspec driver for 2.6.12-rc2-mm3"

    Relevant Pages

    • RE: SSH Tunneling without console login
      ... > that the command will also login onto PC2. ... > not give a shell prompt, ... I only need SSH ... > tunneling purposes, i login to the remote server ...
      (SSH)
    • Environment Poisoning and login -p
      ... login -p can be used to propagate environment flags ... in order to trojan the user shell of the target account. ... I will note that in -CURRENT, both "nologin" and /bin/sh ...
      (FreeBSD-Security)
    • Re: $PATH and /etc/profile
      ... If you run startx ... >> starting X from a login shell. ... > to detach from the console and allow you to continue working on the ... how to propery setup their shell environment. ...
      (Debian-User)
    • Re: xsession file
      ... The login managersxdm and kdm do not run a login shell, so .profile, ... In that xsession file load *the same shell* as your ...
      (Debian-User)
    • Re: change $PATH system-wide?
      ... Xsession script uses /bin/sh and does not know what shell you will be ... To set PATH at the graphical login you should put it in your ... environment scripts or a bug with the selected window manager. ...
      (Debian-User)