]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
setns.2: Document CLONE_NEWCGROUP
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 28 Apr 2016 12:26:25 +0000 (14:26 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 9 May 2016 21:08:54 +0000 (23:08 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/setns.2

index ceb709fcaccdf5ccf1c4fc07bb4cf0e910c66ec1..df8eb853208109695dfc56c1ce46ea120bc39314 100644 (file)
@@ -41,6 +41,10 @@ This argument can have one of the following values:
 .BR 0
 Allow any type of namespace to be joined.
 .TP
+.BR CLONE_NEWCGROUP " (since Linux 4.6)"
+.I fd
+must refer to a cgroup namespace.
+.TP
 .BR CLONE_NEWIPC " (since Linux 3.0)"
 .I fd
 must refer to an IPC namespace.
@@ -135,6 +139,11 @@ in the target mount namespace.
 See
 .BR user_namespaces (7)
 for details on the interaction of user namespaces and mount namespaces.
+
+Using
+.BR setns ()
+to change the caller's cgroup namespace does not change
+the caller's cgroup memberships.
 .SH RETURN VALUE
 On success,
 .BR setns ()