aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/join.c')
-rw-r--r--src/firejail/join.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c
index 251260091..98e140ce4 100644
--- a/src/firejail/join.c
+++ b/src/firejail/join.c
@@ -201,7 +201,9 @@ void join(pid_t pid, int argc, char **argv, int index) {
201 extract_command(argc, argv, index); 201 extract_command(argc, argv, index);
202 202
203 // if the pid is that of a firejail process, use the pid of the first child process 203 // if the pid is that of a firejail process, use the pid of the first child process
204 EUID_ROOT();
204 char *comm = pid_proc_comm(pid); 205 char *comm = pid_proc_comm(pid);
206 EUID_USER();
205 if (comm) { 207 if (comm) {
206 if (strcmp(comm, "firejail") == 0) { 208 if (strcmp(comm, "firejail") == 0) {
207 pid_t child; 209 pid_t child;