iproute2: Don't propogate mounts out of ip
Some systems are now following the advice in linux/Documentation/sharedsubtrees.txt and running with all mount points shared between all mount namespaces by default. After creating the mount namespace call mount on / with MS_SLAVE|MS_REC to modify all mounts in the new mount namespace to slave mounts if they are shared or private mounts otherwise. Guarnateeing that changes to the mount namespace created with "ip netns exec" don't propgate to other namespaces. Reported-by:Petr Šabata <contyk@redhat.com> Tested-by:
Petr Šabata <contyk@redhat.com> Signed-off-by:
"Eric W. Biederman" <ebiederm@xmission.com>
Showing
Please register or sign in to comment