From: Michael Tremer Date: Tue, 24 Feb 2026 16:36:28 +0000 (+0000) Subject: legacy-gateway-latency4: Remove any capabilities X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403391ea1f1166f49b46ac936c6404db44ae92e9;p=telemetry.git legacy-gateway-latency4: Remove any capabilities The capabilities should actually come from the binaries. Signed-off-by: Michael Tremer --- diff --git a/src/daemon/sources/legacy-gateway-latency4.c b/src/daemon/sources/legacy-gateway-latency4.c index ce40fdc..0850c8d 100644 --- a/src/daemon/sources/legacy-gateway-latency4.c +++ b/src/daemon/sources/legacy-gateway-latency4.c @@ -36,12 +36,6 @@ #include "../time.h" #include "legacy-gateway-latency4.h" -static const cap_value_t caps[] = { - CAP_NET_ADMIN, - CAP_NET_RAW, - 0, -}; - static int fetch_default_gateway(td_ctx* ctx, td_source* source, char* address, size_t length, unsigned int* type) { struct nl_cache* routes = NULL; @@ -179,7 +173,7 @@ static int do_arping(td_ctx* ctx, td_source* source, const char* address) { NULL, }; - return td_source_run_command(source, caps, argv, legacy_gateway_latency_on_success, source); + return td_source_run_command(source, NULL, argv, legacy_gateway_latency_on_success, source); } static int do_ping(td_ctx* ctx, td_source* source, const char* address) { @@ -201,7 +195,7 @@ static int do_ping(td_ctx* ctx, td_source* source, const char* address) { NULL, }; - return td_source_run_command(source, caps, argv, legacy_gateway_latency_on_success, source); + return td_source_run_command(source, NULL, argv, legacy_gateway_latency_on_success, source); } static int legacy_gateway_latency4_heartbeat(td_ctx* ctx, td_source* source) {