Cheat Sheets

Security - AppArmor no complain

Description

Checks if there are no AppArmor profiles in complain mode

Check Script: security-apparmor-no-complain.sh

output=$(aa-status 2>/dev/null)
if [ "$output" != "" ]; then
	if ! /bin/echo "$output" | grep -q "0 profiles are in complain mode"; then
		result_warning
	fi
fi
Comment on Disqus