Skip to content

Commit 5fecdfd

Browse files
committed
Fix permission denied error in Docker container on SELinux systems
Labeling systems like SELinux require that proper labels are placed on volume content mounted into a <<container|pod>>. Without a label, the security system might prevent the processes running inside the <<container|pod>> from using the content. By default, Podman does not change the labels set by the OS.[1] 1. https://docs.podman.io/en/v4.4/markdown/options/volume.html#Footnote1
1 parent aa2fc74 commit 5fecdfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ if [[ "${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_RUN_IN_DOCKER:-true}" =~ "true" ]]; the
4747
--log-level "error" \
4848
run \
4949
--rm \
50-
--volume "$artifacts_dir:/junits" \
51-
--volume "$PLUGIN_DIR/ruby:/src" \
50+
--volume "$artifacts_dir:/junits:Z" \
51+
--volume "$PLUGIN_DIR/ruby:/src:Z" \
5252
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_JOB_UUID_FILE_PATTERN:-}" \
5353
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_FORMAT=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_FAILURE_FORMAT:-}" \
5454
--env "BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SLOWEST=${BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SLOWEST:-}" \

0 commit comments

Comments
 (0)