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

23 lines
412 B
Bash
Raw Normal View History

2021-04-02 11:43:03 +02:00
#compdef aa-log
#autoload
_aa-log () {
local IFS=$'\n'
_arguments : \
-f'[set a logfile or a prefix to the default log file]:_files' \
-h'[display help information]'
2021-04-02 11:43:03 +02:00
_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