diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-02 11:58:18 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-03 09:35:35 -0400 |
commit | 869feb33881ac0ee6f95fb3baa7eeb870c429c64 (patch) | |
tree | 0a73dc5eb28e339ebf79ba205c25489b2c59f0d1 /shell-completion | |
parent | 7fa6328cc447a4a834ebc8d68ae6c335f4c9c9d3 (diff) |
analyze: add syscall-filter verb
This should make it easier for users to understand what each filter
means as the list of syscalls is updated in subsequent systemd versions.
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemd-analyze | 6 | ||||
-rw-r--r-- | shell-completion/zsh/_systemd-analyze | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 7a5f46ba1d..92ff13d316 100644 --- a/shell-completion/bash/systemd-analyze +++ b/shell-completion/bash/systemd-analyze @@ -45,6 +45,7 @@ _systemd_analyze() { [DOT]='dot' [LOG_LEVEL]='set-log-level' [VERIFY]='verify' + [SECCOMP_FILTER]='syscall-filter' ) _init_completion || return @@ -100,6 +101,11 @@ _systemd_analyze() { comps='debug info notice warning err crit alert emerg' fi + elif __contains_word "$verb" ${VERBS[SECCOMP_FILTER]}; then + if [[ $cur = -* ]]; then + comps='--help --version' + fi + elif __contains_word "$verb" ${VERBS[VERIFY]}; then if [[ $cur = -* ]]; then comps='--help --version --system --user --man' diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index efafddc686..0e670034c1 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -21,6 +21,7 @@ _systemd_analyze_command(){ 'dot:Dump dependency graph (in dot(1) format)' 'dump:Dump server status' 'set-log-level:Set systemd log threshold' + 'syscall-filter:List syscalls in seccomp filter' 'verify:Check unit files for correctness' ) |