]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
idmapped-mounts: add nested userns creation helpers
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 14 Aug 2021 10:48:03 +0000 (12:48 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 22 Aug 2021 11:51:45 +0000 (19:51 +0800)
commit4cbbb9577af4ce2b2595524f8b6cda5f23d30b26
treedc4fcc2154e20942eaa0a4ef374c7b280ac3ffe3
parentdfbbbe0de60d1bd96dc06e643d4964f640482a51
idmapped-mounts: add nested userns creation helpers

Add a helper to create a nested userns hierarchy. This will be used in
follow-up tests.

Cc: fstests@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/idmapped-mounts/idmapped-mounts.c
src/idmapped-mounts/mount-idmapped.c
src/idmapped-mounts/utils.c
src/idmapped-mounts/utils.h