From 869feb33881ac0ee6f95fb3baa7eeb870c429c64 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 2 Nov 2016 11:58:18 -0400 Subject: 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. --- shell-completion/bash/systemd-analyze | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shell-completion/bash') 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' -- cgit v1.2.3-54-g00ecf