Help Wanted: Podman Rootless Container with custom Entrypoint-Script #10498
Unanswered
Jonas18175
asked this question in
Q&A
Replies: 3 comments 11 replies
-
@wrabcak PTAL This line looks wrong.
I think this should be
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi All, Yes, it should be As @rhatdan mentioned. However, I still would like to see the SELinux denial for etc_t entrypoint. Thanks, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Shut off dontaudit rules
Run your test
You should see that AVC now. |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i like to use steamcmd as dockercontainer rootless for my serveruser. But steamcmd should normally installed with normal user under /opt/steam/steamcmd/steamcmd.sh
I created a custom steamcmd.sh which run a docker/podman container with the steamcmd arks and pass the caller user id to a env.
I replace the default entrypoint-script with a custom one which is /opt/steam/steamcmd/steamcmd.docker.sh (steamuser)
When I run the container as root - all is working, but when I try it with the server user I get a "Error: error stat'ing file
/opt/steam/steamcmd/steamcmd.docker.sh
: Permission denied: OCI permission denied"My selinux is on permissive on host. So I check the logs and it give me following message:
I generated the file and it show me following:
A second selinux message is
I added the modules but nothing changes - so I tried with udica to generate container policies - but it works only for a container which is running - so I used a container running from root.
I added the rule manually to the udica generated module which contains following:
The command to run that container from serveruser is:
What is the reason for that?
Beta Was this translation helpful? Give feedback.
All reactions