From b34b1992a65e519af0aed5ad43b1d60e6d1f7af5 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 29 Oct 2023 08:08:02 +0100 Subject: op-mode: T5661: remove call to sudo in ssh.py and move it to XML definition Try to have as few calls to sudo in the op-mode scripts as possible. The XML definitions can deal with it. (cherry picked from commit 428dee29d36cc3629990ec41afef887821886834) --- op-mode-definitions/show-ssh.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op-mode-definitions/show-ssh.xml.in') diff --git a/op-mode-definitions/show-ssh.xml.in b/op-mode-definitions/show-ssh.xml.in index 88faecada..ca8e669b3 100644 --- a/op-mode-definitions/show-ssh.xml.in +++ b/op-mode-definitions/show-ssh.xml.in @@ -11,7 +11,7 @@ Show SSH server dynamic-protection blocked attackers - ${vyos_op_scripts_dir}/ssh.py show_dynamic_protection + sudo ${vyos_op_scripts_dir}/ssh.py show_dynamic_protection -- cgit v1.2.3