From 3dbb1759ebe120d188edc5ca5d2933649bb40211 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 d7cbd840..98a9d98a 100644 --- a/src/klish-plugin-infix/xml/infix.xml +++ b/src/klish-plugin-infix/xml/infix.xml @@ -401,11 +401,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