Nested user namespaces support

Submitted by Kirill Tkhai on Jan. 12, 2017, 5:51 p.m.

Details

Reviewer None
Submitted Jan. 12, 2017, 5:51 p.m.
Last Updated Feb. 24, 2017, 4:34 a.m.
Revision 8

Cover Letter

Hi,

this is the 5th version of nested user namespaces support.
In comparation to v4 there were made changes in test userns01
and fixed minor warning, given by checker.

https://travis-ci.org/tkhai/criu/builds/204611759
---

Kirill Tkhai (31):
      zdtm: Add userns00 test
      zdtm: Add userns01 test
      ns: Set nested namespaces hookups
      ns: Set hookups for all namespaces
      ns: Change arguments of dump_user_ns()
      user_ns: Make collect_user_ns() allocate child UsernsEntry mappings
      user_ns: Make host_id() working with any mapping and rename it
      ns: Rename and export userns_id() and INVALID_ID
      ns: Implement target_userns_{u,g}id() and root_userns_{u,g}id()
      ns: Add user and pid ns_id on restore
      user_ns: Name loading UsernsEntry mappings on restore "old format"
      ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id()
      ns: Set pointer to root_user_ns in ns_ids
      ns: Implement dup_userns_entry()
      images: Move uid_gid_extent and userns_entry descriptions
      proto: Add ns_entry description
      ns: Write/read ns entries in new way
      ns: Make prepare_userns() have ns map parameter
      ns: Make write_id_map() use CR_PROC_FD_OFF
      proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later
      utils: Move getting real pid functionality to separate function
      ns: Generate user_ns tree
      user_ns: Set user_ns before net_ns creation
      utils: Introduce open_fd_of_real_pid()
      ns: Implement set_user_ns()
      ns: Set target user_ns after net_ns is set
      shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i]
      rst: Pass pstree_item argument to alloc_groups_copy_creds()
      ns: Dump creds xids in root_user_ns
      ns: Convert task cred's xids to target user ns
      ns: Allow nested user namespaces


 criu/cgroup.c                   |    2 
 criu/cr-dump.c                  |    6 
 criu/cr-restore.c               |   82 +++-
 criu/files.c                    |    1 
 criu/image-desc.c               |    1 
 criu/include/cgroup.h           |    2 
 criu/include/image-desc.h       |    1 
 criu/include/magic.h            |    1 
 criu/include/namespaces.h       |   37 ++
 criu/include/parasite-syscall.h |    4 
 criu/include/protobuf-desc.h    |    1 
 criu/include/pstree.h           |    1 
 criu/include/util.h             |    3 
 criu/namespaces.c               |  787 ++++++++++++++++++++++++++++++++++++---
 criu/net.c                      |   43 ++
 criu/parasite-syscall.c         |   42 +-
 criu/pie/restorer.c             |   41 +-
 criu/protobuf-desc.c            |    2 
 criu/pstree.c                   |   14 +
 criu/shmem.c                    |    4 
 criu/util.c                     |   48 ++
 images/Makefile                 |    1 
 images/ns.proto                 |   19 +
 images/userns.proto             |   12 -
 lib/py/images/images.py         |    1 
 test/zdtm/static/Makefile       |    2 
 test/zdtm/static/userns00.c     |  296 +++++++++++++++
 test/zdtm/static/userns00.desc  |    1 
 test/zdtm/static/userns01.c     |  150 +++++++
 test/zdtm/static/userns01.desc  |    1 
 30 files changed, 1463 insertions(+), 143 deletions(-)
 delete mode 100644 images/userns.proto
 create mode 100644 test/zdtm/static/userns00.c
 create mode 100644 test/zdtm/static/userns00.desc
 create mode 100644 test/zdtm/static/userns01.c
 create mode 100644 test/zdtm/static/userns01.desc

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

