aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue@debian>2023-06-25 18:06:35 -0400
committerLibravatar netblue30 <netblue@debian>2023-06-25 18:06:35 -0400
commit655e94608316e5c1b729c0bf805fb91c68419712 (patch)
tree7a0a9c247985b2756596295cfe50a0db4bb003d2 /src/fnettrace
parentQUIC (HTTP/3) support in --nettrace (diff)
downloadfirejail-655e94608316e5c1b729c0bf805fb91c68419712.tar.gz
firejail-655e94608316e5c1b729c0bf805fb91c68419712.tar.zst
firejail-655e94608316e5c1b729c0bf805fb91c68419712.zip
fix geoiplookup executable detection for --nettrace
Diffstat (limited to 'src/fnettrace')
-rw-r--r--src/fnettrace/hostnames.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fnettrace/hostnames.c b/src/fnettrace/hostnames.c
index 878a67123..20c83803f 100644
--- a/src/fnettrace/hostnames.c
+++ b/src/fnettrace/hostnames.c
@@ -28,6 +28,10 @@ static char buf[MAXBUF];
28char *retrieve_hostname(uint32_t ip) { 28char *retrieve_hostname(uint32_t ip) {
29 if (geoip_not_found) 29 if (geoip_not_found)
30 return NULL; 30 return NULL;
31 if (access("/usr/bin/geoiplookup", X_OK)) {
32 geoip_not_found = 1;
33 return NULL;
34 }
31 geoip_calls++; 35 geoip_calls++;
32 36
33 char *rv = NULL; 37 char *rv = NULL;