[CRIU] [PATCH RFC 0/5] Add support of USERNS

Andrey Vagin avagin at openvz.org
Mon Feb 10 12:58:12 PST 2014


Known issues:
* PR_SET_MM_* requires the global CAP_SYS_RESOURCE capability,
so restore of USERNS will fail even with these patches
* devpts must be mounted with the newinstance option
* A new root must be bind-mounted before calling pivot_root

Andrey Vagin (6):
  namespaces: take into account USERNS id
  userns: define protobuf messages for uid and gid maps
  criu: add constants about user namespaces
  userns: parse /proc/PID/{u,g}id_map
  userns: restore {uid,gid}_maps

 cr-restore.c            |  22 ++++++-
 cr-show.c               |   1 +
 image-desc.c            |   1 +
 include/image-desc.h    |   1 +
 include/magic.h         |   1 +
 include/namespaces.h    |   2 +
 include/protobuf-desc.h |   1 +
 include/restorer.h      |   3 +-
 include/syscall-types.h |   6 +-
 namespaces.c            | 166 ++++++++++++++++++++++++++++++++++++++++++++++++
 protobuf-desc.c         |   1 +
 protobuf/Makefile       |   1 +
 protobuf/core.proto     |   1 +
 protobuf/userns.proto   |  10 +++
 pstree.c                |   2 +
 15 files changed, 215 insertions(+), 4 deletions(-)
 create mode 100644 protobuf/userns.proto

-- 
1.8.5.3



More information about the CRIU mailing list