summaryrefslogtreecommitdiff
blob: e893b98e6773a5daa0f6f2323760751ec7c53e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

[ -f /selinux/enforce ] || exit 1;

if [ "`cat /selinux/enforce | grep "1"`" ]; then
	echo 0 > /selinux/enforce
	echo "permissive"
else
	echo 1 > /selinux/enforce
	echo "enforcing"
fi