Add CLONE_NEWCGROUP from Linux 4.6 to bits/sched.h

Message ID alpine.DEB.2.20.1605181605580.29978@digraph.polyomino.org.uk
State Committed
Headers

Commit Message

Joseph Myers May 18, 2016, 4:06 p.m. UTC
  This patch adds CLONE_NEWCGROUP, new in Linux 4.6, to
sysdeps/unix/sysv/linux/bits/sched.h.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

2016-05-18  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
	(CLONE_NEWCGROUP): New macro.
  

Comments

Mike Frysinger May 18, 2016, 5:41 p.m. UTC | #1
On 18 May 2016 16:06, Joseph Myers wrote:
> This patch adds CLONE_NEWCGROUP, new in Linux 4.6, to
> sysdeps/unix/sysv/linux/bits/sched.h.

OK
-mike
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
index 4f5305a..5da263f 100644
--- a/sysdeps/unix/sysv/linux/bits/sched.h
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
@@ -60,6 +60,7 @@ 
 				      force CLONE_PTRACE on this clone.  */
 # define CLONE_CHILD_SETTID 0x01000000 /* Store TID in userlevel buffer in
 					  the child.  */
+# define CLONE_NEWCGROUP    0x02000000	/* New cgroup namespace.  */
 # define CLONE_NEWUTS	0x04000000	/* New utsname group.  */
 # define CLONE_NEWIPC	0x08000000	/* New ipcs.  */
 # define CLONE_NEWUSER	0x10000000	/* New user namespace.  */