From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dongsheng Yang Subject: Re: piping core dump to a program escapes container Date: Wed, 9 Dec 2015 13:53:00 +0800 Message-ID: <5667C1BC.7070204@cn.fujitsu.com> References: <56679161.303@cn.fujitsu.com> <56679399.6080306@cn.fujitsu.com> <876108fgfq.fsf@x220.int.ebiederm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <876108fgfq.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shayan Pooya , Richard Weinberger List-Id: containers.vger.kernel.org On 12/09/2015 11:29 AM, Eric W. Biederman wrote: > Dongsheng Yang writes: > [...] > There has not yet been an obvious namespace in which to stick > core_pattern, and even worse exactly how to appropriate launch a process > in a container has not been figured out. > > If those tricky problems can be solved we can have a core_pattern in a > container. What we have now is the best we have been able to figure out > so far. Thanx Eric, but if I want to make docker works rely on this behaviour, is that reliable? I mean, I want to make a docker container to dump the core file to a specified path in host by a pipe way. But I am afraid this behaviour would be changed later. Any suggestion? Yang > > Eric > > >> >> Yang >>> >>> Yang >>>> >>>> Currently, I work around this issue by detecting that the process is >>>> crashing from a container (by comparing the namespace pid to the >>>> global pid) and refuse to dump the core if it is from a container. >>>> >>>> Tested on Ubuntu (kernel 3.16) and Fedora (kernel 4.1). >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe cgroups" in >>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>>> >>> >>> >>> >>> -- >>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> Please read the FAQ at http://www.tux.org/lkml/ >>> . >>> > > > . >