mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Cosmetic.
This commit is contained in:
parent
30c414d439
commit
c234a38079
@ -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(.*): //' \
|
||||
|
Loading…
Reference in New Issue
Block a user