1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh -e DIRNAME=`dirname $0` cd $DIRNAME USAGE="$0 [ --update ]" if [ `id -u` != 0 ]; then echo 'You must be root to run this script' exit 1 fi echo "Building and Loading Policy" set -x make -f /usr/share/selinux/devel/Makefile /usr/sbin/semodule -i myjabberd.pp /sbin/restorecon -F -R -v /usr/bin/router /usr/bin/sm /usr/bin/c2s /usr/bin/s2s