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

Docker build does not support selinux labels #148

@mgraff

Description

@mgraff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions