diff --git a/bin/selinux_bpf.sh b/bin/selinux_bpf.sh new file mode 100755 index 0000000..fcff4a2 --- /dev/null +++ b/bin/selinux_bpf.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +if [ $EUID -ne 0 ]; then + echo "This script must be run as root" + exit 1 +fi + +selinuxenabled +if [ $? -ne 0 ] +then + echo "SELinux is not enabled" + exit 1 +fi + +FLOWMILL_TEMP=$(mktemp -d -t flowmill-XXXXX) + +cat > $FLOWMILL_TEMP/spc_bpf_allow.te <