]> git.ipfire.org Git - telemetry.git/commitdiff
legacy-gateway-latency4: Remove any capabilities
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Feb 2026 16:36:28 +0000 (16:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Feb 2026 16:36:28 +0000 (16:36 +0000)
The capabilities should actually come from the binaries.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/sources/legacy-gateway-latency4.c

index ce40fdc754b5a92aa1aeb16dcbee95bc49d911e4..0850c8df6cf1c82609e8551b072d077a03ba24d1 100644 (file)
 #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) {