Skip to content

Commit

Permalink
ansible: Fix podman socket SELinux context on AWS
Browse files Browse the repository at this point in the history
On Fedora CoreOS, SELinux wants the socket path in /run, while on Fedora
40 (on our PSI runners) it wants to go via /var/run. Specify both paths
so that it works everywhere.
  • Loading branch information
martinpitt committed Dec 6, 2024
1 parent 72c8130 commit 5fcc2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/tasks-systemd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
dest: /tmp/cockpituous.fc
mode: 0644
content: |
/var/run/podman/podman.sock system_u:object_r:container_file_t:s0
{,/var}/run/podman/podman.sock system_u:object_r:container_file_t:s0
register: selinux_policy_fc

- name: Create custom SELinux policy type enforcements
Expand Down

0 comments on commit 5fcc2a8

Please sign in to comment.