From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755274AbcBZWrf (ORCPT ); Fri, 26 Feb 2016 17:47:35 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:53061 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752176AbcBZWrd (ORCPT ); Fri, 26 Feb 2016 17:47:33 -0500 Date: Fri, 26 Feb 2016 22:47:27 +0000 From: Serge Hallyn To: Alban Crequy Cc: LXC development mailing-list , Linux API , Linux Containers , Johannes Weiner , "linux-kernel@vger.kernel.org" , gregkh@linuxfoundation.org, Tejun Heo , cgroups@vger.kernel.org, Andrew Morton Subject: Re: [lxc-devel] CGroup Namespaces (v10) 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Alban Crequy (alban.crequy@gmail.com): > 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.