apparmor.d/root/usr/share/zsh/site-functions/_aa-log.zsh

19 lines
295 B
Bash
Raw Normal View History

2021-04-02 11:43:03 +02:00
#compdef aa-log
#autoload
_aa-log () {
local IFS=$'\n'
_values -C 'profile names' ${$(__aa_profiles):-""}
}
__aa_profiles() {
2021-04-29 21:58:03 +02:00
find -L /etc/apparmor.d -type f -printf '%P\n' \
| sed -e '/abi/d' \
2021-04-02 11:43:03 +02:00
-e '/abstractions/d' \
-e '/local/d' \
2021-04-29 21:58:03 +02:00
-e '/tunables/d' \
2021-04-02 11:43:03 +02:00
| sort
}
_aa-log