-
Notifications
You must be signed in to change notification settings - Fork 120
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
Containers fail to start when using podman + SElinux #26
Comments
Thanks! What happens if we use a docker-compose file with the Z option, and SElinux is not used? |
To my knowledge, adding Z to mounts makes podman/docker add labels to the files. If SElinux is off, then those labels are ignored and it should not impact anything. I tested the following scenarii (Rocky Linux 8.9) and the containers started well as a normal user.
The only combination that fails is SElinux ON and no option Z to mounts. Steps to reproduce:
|
Note that misp-core also fails to start as it cannot listen on ports 80 and 443 because I'm a normal user, but that's another issue :) |
I see. Feel free to open a PR including the "Z" options for the docker-compose file and a note in the readme mentioning this. A few questions:
|
@ftoppi, would you mind sharing your deployment steps using Podman? It would be good to have this documented, as MISP is focused on security, and Podman is safer than Docker. Thank you in advance. |
See here for a working setup #124 |
Changes: * misp-modules targets py3.11, so use that base, + ninja + wheels groundwork * slightly optimise local builder layer cache size * pin libfaup to specific commit * remove comment * move libfaup_commit to template, get apios from pypi and let it decide validators version
Hello,
containers fail to start as SElinux prevents the process inside the container to change files and the following kind of message is present in audit.log:
The solution is to add the option "z" or "Z" to the mounts:
Source: https://docs.docker.com/compose/compose-file/05-services/#volumes
Patch:
The text was updated successfully, but these errors were encountered: