提交 39fd64ae 编写于 作者: T Tejun Heo

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: NTejun Heo <tj@kernel.org>
上级 b6053d40
...@@ -309,10 +309,11 @@ file. ...@@ -309,10 +309,11 @@ file.
2-5-1. Model of Delegation 2-5-1. Model of Delegation
A cgroup can be delegated to a less privileged user by granting write A cgroup can be delegated to a less privileged user by granting write
access of the directory and its "cgroup.procs" file to the user. Note access of the directory and its "cgroup.procs" and
that resource control interface files in a given directory control the "cgroup.subtree_control" files to the user. Note that resource
distribution of the parent's resources and thus must not be delegated control interface files in a given directory control the distribution
along with the directory. of the parent's resources and thus must not be delegated along with
the directory.
Once delegated, the user can build sub-hierarchy under the directory, Once delegated, the user can build sub-hierarchy under the directory,
organize processes as it sees fit and further distribute the resources organize processes as it sees fit and further distribute the resources
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部