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


Groups > linux.kernel > #1495692

Re: [RFC][PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

From "Serge E. Hallyn" <serge@hallyn.com>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups
Date 2016-10-05 06:30 +0200
Message-ID <soM09-4b0-1@gated-at.bofh.it> (permalink)
References <soIfT-1zP-1@gated-at.bofh.it> <soIpA-1De-17@gated-at.bofh.it> <soKKJ-3lX-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Oct 04, 2016 at 08:00:18PM -0700, John Stultz wrote:
> On Tue, Oct 4, 2016 at 5:38 PM, Serge E. Hallyn <serge@hallyn.com> wrote:
> > Quoting John Stultz (john.stultz@linaro.org):
> >> So this patch, as suggested by Tejun,  simply adds a new process
> >> capability flag (CAP_CGROUP_MIGRATE_TASK), and uses it when checking
> >
> > So realistically, what all can this mean?  Freezing tasks, changing
> > cpu/memory limits, changing network and disk throughput, forbid forking,
> > and (most importantly) forbid access to certain devices.
> >
> > I think that's all ok.  (And we still separately check for inode write
> > perms.)
> 
> Sounds good.
> 
> > If anything I'd say the GLOBAL_ROOT_UID check could be taken out since
> > otherwise a host-root task effectively cannot drop this capability.
> 
> Is this ok to leave for a separate patch?

Yeah.  And I'm not sure whether Tejun would object to that idea.

> > Acked-by: Serge Hallyn <serge@hallyn.com>
> 
> Thanks for the review!
> 
> Unless there's other feedback, I'll sit on this until the merge window
> is over and then resubmit for consideration for 4.10.
> 
> thanks
> -john

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC][PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-10-05 02:30 +0200
  Re: [RFC][PATCH] cgroup: Add new capability to allow a process to  migrate other tasks between cgroups "Serge E. Hallyn" <serge@hallyn.com> - 2016-10-05 02:40 +0200
    Re: [RFC][PATCH] cgroup: Add new capability to allow a process to  migrate other tasks between cgroups John Stultz <john.stultz@linaro.org> - 2016-10-05 05:10 +0200
      Re: [RFC][PATCH] cgroup: Add new capability to allow a process to  migrate other tasks between cgroups "Serge E. Hallyn" <serge@hallyn.com> - 2016-10-05 06:30 +0200
        Re: [RFC][PATCH] cgroup: Add new capability to allow a process to  migrate other tasks between cgroups Tejun Heo <tj@kernel.org> - 2016-10-05 17:30 +0200

csiph-web