From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serge Hallyn Subject: Re: [lxc-devel] CGroup Namespaces (v10) Date: Fri, 26 Feb 2016 22:47:27 +0000 Message-ID: <20160226224727.GB24680@ubuntumail> References: <1454057651-23959-1-git-send-email-serge.hallyn@ubuntu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alban Crequy Cc: LXC development mailing-list , Linux API , Linux Containers , Johannes Weiner , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, Tejun Heo , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton List-Id: linux-api@vger.kernel.org Quoting Alban Crequy (alban.crequy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org): > Hi, > > On 29 January 2016 at 09:54, wrote: > > Hi, > > > > following is a revised set of the CGroup Namespace patchset which Aditya > > Kali has previously sent. The code can also be found in the cgroupns.v10 > > branch of > > > > https://git.kernel.org/cgit/linux/kernel/git/sergeh/linux-security.git/ > > > > To summarize the semantics: > > > > 1. CLONE_NEWCGROUP re-uses 0x02000000, which was previously CLONE_STOPPED > > What's the best way for a userspace application to test at run-time > whether the kernel supports cgroup namespaces? Would you recommend to > test if the file /proc/self/ns/cgroup exists? Yup.