From cb326bf97c99ff73a0a8689304e3ad47aa59139f Mon Sep 17 00:00:00 2001
From: Rutherther <rutherther@ditigal.xyz>
Date: Sat, 15 Feb 2025 11:39:38 +0100
Subject: [PATCH] Point dumpcap to privileged bin
---
 capture/capture_sync.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/capture/capture_sync.c b/capture/capture_sync.c
index 946dc810db..2cc3d6f705 100644
--- a/capture/capture_sync.c
+++ b/capture/capture_sync.c
@@ -244,7 +244,7 @@ init_pipe_args(int *argc) {
     char **argv;
     /* Find the absolute path of the dumpcap executable. */
-    exename = get_executable_path("dumpcap");
+    exename = "/run/privileged/bin/dumpcap";
     if (exename == NULL) {
         return NULL;
     }
@@ -270,9 +270,6 @@ init_pipe_args(int *argc) {
         }
     }
-    /* sync_pipe_add_arg strdupes exename, so we should free our copy */
-    g_free(exename);
-
     return argv;
 }
--
2.48.1