Cosmetic.

This commit is contained in:
Alexandre Pujol 2021-07-08 12:52:12 +01:00
parent 30c414d439
commit c234a38079
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -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(.*): //' \