Revisions

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v2,01/36] files: Fix not populated helper ids Kirill Tkhai New
[v2,02/36] files: Do not lost original errno value Kirill Tkhai New
[v2,03/36] zdtm: Add userns00 test Kirill Tkhai New
[v2,04/36] zdtm: Add userns01 test Kirill Tkhai New
[v2,05/36] core: Introduce last_pid_mutex and use it to synchronize ns_last_pid assignment Kirill Tkhai New
[v2,06/36] restore: Implement set_next_pid() helper Kirill Tkhai New
[v2,07/36] ns: Set nested namespaces hookups Kirill Tkhai New
[v2,08/36] ns: Set hookups for all namespaces Kirill Tkhai New
[v2,09/36] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v2,10/36] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v2,11/36] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v2,12/36] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v2,13/36] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v2,14/36] ns: Add user, net and pid ns_id on restore Kirill Tkhai New
[v2,15/36] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v2,16/36] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v2,17/36] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v2,18/36] ns: Implement dup_userns_entry() Kirill Tkhai New
[v2,19/36] images: Move uid_gid_extent and userns_entry desctiptions Kirill Tkhai New
[v2,20/36] proto: Add ns_hookup_entry description Kirill Tkhai New
[v2,21/36] ns: Write/read ns entries in new way Kirill Tkhai New
[v2,22/36] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v2,23/36] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v2,24/36] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v2,25/36] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v2,26/36] ns: Add ns_owner Kirill Tkhai New
[v2,27/36] ns: Generate user_ns tree Kirill Tkhai New
[v2,28/36] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v2,29/36] ns: Implement set_user_ns() Kirill Tkhai New
[v2,30/36] ns: Set target user_ns after create_children_and_session() Kirill Tkhai New
[v2,31/36] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v2,32/36] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v2,33/36] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v2,34/36] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v2,35/36] proc: Implement find_vma_size() Kirill Tkhai New
[v2,36/36] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v2,01/36] files: Fix not populated helper ids Kirill Tkhai New
[v2,02/36] files: Do not lost original errno value Kirill Tkhai New
[v2,03/36] zdtm: Add userns00 test Kirill Tkhai New
[v2,04/36] zdtm: Add userns01 test Kirill Tkhai New
[v2,05/36] core: Introduce last_pid_mutex and use it to synchronize ns_last_pid assignment Kirill Tkhai New
[v2,06/36] restore: Implement set_next_pid() helper Kirill Tkhai New
[v2,07/36] ns: Set nested namespaces hookups Kirill Tkhai New
[v2,08/36] ns: Set hookups for all namespaces Kirill Tkhai New
[v2,09/36] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v2,10/36] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v2,11/36] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v2,12/36] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v2,13/36] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v2,14/36] ns: Add user, net and pid ns_id on restore Kirill Tkhai New
[v2,15/36] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v2,16/36] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v2,17/36] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v2,18/36] ns: Implement dup_userns_entry() Kirill Tkhai New
[v2,19/36] images: Move uid_gid_extent and userns_entry desctiptions Kirill Tkhai New
[v2,20/36] proto: Add ns_hookup_entry description Kirill Tkhai New
[v2,21/36] ns: Write/read ns entries in new way Kirill Tkhai New
[v2,22/36] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v2,23/36] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v2,24/36] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v2,25/36] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v2,26/36] ns: Add ns_owner Kirill Tkhai New
[v2,27/36] ns: Generate user_ns tree Kirill Tkhai New
[v2,28/36] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v2,29/36] ns: Implement set_user_ns() Kirill Tkhai New
[v2,30/36] ns: Set target user_ns after create_children_and_session() Kirill Tkhai New
[v2,31/36] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v2,32/36] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v2,33/36] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v2,34/36] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v2,35/36] proc: Implement find_vma_size() Kirill Tkhai New
[v2,36/36] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v3,01/33] zdtm: Add userns00 test Kirill Tkhai New
[v3,02/33] zdtm: Add userns01 test Kirill Tkhai New
[v3,03/33] core: Introduce last_pid_mutex and use it to synchronize ns_last_pid assignment Kirill Tkhai New
[v3,04/33] restore: Implement set_next_pid() helper Kirill Tkhai New
[v3,05/33] ns: Set nested namespaces hookups Kirill Tkhai New
[v3,06/33] ns: Set hookups for all namespaces Kirill Tkhai New
[v3,07/33] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v3,08/33] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v3,09/33] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v3,10/33] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v3,11/33] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v3,12/33] ns: Add user and pid ns_id on restore Kirill Tkhai New
[v3,13/33] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v3,14/33] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v3,15/33] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v3,16/33] ns: Implement dup_userns_entry() Kirill Tkhai New
[v3,17/33] images: Move uid_gid_extent and userns_entry descriptions Kirill Tkhai New
[v3,18/33] proto: Add ns_hookup_entry description Kirill Tkhai New
[v3,19/33] ns: Write/read ns entries in new way Kirill Tkhai New
[v3,20/33] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v3,21/33] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v3,22/33] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v3,23/33] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v3,24/33] ns: Generate user_ns tree Kirill Tkhai New
[v3,25/33] user_ns: Set user_ns before net_ns creation Kirill Tkhai New
[v3,26/33] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v3,27/33] ns: Implement set_user_ns() Kirill Tkhai New
[v3,28/33] ns: Set target user_ns after net_ns is set Kirill Tkhai New
[v3,29/33] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v3,30/33] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v3,31/33] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v3,32/33] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v3,33/33] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v3,01/33] zdtm: Add userns00 test Kirill Tkhai New
[v3,02/33] zdtm: Add userns01 test Andrey Vagin New
[v3,03/33] core: Introduce last_pid_mutex and use it to synchronize ns_last_pid assignment Kirill Tkhai New
[v3,04/33] restore: Implement set_next_pid() helper Kirill Tkhai New
[v3,05/33] ns: Set nested namespaces hookups Kirill Tkhai New
[v3,06/33] ns: Set hookups for all namespaces Kirill Tkhai New
[v3,07/33] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v3,08/33] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v3,09/33] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v3,10/33] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v3,11/33] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v3,12/33] ns: Add user and pid ns_id on restore Kirill Tkhai New
[v3,13/33] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v3,14/33] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v3,15/33] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v3,16/33] ns: Implement dup_userns_entry() Kirill Tkhai New
[v3,17/33] images: Move uid_gid_extent and userns_entry descriptions Kirill Tkhai New
[v3,18/33] proto: Add ns_hookup_entry description Kirill Tkhai New
[v3,19/33] ns: Write/read ns entries in new way Kirill Tkhai New
[v3,20/33] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v3,21/33] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v3,22/33] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v3,23/33] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v3,24/33] ns: Generate user_ns tree Kirill Tkhai New
[v3,25/33] user_ns: Set user_ns before net_ns creation Kirill Tkhai New
[v3,26/33] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v3,27/33] ns: Implement set_user_ns() Kirill Tkhai New
[v3,28/33] ns: Set target user_ns after net_ns is set Kirill Tkhai New
[v3,29/33] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v3,30/33] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v3,31/33] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v3,32/33] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v3,33/33] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v3,01/33] zdtm: Add userns00 test Kirill Tkhai New
[v3,02/33] zdtm: Add userns01 test Kirill Tkhai New
[v3,03/33] core: Introduce last_pid_mutex and use it to synchronize ns_last_pid assignment Kirill Tkhai New
[v3,04/33] restore: Implement set_next_pid() helper Kirill Tkhai New
[v3,05/33] ns: Set nested namespaces hookups Kirill Tkhai New
[v3,06/33] ns: Set hookups for all namespaces Kirill Tkhai New
[v3,07/33] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v3,08/33] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v3,09/33] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v3,10/33] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v3,11/33] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v3,12/33] ns: Add user and pid ns_id on restore Kirill Tkhai New
[v3,13/33] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v3,14/33] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v3,15/33] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v3,16/33] ns: Implement dup_userns_entry() Kirill Tkhai New
[v3,17/33] images: Move uid_gid_extent and userns_entry descriptions Kirill Tkhai New
[v3,18/33] proto: Add ns_hookup_entry description Kirill Tkhai New
[v3,19/33] ns: Write/read ns entries in new way Kirill Tkhai New
[v3,20/33] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v3,21/33] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v3,22/33] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v3,23/33] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v3,24/33] ns: Generate user_ns tree Kirill Tkhai New
[v3,25/33] user_ns: Set user_ns before net_ns creation Kirill Tkhai New
[v3,26/33] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v3,27/33] ns: Implement set_user_ns() Kirill Tkhai New
[v3,28/33] ns: Set target user_ns after net_ns is set Kirill Tkhai New
[v3,29/33] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v3,30/33] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v3,31/33] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v3,32/33] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v3,33/33] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v4,01/31] zdtm: Add userns00 test Kirill Tkhai New
[v4,02/31] zdtm: Add userns01 test Kirill Tkhai New
[v4,03/31] ns: Set nested namespaces hookups Kirill Tkhai New
[v4,04/31] ns: Set hookups for all namespaces Kirill Tkhai New
[v4,05/31] ns: Change arguments of dump_user_ns() Kirill Tkhai New
[v4,06/31] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai New
[v4,07/31] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai New
[v4,08/31] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai New
[v4,09/31] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai New
[v4,10/31] ns: Add user and pid ns_id on restore Kirill Tkhai New
[v4,11/31] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai New
[v4,12/31] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai New
[v4,13/31] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai New
[v4,14/31] ns: Implement dup_userns_entry() Kirill Tkhai New
[v4,15/31] images: Move uid_gid_extent and userns_entry descriptions Kirill Tkhai New
[v4,16/31] proto: Add ns_entry description Kirill Tkhai New
[v4,17/31] ns: Write/read ns entries in new way Kirill Tkhai New
[v4,18/31] ns: Make prepare_userns() have ns map parameter Kirill Tkhai New
[v4,19/31] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai New
[v4,20/31] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai New
[v4,21/31] utils: Move getting real pid functionality to separate function Kirill Tkhai New
[v4,22/31] ns: Generate user_ns tree Kirill Tkhai New
[v4,23/31] user_ns: Set user_ns before net_ns creation Kirill Tkhai New
[v4,24/31] utils: Introduce open_fd_of_real_pid() Kirill Tkhai New
[v4,25/31] ns: Implement set_user_ns() Kirill Tkhai New
[v4,26/31] ns: Set target user_ns after net_ns is set Kirill Tkhai New
[v4,27/31] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai New
[v4,28/31] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai New
[v4,29/31] ns: Dump creds xids in root_user_ns Kirill Tkhai New
[v4,30/31] ns: Convert task cred's xids to target user ns Kirill Tkhai New
[v4,31/31] ns: Allow nested user namespaces Kirill Tkhai New

