Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674175 > unrolled thread

[1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee

Started byTejun Heo <tj@kernel.org>
First post2017-06-25 06:30 +0200
Last post2017-06-25 06:40 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [1/3] cgroup: "cgroup.subtree_control" should be writeable by  delegatee Tejun Heo <tj@kernel.org> - 2017-06-25 06:30 +0200
    Re: [1/3] cgroup: "cgroup.subtree_control" should be writeable by  delegatee Tejun Heo <tj@kernel.org> - 2017-06-25 06:40 +0200

#1674175 — [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee

FromTejun Heo <tj@kernel.org>
Date2017-06-25 06:30 +0200
Subject[1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee
Message-ID<tW7ln-oM-3@gated-at.bofh.it>
"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>
---
 Documentation/cgroup-v2.txt |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

--- a/Documentation/cgroup-v2.txt
+++ b/Documentation/cgroup-v2.txt
@@ -309,10 +309,11 @@ file.
 2-5-1. Model of Delegation
 
 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
-that resource control interface files in a given directory control the
-distribution of the parent's resources and thus must not be delegated
-along with the directory.
+access of the directory and its "cgroup.procs" and
+"cgroup.subtree_control" files to the user.  Note that resource
+control interface files in a given directory control the distribution
+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,
 organize processes as it sees fit and further distribute the resources

[toc] | [next] | [standalone]


#1674178

FromTejun Heo <tj@kernel.org>
Date2017-06-25 06:40 +0200
Message-ID<tW7v3-rD-5@gated-at.bofh.it>
In reply to#1674175
On Sun, Jun 25, 2017 at 12:27:17AM -0400, Tejun Heo wrote:
> "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>

Applying to cgroup/for-4.13.  I've been thinking that the doc listed
both files all along.  Oh well, better late than never.

Thanks.

-- 
tejun

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web