Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbaK0OS6 (ORCPT ); Thu, 27 Nov 2014 09:18:58 -0500 Received: from mail-vc0-f180.google.com ([209.85.220.180]:64249 "EHLO mail-vc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbaK0OS4 (ORCPT ); Thu, 27 Nov 2014 09:18:56 -0500 MIME-Version: 1.0 In-Reply-To: <1417096866-25563-2-git-send-email-l.pawelczyk@samsung.com> References: <1417096866-25563-1-git-send-email-l.pawelczyk@samsung.com> <1417096866-25563-2-git-send-email-l.pawelczyk@samsung.com> Date: Thu, 27 Nov 2014 15:18:55 +0100 Message-ID: Subject: Re: [RFC] lsm: namespace hooks From: Richard Weinberger To: Lukasz Pawelczyk Cc: Ingo Molnar , Peter Zijlstra , James Morris , "Serge E. Hallyn" , Serge Hallyn , Al Viro , Paul Moore , Kees Cook , Miklos Szeredi , Jeff Kirsher , Nikolay Aleksandrov , Mark Rustad , David Howells , Andrew Morton , Oleg Nesterov , Juri Lelli , Daeseok Youn , David Rientjes , Dario Faggioli , Alex Thorlton , Matthew Dempsky , Davidlohr Bueso , Vladimir Davydov , "Eric W. Biederman" , Casey Schaufler , LKML , "open list:ABI/API" , linux-security-module@vger.kernel.org, Linux Containers , Lukasz Pawelczyk Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 27, 2014 at 3:01 PM, Lukasz Pawelczyk wrote: > extern struct dentry *securityfs_create_file(const char *name, umode_t mode, > diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h > index 34f9d73..5ac7fb9 100644 > --- a/include/uapi/linux/sched.h > +++ b/include/uapi/linux/sched.h > @@ -21,8 +21,7 @@ > #define CLONE_DETACHED 0x00400000 /* Unused, ignored */ > #define CLONE_UNTRACED 0x00800000 /* set if the tracing process can't force CLONE_PTRACE on this clone */ > #define CLONE_CHILD_SETTID 0x01000000 /* set the TID in the child */ > -/* 0x02000000 was previously the unused CLONE_STOPPED (Start in stopped state) > - and is now available for re-use. */ > +#define CLONE_NEWLSM 0x02000000 /* New LSM namespace */ FYI, CLONE_NEWCGROUP also claims last flag [1]. As it looks we will get more and more namespaces, more than clone() can handle. [1] https://lkml.org/lkml/2014/7/17/588 -- Thanks, //richard -- 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/