forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manifests: add selinux-workaround.yaml for >= F41
Recent changes in the SELinux policy have broken a lot of our code. Revert the affected domains back to permissive mode so we can continue to build and test `releasever >= 41` until fedora-selinux/selinux-policy#2257 merges and the domains are reverted upstream or until the issue is resolved altogether.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Recent changes in the SELinux policy have broken a lot of our code. | ||
# Revert the affected domains back to permissive mode so we can | ||
# continue to build and test `releasever >= 41` until | ||
# https://github.com/fedora-selinux/selinux-policy/pull/2257 merges | ||
# and the domains are reverted upstream or until the issue is resolved | ||
# altogether | ||
postprocess: | ||
- | | ||
#!/usr/bin/env bash | ||
set -xeuo pipefail | ||
cat > /tmp/fcos-workarounds.cil << EOF | ||
; https://bugzilla.redhat.com/show_bug.cgi?id=2300306 | ||
(typeattributeset cil_gen_require bootupd_t) | ||
(typepermissive bootupd_t) | ||
; https://bugzilla.redhat.com/show_bug.cgi?id=2305385 | ||
(typeattributeset cil_gen_require coreos_installer_t) | ||
(typepermissive coreos_installer_t) | ||
EOF | ||
/usr/sbin/semodule -i /tmp/fcos-workarounds.cil | ||
rm /tmp/fcos-workarounds.cil |