mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
Cosmetic.
This commit is contained in:
parent
30c414d439
commit
c234a38079
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue