mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
23 lines
412 B
Bash
23 lines
412 B
Bash
#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]'
|
|
|
|
_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
|