[lkml]   [2004]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 12/28] VFS: Remove (now bogus) check_mnt
    Hash: SHA1

    Christoph Hellwig wrote:
    > On Mon, Oct 25, 2004 at 10:44:33AM -0400, Mike Waychison wrote:
    >>check_mnt used to be used to see if a mountpoint was actually grafted or not
    >>to a namespace. This was done because we didn't support mountpoints being
    >>attached to one another if they weren't associated with a namespace. We now
    >>support this, so all check_mnt calls are bogus. The only exception is that
    >>pivot_root still requires all participants to exist within the same
    > did you audit the namespace code that it doesn't allow attachign to other
    > namespaces than the current?

    So, I don't see how that is possible, other than through relative
    resolution from a cwd in the other namespace. Arguably, you aren't
    buying any security by denying the mountpoint if you already let other
    processes in your namespace.

    Auditting the original code, it appeared that doing such a thing was a
    no-no only because the locking semantics of current->namespace->sem made
    this difficult.

    - --
    Mike Waychison
    Sun Microsystems, Inc.
    1 (650) 352-5299 voice
    1 (416) 202-8336 voice

    NOTICE: The opinions expressed in this email are held by me,
    and may not represent the views of Sun Microsystems, Inc.
    Version: GnuPG v1.2.5 (GNU/Linux)
    Comment: Using GnuPG with Thunderbird -

    -----END PGP SIGNATURE-----
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:07    [W:0.022 / U:189.524 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site