-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building OPA with SELinux enforced #6054
Labels
Comments
Make needs to write to the filesystem to build OPA. So sounds like if that flag enables it to work on SELinux-enabled systems, and doesn't cause issues with the others, it would be a good contribution. Thanks! |
zregvart
added a commit
to zregvart/opa
that referenced
this issue
Jun 28, 2023
When SELinux is enforced the mounted volumes to spun Docker containers are not writable unless the `:z` or `:Z` flag is set[1]. This opts not to share the mounts by using `:Z`. [1] https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label Fixes open-policy-agent#6054 Signed-off-by: Zoran Regvart <zoran@regvart.com>
johanfylling
added a commit
that referenced
this issue
Jun 29, 2023
When SELinux is enforced the mounted volumes to spun Docker containers are not writable unless the `:z` or `:Z` flag is set[1]. This opts not to share the mounts by using `:Z`. [1] https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label Fixes #6054 Signed-off-by: Zoran Regvart <zoran@regvart.com> Co-authored-by: Johan Fylling <johan.dev@fylling.se>
zregvart
added a commit
to zregvart/opa
that referenced
this issue
Jun 29, 2023
Ref open-policy-agent#6054 Signed-off-by: Zoran Regvart <zoran@regvart.com>
zregvart
added a commit
to zregvart/opa
that referenced
this issue
Jun 29, 2023
Ref open-policy-agent#6054 Signed-off-by: Zoran Regvart <zoran@regvart.com>
zregvart
added a commit
to zregvart/opa
that referenced
this issue
Jun 29, 2023
Ref open-policy-agent#6054 Signed-off-by: Zoran Regvart <zoran@regvart.com>
johanfylling
added a commit
that referenced
this issue
Jun 29, 2023
Ref #6054 Signed-off-by: Zoran Regvart <zoran@regvart.com> Co-authored-by: Johan Fylling <johan.dev@fylling.se>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description
Building OPA with SELinux enforced by running
make
fails when performing steps within a Docker container as it can't write back to the host file system. Adding:Z
option to the volume mounts helps with this.I'm happy to provide a pull request adding the
:Z
flag to the volume mounts.Example:
Steps To Reproduce
sudo setenforce 1
)make
Expected behavior
Build progresses regardless of SELinux being enforced.
The text was updated successfully, but these errors were encountered: