Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752218Ab3CAIDk (ORCPT ); Fri, 1 Mar 2013 03:03:40 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35613 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884Ab3CAIDj (ORCPT ); Fri, 1 Mar 2013 03:03:39 -0500 MIME-Version: 1.0 Reply-To: mtk.manpages@gmail.com In-Reply-To: <20130228142440.GA6328@cachalot> References: <20130228142440.GA6328@cachalot> From: "Michael Kerrisk (man-pages)" Date: Fri, 1 Mar 2013 09:03:18 +0100 Message-ID: Subject: Re: For review: pid_namespaces(7) man page To: Vasily Kulikov Cc: "Eric W. Biederman" , linux-man , Linux Containers , lkml , Lennart Poettering Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1723 Lines: 42 [CC += Lennart] On Thu, Feb 28, 2013 at 3:24 PM, Vasily Kulikov wrote: > Hi Michael, > > On Thu, Feb 28, 2013 at 12:24 +0100, Michael Kerrisk (man-pages) wrote: >> The namespace init process >> The first process created in a new namespace (i.e., the process >> created using clone(2) with the CLONE_NEWPID flag, or the first >> child created by a process after a call to unshare(2) using the >> CLONE_NEWPID flag) has the PID 1, and is the "init" process for >> the namespace (see init(1)). Children that are orphaned within >> the namespace will be reparented to this process rather than >> init(1). > > Probably it worth noting here that this is true unless > prctl() with PR_SET_CHILD_SUBREAPER option is called. Thanks Vasily. It probably is worth mentioning that, and I will add some words. One thing I am not sure of (have not tested), but maybe you (or Eric) know the answer: does the effect of PR_SET_CHILD_SUBREAPER cross a PID namespace boundary? In other words, if it was a process in the parent PID namespace that employed PR_SET_CHILD_SUBREAPER , will that affect child processes in a child PID namespace, or wiill PR_SET_CHILD_SUBREAPER only apply to child processes in the same PID namespace as the caller? Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/