Skip to content

Commit

Permalink
test_runtime.sh: Add a user namespace
Browse files Browse the repository at this point in the history
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 <wking@tremily.us>
  • Loading branch information
wking committed Jun 21, 2016
1 parent bd9c696 commit fdbcc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit fdbcc47

Please sign in to comment.