diff options
author | Tejun Heo <tj@kernel.org> | 2017-06-25 00:27:17 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-06-25 00:33:06 -0400 |
commit | 39fd64ae9f471f2d0aee46c5bc8646e9f2494e64 (patch) | |
tree | 71e7f9c237fc5c342db331700d89553ebbd27468 | |
parent | b6053d40e3387c916d56d319ba6bfdb2c42a67c7 (diff) |
cgroup: "cgroup.subtree_control" should be writeable by delegatee
"cgroup.subtree_control" determines which resource types a cgroup
wants to control. Unlike actual resource knobs, this is an attribute
which belongs to the cgroup itself instead of its parent and thus
should be writeable by the delegatee in a delegated cgroup.
Update delegation documentation accordingly.
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | Documentation/cgroup-v2.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/cgroup-v2.txt b/Documentation/cgroup-v2.txt index dc5e2dcdbef4..0260ed053efd 100644 --- a/Documentation/cgroup-v2.txt +++ b/Documentation/cgroup-v2.txt | |||
@@ -309,10 +309,11 @@ file. | |||
309 | 2-5-1. Model of Delegation | 309 | 2-5-1. Model of Delegation |
310 | 310 | ||
311 | A cgroup can be delegated to a less privileged user by granting write | 311 | A cgroup can be delegated to a less privileged user by granting write |
312 | access of the directory and its "cgroup.procs" file to the user. Note | 312 | access of the directory and its "cgroup.procs" and |
313 | that resource control interface files in a given directory control the | 313 | "cgroup.subtree_control" files to the user. Note that resource |
314 | distribution of the parent's resources and thus must not be delegated | 314 | control interface files in a given directory control the distribution |
315 | along with the directory. | 315 | of the parent's resources and thus must not be delegated along with |
316 | the directory. | ||
316 | 317 | ||
317 | Once delegated, the user can build sub-hierarchy under the directory, | 318 | Once delegated, the user can build sub-hierarchy under the directory, |
318 | organize processes as it sees fit and further distribute the resources | 319 | organize processes as it sees fit and further distribute the resources |