OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 10/17] Pid-NS(V3) Define CLONE_NEWPID flag
[PATCH 10/17] Pid-NS(V3) Define CLONE_NEWPID flag [message #18965] Sat, 16 June 2007 23:02
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Subject: [PATCH 10/17] Pid-NS(V3) Define CLONE_NEWPID flag

From: Sukadev Bhattiprolu <sukadev@us.ibm.com>


This was discussed on containers and we thought it would be useful
to reserve this flag.

TODO: Merge this with the next patch ?

Define CLONE_NEWPID flag that will be used to clone pid namespaces.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
---
 include/linux/sched.h |    1 +
 1 file changed, 1 insertion(+)

Index: lx26-22-rc4-mm2/include/linux/sched.h
===================================================================
--- lx26-22-rc4-mm2.orig/include/linux/sched.h	2007-06-15 19:47:58.000000000 -0700
+++ lx26-22-rc4-mm2/include/linux/sched.h	2007-06-15 19:48:24.000000000 -0700
@@ -25,6 +25,7 @@
 #define CLONE_STOPPED		0x02000000	/* Start in stopped state */
 #define CLONE_NEWUTS		0x04000000	/* New utsname group? */
 #define CLONE_NEWIPC		0x08000000	/* New ipcs */
+#define CLONE_NEWPID		0x20000000      /* New pid namespace */
 
 /*
  * Scheduling policies

-- 
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [PATCH 09/17] Pid-NS(V3) Use pid ns from pid->upid_list
Next Topic: [PATCH 11/17] Pid-NS(V3) Enable cloning pid namespace
Goto Forum:
  


Current Time: Mon Aug 04 13:27:43 GMT 2025

Total time taken to generate the page: 1.62927 seconds