Skip to content

Commit

Permalink
Add a service which applies custom SELinux fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed Feb 22, 2023
1 parent 97e6cf2 commit 0de5a8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions overlay.d/99okd/usr/lib/okd/selinux-fixes.cil
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow iptables_t container_runtime_tmpfs_t:chr_file { read write };
2 changes: 2 additions & 0 deletions overlay.d/99okd/usr/lib/systemd/system-preset/00-okd.preset
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ enable fix-resolv-conf-coredns.service
disable coreos-check-cgroups.service
# Enable ovirt service
enable qemu-guest-agent.service
# Add custom SELinux rules
enable okd-selinux.service
6 changes: 6 additions & 0 deletions overlay.d/99okd/usr/lib/systemd/system/okd-selinux.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Service]
Type=oneshot
ExecStart=/usr/sbin/semodule -i /usr/lib/okd/selinux-fixes.cil
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

0 comments on commit 0de5a8a

Please sign in to comment.