lkml.org 
[lkml]   [2005]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] private mounts
    From
    Date
    > > 
    > > Which means proc_root_link, when it switches to the vfsmnt at the root
    > > of the other process, should traverse into the tree of vfsmnts which
    > > make up the other namespace.
    >
    > Yes. But proc_check_root() in proc_pid_follow_link() is failing the
    > traversal, because it is expecting the root vfsmount of the traversed
    > process to belong to the vfsmount tree of the traversing process.
    > In other words its expecting them to be both in the same namespace.
    >
    > The permissions get denied by this code in proc_check_root():
    >

    Removing the check makes chroot enter the tree under the other
    process's namespace. However it does not actually change the
    namespace, hence mount/umount won't work.

    So joinig a namespace does need a new syscall unfortunately.

    Miklos
    -
    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/

    \
     
     \ /
      Last update: 2005-04-29 16:17    [W:0.039 / U:30.316 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site