Replies: 5 comments 3 replies
-
I will note that running the container with |
Beta Was this translation helpful? Give feedback.
-
@rhatdan PTAL You do not need |
Beta Was this translation helpful? Give feedback.
-
@Luap99 thanks for getting back with me. This workload uses the https://github.com/hashicorp/nomad-driver-podman and we can't set |
Beta Was this translation helpful? Give feedback.
-
Can you pass --ipc=host? That has the side-effect of disabling SELinux. We could add a boolean to allow all containers to read cert files, if this was a common enough case. |
Beta Was this translation helpful? Give feedback.
-
I don't think I can pass For Traefik specifically it looks like I can set |
Beta Was this translation helpful? Give feedback.
-
Issue Description
I need to add my Root CA into some of my container workloads from the host. I run my own CA and I have trusted it on my server's trust store. When I try to mount
/etc/ssl/certs/ca-certificates.crt
into a container Traefik cannot read the file due to SELinux. Settingsetenforce 1
allows the file to be read.Steps to reproduce the issue
Steps to reproduce the issue
podman run -it -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro,Z --rm fedora bash
cat /etc/ssl/certs/ca-certificates.crt
which results in cat: /etc/ssl/certs/ca-certificates.crt: Permission deniedjournalctl --since today --no-host --no-pager|grep AVC
Describe the results you received
SELinux denial. Woohoo!
Describe the results you expected
I expect to be able tor read this file from inside a container when it is mounted as a volume.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
This is on Fedora CoreOS 37.20230303.3.0
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions