diff --git a/root/usr/bin/aa-log b/root/usr/bin/aa-log index 4841fcd52..018da7e9e 100755 --- a/root/usr/bin/aa-log +++ b/root/usr/bin/aa-log @@ -8,10 +8,9 @@ readonly LOGFILE=/var/log/audit/audit.log # Parses AppArmor logs to hide unnecessary information and remove duplicates. _apparmor_log() { - local state="$1" profile="${2}" + local state="$1" profile="$2" grep -a "$state" "$LOGFILE" \ | grep "profile=\"$profile.*\"" \ - | grep -v laddr \ | sed -e 's/AVC //' \ -e "s/apparmor=\"$state\"/$state/" \ -e 's/type=msg=audit(.*): //' \