From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasily Kulikov Subject: Re: [PATCH v2] /proc/pid/status: show all sets of pid according to ns Date: Thu, 29 May 2014 09:59:54 +0400 Message-ID: <20140529055954.GA10354@cachalot> References: <1401272683-1659-1-git-send-email-chenhanxiao@cn.fujitsu.com> <5385DA19.2060008@parallels.com> <20140528182824.GA5057@cachalot> <53863889.9080509@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <53863889.9080509-bzQdu9zFT3WakBO8gow8eQ@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: Pavel Emelyanov Cc: Richard Weinberger , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Serge Hallyn , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Oleg Nesterov , David Howells , "Eric W. Biederman" , Andrew Morton , Al Viro List-Id: containers.vger.kernel.org On Wed, May 28, 2014 at 23:27 +0400, Pavel Emelyanov wrote: > On 05/28/2014 10:28 PM, Vasily Kulikov wrote: > > On Wed, May 28, 2014 at 16:44 +0400, Pavel Emelyanov wrote: > > It will be simplier > > to parse the file -- if 'ns_ids' file contains some ID then this ID for > > every ns can be obtained regardless of the specific ID name (SID, PID, > > PGID, etc.). > > True, but given a task PID how to determine which pid namespaces it lives in > to get the idea of how PIDs map to each other? Maybe we need some explicit > API for converting (ID, NS1, NS2) into (ID)? AFAIU the idea of the patch is to add a new debugging information which can be trivially obtained via 'cat /proc/...': ] We need a direct method of getting the pid inside containers. ] If some issues occurred inside container guest, host user ] could not know which process is in trouble just by guest pid: ] the users of container guest only knew the pid inside containers. ] This will bring obstacle for trouble shooting. A new syscall might complicate trouble shooting by admin. -- Vasily Kulikov http://www.openwall.com - bringing security into open computing environments