Skip to content
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

Fixes io_uring permission error in Docker. #243

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

cevans87
Copy link

io_uring_enter, io_uring_register, and io_uring_setup were taken out of the Docker default seccomp profile (see
moby/moby@891241e). This caused our tests to fail with permission denied when calling any of those system calls during docker compose build tested.

This commit changes our seccomp profile to unconfined and runs our containers as privileged. Also, since images can only be built with the default profile, we can no longer run our tests during image build time. They are now run as a container command.

`io_uring_enter`, `io_uring_register`, and `io_uring_setup` were taken
out of the Docker default seccomp profile (see
moby/moby@891241e).
This caused our tests to fail with `permission denied` when calling any
of those system calls during `docker compose build tested`.

This commit changes our seccomp profile to unconfined and runs our
containers as privileged. Also, since images can only be built with the
default profile, we can no longer run our tests during image build time.
They are now run as a container command.
@cevans87 cevans87 self-assigned this Jun 28, 2024
@cevans87 cevans87 requested a review from jasone June 28, 2024 22:17
USER hemlock
WORKDIR /home/hemlock/Hemlock/bootstrap
RUN find . -type f -regex '.*\mli?' | xargs -- opam exec -- ocp-indent -i \
CMD find . -type f -regex '.*\mli?' | xargs -- opam exec -- ocp-indent -i \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, s/RUN/CMD/ is the part I couldn't figure out from the docs!

@cevans87 cevans87 merged commit 4a6c784 into BranchTaken:main Jun 28, 2024
1 check passed
@cevans87 cevans87 deleted the fix_io_uring_permission_denied branch June 28, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants