Re: [PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-09 Thread Aleksa Sarai
However, I agree with James that this patchset isn't ideal (it was my first rough attempt). I think I'll get to work on properly virtualising /sys/fs/cgroup, which will allow for a new cgroup namespace to modify subtrees (but without allowing for cgroup escape) -- by pinning what pid namespace the

Re: [PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-04 Thread Aleksa Sarai
However, I agree with James that this patchset isn't ideal (it was my first rough attempt). I think I'll get to work on properly virtualising /sys/fs/cgroup, which will allow for a new cgroup namespace to modify subtrees (but without allowing for cgroup escape) -- by pinning what pid namespace the

Re: [PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-03 Thread Tejun Heo
Hello, Aleksa. On Tue, May 03, 2016 at 11:52:22AM +1000, Aleksa Sarai wrote: > However, I agree with James that this patchset isn't ideal (it was my first > rough attempt). I think I'll get to work on properly virtualising > /sys/fs/cgroup, which will allow for a new cgroup namespace to modify > s

Re: [PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-02 Thread Aleksa Sarai
Change the mode of the cgroup directory for each cgroup association, allowing the process to create subtrees and modify the limits of the subtrees *without* allowing the process to modify its own limits. Due to the cgroup core restrictions and unix permission model, this allows for processes to cr

Re: [PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-02 Thread Tejun Heo
Hello, On Tue, May 03, 2016 at 12:01:21AM +1000, Aleksa Sarai wrote: > Allow an unprivileged processes to control subtrees of their associated > cgroup, a necessary feature if an unprivileged container (set up with an > unprivileged user namespace) wishes to take advantage of cgroups for its > own

[PATCH v3 2/2] cgroup: allow management of subtrees by new cgroup namespaces

2016-05-02 Thread Aleksa Sarai
Allow an unprivileged processes to control subtrees of their associated cgroup, a necessary feature if an unprivileged container (set up with an unprivileged user namespace) wishes to take advantage of cgroups for its own subprocesses. Change the mode of the cgroup directory for each cgroup associ