Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ci/selinux-policy-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
c=$(buildah from fedora:latest)
buildah run $c bash -c 'dnf update -y; dnf install -y libsepol libsemanage checkpolicy policycoreutils python3 pyxml'
buildah run $c bash -c 'dnf install -y git make'
buildah run $c bash -c 'git clone https://github.com/fedora-selinux/selinux-policy'
buildah run $c bash -c 'cd selinux-policy; make'
buildah copy ${coredir}/misc/selinux $c:/
buildah run $c bash -c 'cd /misc/selinux; make -f /usr/share/selinux/devel/Makefile -j1'
5 changes: 5 additions & 0 deletions misc/selinux/label-binaries-unconfined.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# This script is intended to be used by the package scriptlets in case the selinux module fails to install
for binary in /var/cfengine/bin/cf-*; do
semanage -a -t bin_t "$binary"
done
Loading