support_enter_mount_namespace: Unshare with mount --make-rprivate
commit273a0c4983ecff9fe53258755b155227afe2938f
authorFlorian Weimer <fweimer@redhat.com>
Sat, 18 Nov 2017 13:30:20 +0000 (18 14:30 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sat, 18 Nov 2017 13:30:20 +0000 (18 14:30 +0100)
tree9dd8769cf25b1e29331af8d0830a5549c323e7b6
parent8adfb0eeffd1888f9b53b8d8677eb1656cd20e47
support_enter_mount_namespace: Unshare with mount --make-rprivate

System defaults vary, and a mere unshare (CLONE_NEWNS) (which is part of
support_become_root) is no longer sufficient.

Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
ChangeLog
support/Makefile
support/namespace.h
support/support_enter_mount_namespace.c [new file with mode: 0644]