Skip to content
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

[release-4.12] Add a service which applies custom SELinux fixes #541

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions overlay.d/99okd/usr/lib/okd/selinux-fixes.cil
@@ -0,0 +1,2 @@
; https://github.com/okd-project/okd/issues/1438
(allow iscsid_t self (capability (dac_override)))
2 changes: 2 additions & 0 deletions overlay.d/99okd/usr/lib/systemd/system-preset/00-okd.preset
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
@@ -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