Skip to content

Commit

Permalink
Add test for relative idmap mount
Browse files Browse the repository at this point in the history
Signed-off-by: Karuboniru <[email protected]>
  • Loading branch information
karuboniru committed Dec 10, 2023
1 parent e7eb97b commit 23f6c48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/system/030-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,11 @@ EOF
run_podman run --uidmap=0:1000:10000 --rm --rootfs "$romount:idmap=uids=0-1001-10000;gids=0-1002-10000" stat -c %u:%g /bin
is "$output" "1:2"

touch $romount/testfile
chown 2000:2000 $romount/testfile
run_podman run --uidmap=0:1000:2 --rm --rootfs "$romount:idmap=uids=@2000-1-1;gids=@2000-1-1" stat -c %u:%g /testfile
is "$output" "1:1"

rm -rf $romount
}

Expand Down

0 comments on commit 23f6c48

Please sign in to comment.