From c234a38079c1334ea039a5540fef491d1aa39c65 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 8 Jul 2021 12:52:12 +0100 Subject: [PATCH] Cosmetic. --- root/usr/bin/aa-log | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(.*): //' \