diff --git a/cmd/aa-log/main.go b/cmd/aa-log/main.go index 32b9ee8da..e37f03b22 100644 --- a/cmd/aa-log/main.go +++ b/cmd/aa-log/main.go @@ -15,7 +15,7 @@ import ( "golang.org/x/exp/slices" ) -const usage = `aa-log [-h] [--systemd] [--file file] [--rules] [profile] +const usage = `aa-log [-h] [--systemd] [--file file] [--rules | --raw] [profile] Review AppArmor generated messages in a colorful way. Supports logs from auditd, systemd, syslog as well as dbus session events. diff --git a/root/usr/share/bash-completion/completions/aa-log b/root/usr/share/bash-completion/completions/aa-log index 24620fab2..ea2a6b9cd 100644 --- a/root/usr/share/bash-completion/completions/aa-log +++ b/root/usr/share/bash-completion/completions/aa-log @@ -3,7 +3,7 @@ _aa-log() { COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" - local args=(-f --file -s --systemd -h --help) + local args=(-f --file -s --systemd -r --rules -R -raw -h --help) local lastarg="${COMP_WORDS[$COMP_CWORD-1]}" COMPREPLY+=($(compgen -W "${args[*]}" -- ${cur})) if [[ $lastarg == "-f" ]]; then diff --git a/root/usr/share/zsh/site-functions/_aa-log.zsh b/root/usr/share/zsh/site-functions/_aa-log.zsh index f9bc5e99a..1256f960d 100644 --- a/root/usr/share/zsh/site-functions/_aa-log.zsh +++ b/root/usr/share/zsh/site-functions/_aa-log.zsh @@ -6,6 +6,8 @@ _aa-log() { _arguments : \ {-f,--file}'[set a logfile or a suffix to the default log file]:FILE:__aa_files' \ {-s,--systemd}'[parse systemd logs from journalctl]' \ + {-r,--rules}'[convert the log into AppArmor rules]' \ + {-R,--raw}'[print the raw log without any formatting]' \ {-h,--help}'[display help information]' _values -C 'profile names' ${$(__aa_profiles):-""}