Merge pull request #2237 from brauner/2018-03-26/always_make_dumpable

start: always make us dumpable
This commit is contained in:
Stéphane Graber 2018-03-26 18:11:31 -04:00 committed by GitHub
commit f4ffd9f873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1105,11 +1105,9 @@ static int do_start(void *data)
if (ret < 0 && (handler->am_root || errno != EPERM)) if (ret < 0 && (handler->am_root || errno != EPERM))
goto out_warn_father; goto out_warn_father;
if (!handler->am_root) { ret = prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
ret = prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); if (ret < 0)
if (ret < 0) goto out_warn_father;
goto out_warn_father;
}
/* set{g,u}id() clears deathsignal */ /* set{g,u}id() clears deathsignal */
ret = lxc_set_death_signal(SIGKILL); ret = lxc_set_death_signal(SIGKILL);