mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
19 lines
295 B
Bash
19 lines
295 B
Bash
#compdef aa-log
|
|
#autoload
|
|
|
|
_aa-log () {
|
|
local IFS=$'\n'
|
|
_values -C 'profile names' ${$(__aa_profiles):-""}
|
|
}
|
|
|
|
__aa_profiles() {
|
|
find -L /etc/apparmor.d -type f -printf '%P\n' \
|
|
| sed -e '/abi/d' \
|
|
-e '/abstractions/d' \
|
|
-e '/local/d' \
|
|
-e '/tunables/d' \
|
|
| sort
|
|
}
|
|
|
|
_aa-log
|