Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755887AbcCQA6V (ORCPT ); Wed, 16 Mar 2016 20:58:21 -0400 Received: from mgwkm04.jp.fujitsu.com ([202.219.69.171]:13135 "EHLO mgwkm04.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752097AbcCQA6U (ORCPT ); Wed, 16 Mar 2016 20:58:20 -0400 X-SecurityPolicyCheck: OK by SHieldMailChecker v2.3.2 X-SHieldMailCheckerPolicyVersion: FJ-ISEC-20150223 X-SHieldMailCheckerMailID: 729ec9229e3a459eaec92a7a988c124e Subject: Re: [PATCH 0/2] Make core_pattern support namespace To: Zhao Lei , linux-kernel@vger.kernel.org, Mateusz Guzik References: Cc: containers@lists.linux-foundation.org From: Kamezawa Hiroyuki Message-ID: <56EA00FC.3030800@jp.fujitsu.com> Date: Thu, 17 Mar 2016 09:57:32 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 930 Lines: 28 On 2016/03/16 18:23, Zhao Lei wrote: > We discussed patch titled: > [PATCH] Make core_pattern support namespace > before. > > Above patch can solve half problem of custom core_dump pattern > in container, but there are also another problem that limit > custom core_pattern in container, it is the pipe-type core_pattern > will write core dump into host's filesystem. > (See discussion of that patch for detail) > > Now we can solve the second problem by [PATCH 1/2], I send > the origional patch with it. > Let me know your design... This patch does using fork+execve() rather than calling UMH in pipe-coredump pass. And coredump-pipe process is run as a child of get-dumped process. Right ? Doesn't this break existing solution actually used in distro ? BTW, it's first time for me to see that _do_fork() is called outside from fork.c. Isn't it better to add a new func in fork.c if we really need this ? Thanks, -Kame