aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/firejail/network_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/network_main.c b/src/firejail/network_main.c
index 80f3bd579..e6d5cd5d7 100644
--- a/src/firejail/network_main.c
+++ b/src/firejail/network_main.c
@@ -247,7 +247,9 @@ void net_dns_print(pid_t pid) {
247 // drop privileges - will not be able to read /etc/resolv.conf for --noroot option 247 // drop privileges - will not be able to read /etc/resolv.conf for --noroot option
248 248
249 // if the pid is that of a firejail process, use the pid of the first child process 249 // if the pid is that of a firejail process, use the pid of the first child process
250 EUID_ROOT();
250 char *comm = pid_proc_comm(pid); 251 char *comm = pid_proc_comm(pid);
252 EUID_USER();
251 if (comm) { 253 if (comm) {
252 if (strcmp(comm, "firejail") == 0) { 254 if (strcmp(comm, "firejail") == 0) {
253 pid_t child; 255 pid_t child;