Re: [PATCH] private mounts

Miklos Szeredi
2005-04-29T14:13:58Z

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