From e3d4b68a7ba7498eb37f8b3739155aabdfa3e63a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 3 Dec 2010 17:19:51 +0000 Subject: [PATCH] Recognize more clone flags * process.c (CLONE_*): Define more flags from linux v2.6.25. (clone_flags): Add entries for them. Proposed by . --- process.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/process.c b/process.c index 7b3eda1d..c4615a24 100644 --- a/process.c +++ b/process.c @@ -557,6 +557,13 @@ struct tcb *tcp; #define CLONE_CHILD_CLEARTID 0x00200000 /* clear the TID in the child */ #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 */ +#define CLONE_STOPPED 0x02000000 /* Start in stopped state */ +#define CLONE_NEWUTS 0x04000000 /* New utsname group? */ +#define CLONE_NEWIPC 0x08000000 /* New ipcs */ +#define CLONE_NEWUSER 0x10000000 /* New user namespace */ +#define CLONE_NEWPID 0x20000000 /* New pid namespace */ +#define CLONE_NEWNET 0x40000000 /* New network namespace */ +#define CLONE_IO 0x80000000 /* Clone io context */ static const struct xlat clone_flags[] = { { CLONE_VM, "CLONE_VM" }, @@ -575,6 +582,13 @@ static const struct xlat clone_flags[] = { { CLONE_CHILD_CLEARTID,"CLONE_CHILD_CLEARTID" }, { CLONE_UNTRACED, "CLONE_UNTRACED" }, { CLONE_CHILD_SETTID,"CLONE_CHILD_SETTID" }, + { CLONE_STOPPED, "CLONE_STOPPED" }, + { CLONE_NEWUTS, "CLONE_NEWUTS" }, + { CLONE_NEWIPC, "CLONE_NEWIPC" }, + { CLONE_NEWUSER, "CLONE_NEWUSER" }, + { CLONE_NEWPID, "CLONE_NEWPID" }, + { CLONE_NEWNET, "CLONE_NEWNET" }, + { CLONE_IO, "CLONE_IO" }, { 0, NULL }, }; -- 2.40.0