[lkml]   [2005]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] namespace.c: fix bind mount from foreign namespace
    Ram wrote:
    > Under the premise that bind mounts across namespace should be allowed;
    > any insight why the "founding fathers" :) allowed only bind
    > and not recursive bind? What issue would that create?

    Recursive bind traverses the subtree of vfsmnts rooted at the source
    mount (following mnt->mnt_mounts, see copy_tree()). That requires the
    source mount's namespace semaphore to be held.

    > One can easily workaround that restriction by manually binding
    > recursively.

    Yes, if you know which mounts they are.

    > I remember Miklos saying its not a security issue but a
    > implementation/locking issue. That can be fixed aswell.

    Yes, by taking the source namespace semaphore while traversing the
    subtree. That involves taking _two_ semaphores, so they have to be
    ordered to avoid deadlock (see double-locking elsewhere in the kernel).

    - Jamie
    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-05-17 02:04    [W:0.018 / U:1.060 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site