pidns: deny CLONE_PARENT|CLONE_NEWPID combination
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 23 Sep 2009 22:57:22 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:04 +0000 (07:21 -0700)
commite5a4738699d6eca408dcb225bd350413927701e2
tree1a24e5d7d5eb85affbaf435dbe626ba0a401bb62
parent123be07b0b399670a7cc3d82fef0cb4f93ef885c
pidns: deny CLONE_PARENT|CLONE_NEWPID combination

CLONE_PARENT was used to implement an older threading model.  For
consistency with the CLONE_THREAD check in copy_pid_ns(), disable
CLONE_PARENT with CLONE_NEWPID, at least until the required semantics of
pid namespaces are clear.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Acked-by: Roland McGrath <roland@redhat.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: Oren Laadan <orenl@cs.columbia.edu>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/pid_namespace.c