start: always make us dumpable

Otherwise lxc.hook.mount hooks that try to inspect /proc/<pid>/* will fail. Cc: Jonathan Calmels <jcalmels@nvidia.com> Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 065d5d0d
......@@ -1105,11 +1105,9 @@ static int do_start(void *data)
if (ret < 0 && (handler->am_root || errno != EPERM))
goto out_warn_father;
if (!handler->am_root) {
ret = prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
if (ret < 0)
goto out_warn_father;
}
ret = prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
if (ret < 0)
goto out_warn_father;
/* set{g,u}id() clears deathsignal */
ret = lxc_set_death_signal(SIGKILL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment