qemu/tests/docker
Akihiko Odaki aa8246d8b4 tests/docker: Specify --userns keep-id for Podman
Previously we are always specifying -u $(UID) to match the UID in the
container with one outside. This causes a problem with rootless Podman.

Rootless Podman remaps user IDs in the container to ones controllable
for the current user outside. The -u option instructs Podman to use
a specified UID in the container but does not affect the UID remapping.
Therefore, the UID in the container can be remapped to some other UID
outside the container. This can make the access to bind-mounted volumes
fail because the remapped UID mismatches with the owner of the
directories.

Replace -u $(UID) with --userns keep-id, which fixes the UID remapping.
This change is limited to Podman because Docker does not support
--userns keep-id.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20240626-podman-v1-1-f8c8daf2bb0a@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240705084047.857176-6-alex.bennee@linaro.org>
2024-07-05 12:33:41 +01:00
..
dockerfiles tests/lcitool: fix debian-i686-cross toolchain prefix 2024-07-05 12:33:32 +01:00
common.rc tests/: spelling fixes 2023-09-08 13:08:52 +03:00
docker.py tests/docker: avoid invalid escape in Python string 2023-10-17 15:20:53 +02:00
Makefile.include tests/docker: Specify --userns keep-id for Podman 2024-07-05 12:33:41 +01:00
run tests/docker: run script use realpath instead of readlink 2022-10-06 11:53:20 +01:00
test-block docker: test-block: Don't continue if build fails 2017-09-29 11:14:15 +08:00
test-build tests/docker: move DEF_TARGET_LIST setting to common.rc 2019-09-10 14:14:31 +01:00
test-clang tests/docker: remove FEATURES env var from templates 2021-07-14 14:33:53 +01:00
test-debug tests/docker: remove FEATURES env var from templates 2021-07-14 14:33:53 +01:00
test-full docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-fuzz tests/docker: add test-fuzz 2023-07-03 12:51:26 +01:00
test-mingw tests/docker: update test-mingw to run single build 2022-10-31 20:37:58 +00:00
test-misc tests/docker: remove FEATURES env var from templates 2021-07-14 14:33:53 +01:00
test-quick tests/docker: move DEF_TARGET_LIST setting to common.rc 2019-09-10 14:14:31 +01:00
test-static tests/docker: add test script for static linux-user builds 2020-08-21 06:18:35 -04:00
test-tcg tests/docker: add a test-tcg for building then running check-tcg 2021-03-10 12:13:59 +00:00
test-tsan testing: update ubuntu2004 to ubuntu2204 2023-03-01 10:31:46 +00:00
test-unit docker: add test-unit runner 2018-07-24 11:45:25 +01:00