Tests

SERIES REVISION LOOKS STRANGE. Please double-check patch list and the ordering before proceeding.

Patches download mbox

# Name Submitter State
[v5,01/31] zdtm: Add userns00 test Kirill Tkhai Accepted
[v5,02/31] zdtm: Add userns01 test Kirill Tkhai Accepted
[v5,03/31] ns: Set nested namespaces hookups Kirill Tkhai Accepted
[v5,04/31] ns: Set hookups for all namespaces Kirill Tkhai Accepted
[v5,05/31] ns: Change arguments of dump_user_ns() Kirill Tkhai Accepted
[v5,06/31] user_ns: Make collect_user_ns() allocate child UsernsEntry mappings Kirill Tkhai Accepted
[v5,07/31] user_ns: Make host_id() working with any mapping and rename it Kirill Tkhai Accepted
[v5,08/31] ns: Rename and export userns_id() and INVALID_ID Kirill Tkhai Accepted
[v5,09/31] ns: Implement target_userns_{u, g}id() and root_userns_{u, g}id() Kirill Tkhai Accepted
[v5,10/31] ns: Add user and pid ns_id on restore Kirill Tkhai Accepted
[v5,11/31] user_ns: Name loading UsernsEntry mappings on restore "old format" Kirill Tkhai Accepted
[v5,12/31] ns: Provide the case when root_item has !NS_ROOT user_ns in rst_add_ns_id() Kirill Tkhai Accepted
[v5,13/31] ns: Set pointer to root_user_ns in ns_ids Kirill Tkhai Accepted
[v5,14/31] ns: Implement dup_userns_entry() Kirill Tkhai Accepted
[v5,15/31] images: Move uid_gid_extent and userns_entry descriptions Kirill Tkhai Accepted
[v5,16/31] proto: Add ns_entry description Kirill Tkhai Accepted
[v5,17/31] ns: Write/read ns entries in new way Kirill Tkhai Accepted
[v5,18/31] ns: Make prepare_userns() have ns map parameter Kirill Tkhai Accepted
[v5,19/31] ns: Make write_id_map() use CR_PROC_FD_OFF Kirill Tkhai Accepted
[v5,20/31] proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later Kirill Tkhai Accepted
[v5,21/31] utils: Move getting real pid functionality to separate function Kirill Tkhai Accepted
[v5,22/31] ns: Generate user_ns tree Kirill Tkhai Accepted
[v5,23/31] user_ns: Set user_ns before net_ns creation Kirill Tkhai Accepted
[v5,24/31] utils: Introduce open_fd_of_real_pid() Kirill Tkhai Accepted
[v5,25/31] ns: Implement set_user_ns() Kirill Tkhai Accepted
[v5,26/31] ns: Set target user_ns after net_ns is set Kirill Tkhai Accepted
[v5,27/31] shmem: Fixup shmem_wait_and_open() opens foreign /proc/[pid]/fd/[i] Kirill Tkhai Accepted
[v5,28/31] rst: Pass pstree_item argument to alloc_groups_copy_creds() Kirill Tkhai Accepted
[v5,29/31] ns: Dump creds xids in root_user_ns Kirill Tkhai Accepted
[v5,30/31] ns: Convert task cred's xids to target user ns Kirill Tkhai Accepted
[v5,31/31] ns: Allow nested user namespaces Kirill Tkhai Accepted

Tests