Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1541337
| From | John Stultz <john.stultz@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups |
| Date | 2016-12-13 18:40 +0100 |
| Message-ID | <sNZdv-41E-7@gated-at.bofh.it> (permalink) |
| References | <sNKeu-3i8-19@gated-at.bofh.it> <sNRSF-7Zv-11@gated-at.bofh.it> <sNYhr-3rV-25@gated-at.bofh.it> <sNYAO-3yH-39@gated-at.bofh.it> <sNYUa-3UP-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Dec 13, 2016 at 9:17 AM, Casey Schaufler <casey@schaufler-ca.com> wrote: > On 12/13/2016 8:49 AM, John Stultz wrote: >> On Tue, Dec 13, 2016 at 8:39 AM, Casey Schaufler <casey@schaufler-ca.com> wrote: >>> On 12/13/2016 1:47 AM, Michael Kerrisk (man-pages) wrote: >>>> How about CAP_CGROUP_CONTROL or some such, with the idea that this >>>> might be a capability that allows the holder to step outside usual >>>> cgroup rules? At the moment, that capability would allow only one such >>>> step, but maybe there would be others in the future. >>> I agree, but want to put it more strongly. The granularity of >>> capabilities can never be fine enough for some people, and this >>> is an example of a case where you're going a bit too far. If the >>> use case is Android as you say, you don't need this. As my friends >>> on the far side of the aisle would say, "just write SELinux policy" >>> to correctly control access as required. >> So.. The trouble is that while selinux is good for restricting >> permissions, the in-kernel permission checks here are already too >> restrictive. > > Why did the original authors of cgroups make it that restrictive? > If there isn't a good reason, loosen it up. If there is a good > reason, then pay heed to it. That's what this patch is proposing. And I agree with Michael that the newly proposed cap was a bit to narrowly focused on my immediate use case, and broadening it to CGROUP_CONTROL is smart. Then that capability could be further restricted w/ selinux policy, as you suggest. thanks -john
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 02:40 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 02:50 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com> - 2016-12-13 10:50 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 17:30 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 19:50 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Tejun Heo <tj@kernel.org> - 2016-12-13 20:00 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Tejun Heo <tj@kernel.org> - 2016-12-13 19:50 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Casey Schaufler <casey@schaufler-ca.com> - 2016-12-13 17:40 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 18:00 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Casey Schaufler <casey@schaufler-ca.com> - 2016-12-13 18:20 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 18:40 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Casey Schaufler <casey@schaufler-ca.com> - 2016-12-13 18:50 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-12-13 19:20 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Casey Schaufler <casey@schaufler-ca.com> - 2016-12-13 19:40 +0100
Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups Tejun Heo <tj@kernel.org> - 2016-12-13 19:50 +0100
csiph-web