Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Docker build does not support selinux labels #148

Open
mgraff opened this issue Mar 29, 2023 · 1 comment
Open

Docker build does not support selinux labels #148

mgraff opened this issue Mar 29, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mgraff
Copy link

mgraff commented Mar 29, 2023

If selinux labels are present on the host filesystem, the ./build package-docker command fails with this error:

/bin/sh: 0: Can't open /src/qt/configure

It's a permission denied error because of the selinux labels.

Solution: the :Z modifier has to be added on bind mounts in the build script.

For example, replace:

docker run --rm -v%s:/src -v%s:/tgt -v%s:/pkg

by

docker run --rm -v%s:/src:Z -v%s:/tgt:Z -v%s:/pkg:Z
@ashkulz
Copy link
Member

ashkulz commented Mar 29, 2023

@mgraff, thanks for reporting this! I found this documentation about it but I'm not sure what happens if you've not configured selinux?

@ashkulz ashkulz added the help wanted Extra attention is needed label Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Development

No branches or pull requests

2 participants