cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee
@ 2017-06-25  4:27 Tejun Heo
       [not found] ` <20170625042717.GA14158-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Tejun Heo @ 2017-06-25  4:27 UTC (permalink / raw)
  To: Li Zefan, Johannes Weiner
  Cc: cgroups-u79uwXL29TY76Z2rM5mHXA, Aravind Anbudurai,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

"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-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-28 18:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-25  4:27 [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee Tejun Heo
     [not found] ` <20170625042717.GA14158-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2017-06-25  4:27   ` [PATCH 2/3] cgroup: restructure cgroup_procs_write_permission() Tejun Heo
     [not found]     ` <20170625042759.GA9644-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2017-06-25  4:28       ` [PATCH 3/3] cgroup: implement "nsdelegate" mount option Tejun Heo
     [not found]         ` <20170625042838.GB9644-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2017-06-27 18:30           ` [PATCH v2 " Tejun Heo
     [not found]             ` <20170627183028.GF2289-piEFEHQLUPpN0TnZuCh8vA@public.gmane.org>
2017-06-28 18:44               ` Tejun Heo
2017-06-25  4:31   ` [1/3] cgroup: "cgroup.subtree_control" should be writeable by delegatee Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).