Skip to content

Commit 93fa5eb

Browse files
committed
ci: fix docker mount volumes SE-Linux enabled systems
1 parent 6e8350e commit 93fa5eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ci/run-docker.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ run() {
4747
--env RUST_LIBC_UNSTABLE_GNU_TIME_BITS \
4848
--env CARGO_HOME=/cargo \
4949
--env CARGO_TARGET_DIR=/checkout/target \
50-
--volume "$CARGO_HOME":/cargo \
51-
--volume "$(rustc --print sysroot)":/rust:ro \
52-
--volume "$PWD":/checkout:ro \
50+
--volume "$CARGO_HOME":/cargo:Z \
51+
--volume "$(rustc --print sysroot)":/rust:ro,Z \
52+
--volume "$PWD":/checkout:ro,Z \
5353
--volume "$PWD"/target:/checkout/target \
5454
$kvm \
5555
--init \
@@ -78,9 +78,9 @@ build_switch() {
7878
--env LIBC_CI \
7979
--env CARGO_HOME=/cargo \
8080
--env CARGO_TARGET_DIR=/checkout/target \
81-
--volume "$CARGO_HOME":/cargo \
82-
--volume "$(rustc --print sysroot)":/rust:ro \
83-
--volume "$(pwd)":/checkout:ro \
81+
--volume "$CARGO_HOME":/cargo:Z \
82+
--volume "$(rustc --print sysroot)":/rust:ro,Z \
83+
--volume "$(pwd)":/checkout:ro,Z \
8484
--volume "$(pwd)"/target:/checkout/target \
8585
--volume ~/.rustup:/.rustup:Z \
8686
$kvm \

0 commit comments

Comments
 (0)