From: Stéphane Graber Date: Sat, 5 Apr 2025 05:11:18 +0000 (-0400) Subject: start: Re-introduce first SET_DUMPABLE call X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df81457d3da763614602042b8d0f763cae8c91a;p=thirdparty%2Flxc.git start: Re-introduce first SET_DUMPABLE call Without it, we're running into issues with complex hooks like nvidia. Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/start.c b/src/lxc/start.c index f28bceaba..ee4bf4003 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1125,6 +1125,11 @@ static int do_start(void *data) if (!lxc_switch_uid_gid(nsuid, nsgid)) goto out_warn_father; + ret = prctl(PR_SET_DUMPABLE, prctl_arg(1), prctl_arg(0), + prctl_arg(0), prctl_arg(0)); + if (ret < 0) + goto out_warn_father; + /* set{g,u}id() clears deathsignal */ ret = lxc_set_death_signal(SIGKILL, handler->monitor_pid, status_fd); if (ret < 0) {