Skip to content

Commit

Permalink
ci/test-clang.sh: Add 'z' option to '--volume'
Browse files Browse the repository at this point in the history
When SELinux is enabled, such as on Fedora, proper labels are needed,
otherwise the tests cannot start:

[+] Testing clang in 'docker.io/fedora:latest' container
bash: /repo/ci/test-clang-docker.sh: Permission denied

This is supported by both Docker and Podman.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Jun 8, 2022
1 parent e055295 commit 3202595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/test-clang.sh
Expand Up @@ -31,7 +31,7 @@ for docker_image in "${docker_images[@]}"; do
echo "[+] Testing clang in '$docker_image' container"
"$docker" run \
--rm \
--volume "$rootdir":/repo:ro \
--volume "$rootdir":/repo:ro,z \
"$docker_image" \
bash /repo/ci/test-clang-docker.sh
done
Expand Down

0 comments on commit 3202595

Please sign in to comment.