[Devel] [PATCH CRIU 0/6] Switch user_ns before mount binfmt_misc

Kirill Tkhai ktkhai at virtuozzo.com
Sat Jul 15 16:49:34 MSK 2017


After vzkernel commit 1352424aae37 "ms/fs: Add user namespace member to struct super_block"
we have to switch to CT's user_ns before mounting binfmt_misc.

This series simply does that.

Patches [3/6] and [4/6] are taken from upstream criu-dev.
---

Kirill Tkhai (6):
      mount: Consider EBUSY binfmt_misc mount return as error
      mount: Move binfmt_misc-mounting code to separate function
      clone_noasan: Allow to create CLONE_VM|CLONE_VFORK processes
      util: Implement clone_in_child_process() helper
      ve: Call binfmt_misc-mounting code in call_in_child_process()
      mount: Switch user_ns before mount binfmt_misc


 criu/clone-noasan.c |   16 ++++-----
 criu/include/util.h |    1 +
 criu/mount.c        |   91 ++++++++++++++++++++++++++-------------------------
 criu/util.c         |   30 +++++++++++++++++
 4 files changed, 85 insertions(+), 53 deletions(-)

--
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the Devel mailing list