aboutsummaryrefslogtreecommitdiffstats
path: root/man7/cgroups.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-01-10 23:19:50 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-01-11 00:47:12 +0100
commitd84e558ef3efd4731d22e0790e98abaaa389af44 (patch)
tree9f5b37ab92916a0eaf9fd8162c5436950bf51ae6 /man7/cgroups.7
parent446d16432656dbcafae27de3b2bc605e36f7e7ee (diff)
downloadman-pages-d84e558ef3efd4731d22e0790e98abaaa389af44.tar.gz
cgroups.7: Define containment rules for cgroup.threads
Reviewed-by: Tejun Heo <tj@kernel.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/cgroups.7')
-rw-r--r--man7/cgroups.725
1 files changed, 23 insertions, 2 deletions
diff --git a/man7/cgroups.7 b/man7/cgroups.7
index aa3127a05b..35f8bd634d 100644
--- a/man7/cgroups.7
+++ b/man7/cgroups.7
@@ -1328,9 +1328,30 @@ to the
files in different cgroups inside the subtree.
The threads of a process must all reside in the same threaded subtree.
.PP
-The
+As with writing to
+.IR cgroup.procs ,
+some containment rules apply when writing to the
+.I cgroup.threads
+file:
+.IP * 3
+The writer must have write permission on the
+cgroup.threads
+file in the destination cgroup.
+.IP *
+The writer must have write permission on the
+.I cgroup.procs
+file in the common ancestor of the source and destination cgroups.
+(In some cases,
+the common ancestor may be the source or destination cgroup itself.)
+.IP *
+The source and destination cgroups must be in the same threaded subtree.
+(Outside a threaded subtree, an attempt to move a thread by writing
+its thread ID to the
.I cgroup.threads
-file is writable only for the cgroups inside a threaded subtree.
+file in a different
+.I domain
+cgroup fails with the error
+.BR EOPNOTSUPP .)
.PP
The
.I cgroup.threads