Skip to content

Commit

Permalink
overlay: update selinux update script from 05rhcos
Browse files Browse the repository at this point in the history
remove version check from script so that it will run
in fcos
  • Loading branch information
MattPOlson committed Apr 18, 2023
1 parent 1d969f9 commit 7249872
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions overlay.d/99okd/usr/libexec/rhcos-rebuild-selinux-policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# Executed by rhcos-selinux-policy-upgrade.service
set -euo pipefail

ls -al /{usr/,}etc/selinux/targeted/policy/policy.31
if ! cmp --quiet /{usr/,}etc/selinux/targeted/policy/policy.31; then
echo "Recompiling policy due to local modifications as workaround for https://bugzilla.redhat.com/2057497"
semodule -B
fi

0 comments on commit 7249872

Please sign in to comment.