mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
19 lines
289 B
Bash
19 lines
289 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 \
|
|
| sed -e 's#/etc/apparmor.d/##' \
|
|
-e '/abi/d' \
|
|
-e '/abstractions/d' \
|
|
-e '/local/d' \
|
|
| sort
|
|
}
|
|
|
|
_aa-log
|