From fdbcc47dbf8d9dd64f5627d7c214d92d38f980ec Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 18 Jun 2016 13:42:43 -0700 Subject: [PATCH] test_runtime.sh: Add a user namespace You shouldn't need to be root to test a runtime. The id calls use the POSIX command [1] to find the current user's user and group IDs. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/id.html Signed-off-by: W. Trevor King --- test_runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runtime.sh b/test_runtime.sh index 0b14a143e..547ce6f75 100755 --- a/test_runtime.sh +++ b/test_runtime.sh @@ -78,7 +78,7 @@ tar -xf rootfs.tar.gz -C ${TESTDIR} cp runtimetest ${TESTDIR} pushd $TESTDIR > /dev/null -ocitools generate "${TEST_ARGS[@]}" --rootfs '.' +ocitools generate "${TEST_ARGS[@]}" --rootfs '.' --user '' --uidmappings "$(id -u):0:1" --gidmappings "$(id -g):0:1" popd > /dev/null TESTCMD="${RUNTIME} start $(uuidgen)"