only enforce undumpable if we are not debugging

This commit is contained in:
Nikos Mavrogiannopoulos
2015-01-15 19:18:17 +01:00
parent 6f714d6f2e
commit 24f348226f

View File

@@ -550,7 +550,8 @@ void vpn_server(struct worker_st *ws)
/* do not allow this process to be traced. That
* prevents worker processes tracing each other. */
pr_set_undumpable("worker");
if (ws->config->debug == 0)
pr_set_undumpable("worker");
if (ws->config->isolate != 0) {
ret = disable_system_calls(ws);
if (ret < 0) {