From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: Re: [RFC][PATCH 1/2] Deny CLONE_PARENT|CLONE_NEWPID combination Date: Thu, 18 Jun 2009 15:28:31 -0700 Message-ID: <20090618222831.GA14063@us.ibm.com> References: <20090618024743.GA31515@us.ibm.com> <20090618024934.GA31672@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: 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: Containers , "David C. Hansen" , Oleg Nesterov , Alexey Dobriyan , roland-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Pavel Emelyanov List-Id: containers.vger.kernel.org Eric W. Biederman [ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org] wrote: | Sukadev Bhattiprolu writes: | | > Deny CLONE_PARENT|CLONE_NEWPID combination. | > | > CLONE_PARENT was probably used to implement an older threading model. | | Yes it was. | | > If so, for consistency with CLONE_THREAD, the CLONE_PARENT|CLONE_NEWPID | > combination should also fail with -EINVAL. | | CLONE_THREAD can not work with CLONE_NEWPID because the processes share | a signal queue. | | I can see a similar argument going for CLONE_SIGHAND even though there is not | as much sharing there. I don't see how CLONE_PARENT could cause any harm. | Without CLONE_SIGHAND. It does not cause any harm. Only reason to disable CLONE_PARENT, at least for now, is the confusing semantics (from users pov) and the process-tree model and the usefulness (if CLONE_PARENT is only used in old threading model, the needs of such an application acting as container-init is not clear). Should we disable CLONE_SIGHAND in addition to CLONE_PARENT or just CLONE_SIGHAND ?