From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753981AbYDHIUR (ORCPT ); Tue, 8 Apr 2008 04:20:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751979AbYDHIUD (ORCPT ); Tue, 8 Apr 2008 04:20:03 -0400 Received: from sacred.ru ([62.205.161.221]:35990 "EHLO sacred.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbYDHIUD (ORCPT ); Tue, 8 Apr 2008 04:20:03 -0400 Message-ID: <47FB283C.6050509@openvz.org> Date: Tue, 08 Apr 2008 12:09:32 +0400 From: Pavel Emelyanov User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: Manfred Spraul CC: Linux Kernel Mailing List , "Serge E. Hallyn" , "Eric W. Biederman" , Andrew Morton , Sukadev Bhattiprolu Subject: Re: [PATCH] fix SEM_UNDO with namespaces, take 2 References: <47EFFD1C.5020204@colorfullife.com> <47F08ED6.1090103@openvz.org> <47F10DF7.5010702@colorfullife.com> <47F203EC.7090806@openvz.org> <20080403194418.GA11105@sergelap.austin.ibm.com> <20080404043902.GA14177@sergelap.austin.ibm.com> <47F8E824.6090600@colorfullife.com> <47F8F99D.1070701@colorfullife.com> <47F9CB64.8040009@openvz.org> <47FA53F1.1030509@colorfullife.com> In-Reply-To: <47FA53F1.1030509@colorfullife.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (sacred.ru [62.205.161.221]); Tue, 08 Apr 2008 11:45:58 +0400 (MSD) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + if ((current->nsproxy == NULL && new_nsproxy != NULL) || > + (current->nsproxy != NULL && new_nsproxy == NULL) || > + (current->nsproxy != NULL && new_nsproxy != NULL && current->nsproxy->ipc_ns != new_nsproxy->ipc_ns)) { Is the if (unshare_flags & CLONE_NEWIPC) check not enough? Thanks, Pavel