aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-01 10:51:04 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-01 10:51:04 -0400
commit5e7fe69ab8d1858208cd9de2b3d365e205ec6543 (patch)
treee7264a75ae75369764cf05263799821c796cf95d
parentdillo profile (diff)
downloadfirejail-5e7fe69ab8d1858208cd9de2b3d365e205ec6543.tar.gz
firejail-5e7fe69ab8d1858208cd9de2b3d365e205ec6543.tar.zst
firejail-5e7fe69ab8d1858208cd9de2b3d365e205ec6543.zip
fix dillo problem
-rw-r--r--src/firejail/sandbox.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index c371f4c75..732ebf27e 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -163,6 +163,16 @@ static int monitor_application(pid_t app_pid) {
163 continue; 163 continue;
164 if (pid == 1) 164 if (pid == 1)
165 continue; 165 continue;
166
167 // todo: make this generic
168 // Dillo browser leaves a dpid process running, we need to shut it down
169 if (strcmp(cfg.command_name, "dillo") == 0) {
170 char *pidname = pid_proc_comm(pid);
171 if (pidname && strcmp(pidname, "dpid") == 0)
172 break;
173 free(pidname);
174 }
175
166 app_pid = pid; 176 app_pid = pid;
167 break; 177 break;
168 } 178 }