From 4922145ec39af1f7209e5e7f443e4b64d478e1db Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 19 Dec 2024 18:08:09 +0100 Subject: [PATCH] klish-plugin-infix: need CAP_NET_ADMIN for some data When reading lag status, like LACP actor system prio, port key, etc., we need CAP_NET_ADMIN. See net/bonding/bond_netlink.c Signed-off-by: Joachim Wiberg --- src/klish-plugin-infix/xml/infix.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/klish-plugin-infix/xml/infix.xml b/src/klish-plugin-infix/xml/infix.xml index fac72b2cc..905b961df 100644 --- a/src/klish-plugin-infix/xml/infix.xml +++ b/src/klish-plugin-infix/xml/infix.xml @@ -375,11 +375,11 @@ if [ -n "$KLISH_PARAM_name" ]; then - sysrepocfg -f json -X -d operational -x \ + doas sysrepocfg -f json -X -d operational -x \ "/ietf-interfaces:interfaces/interface[name=\"$KLISH_PARAM_name\"]" | \ /usr/libexec/statd/cli-pretty "show-interfaces" -n "$KLISH_PARAM_name" |pager else - sysrepocfg -f json -X -d operational -m ietf-interfaces | \ + doas sysrepocfg -f json -X -d operational -m ietf-interfaces | \ /usr/libexec/statd/cli-pretty "show-interfaces" |pager fi