From de6137361ee3bb8a8b398a349a3cdab4f297c116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Steinbei=C3=9F?= Date: Fri, 4 Mar 2022 02:53:38 +0000 Subject: xfce-build: Fix build with SELinux (!58) If you're using SELinux locally you will have to pass the "z" parameter to make the volume mounted in the container readable. --- helpers/xfce-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/xfce-build b/helpers/xfce-build index 7fd49bf..cd26904 100755 --- a/helpers/xfce-build +++ b/helpers/xfce-build @@ -19,7 +19,8 @@ docker_pull () { docker_run () { # Run the build in the docker container - docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}" + # That z parameter for volume is needed when SELinux is enabled + docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) --volume $VOLUME:/tmp:z --env CFLAGS="${CFLAGS}" --env CONTAINER=$CONTAINER --env VERSION=$VERSION $CONTAINER:$VERSION /bin/bash -c "${BUILD_CMD}" } # Parse the commandline arguments -- cgit v1.2.1