~ruther/guix-config

ref: a426cc94105c56814e06d5fcc495fc511098cb73 guix-config/patches/wireshark.patch -rw-r--r-- 922 bytes
a426cc94 — Rutherther chore: update a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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,10 +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
Do not follow this link