Re: [RFC] Control Groups Roadmap ideas

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Balbir Singh <balbir@...>
Cc: Serge E. Hallyn <serue@...>, Paul Menage <menage@...>, Linux Containers <containers@...>, lkml <linux-kernel@...>
Date: Sunday, April 13, 2008 - 12:11 pm

Quoting Balbir Singh (balbir@linux.vnet.ibm.com):

It sounds like what you're talking about should suffice - the container
can only write to its own subdirectory, and the control files therein
should not allow the container to escape the bounds set for it, only to
partition it.

The only thing that worries me is how subtle it may turn out to be to
properly set up a container this way.  I.e. you'll need to
	mount --bind /etc/cgroups/mycontainer /vps/container1/etc/cgroups
before the container is off and running and be able to then prevent
the cgroup from mounting the host's /etc any other way.

As in so many other cases it shouldn't be too difficult with selinux,
otherwise I suppose one thing you could do is to put the host's
/etc/cgroup (or really the host's /) on partitionN, mount
/etc/cgroup/container from another partitionM, and use the device
whitelist (eventually, device namespaces) to allow the container to
mount partitionM but not partitionN.

So that's the one place where kernel support might be kind of seductive,
but I suspect it would just lead to either an unsafe, an inflexible, or
just a hokey "solution".  So let's stick with libcg for now.  A daemon
can always be written on top of it if people want, and if at some point
we see a real need for kernel support we can talk about it then.

Thanks, Balbir.


I'm behind in versions, but the last I took a look it looked great.

thanks,
-serge
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Control Groups Roadmap ideas, Paul Menage, (Tue Apr 8, 5:14 pm)
Re: [RFC] Control Groups Roadmap ideas, Serge E. Hallyn, (Fri Apr 11, 10:48 am)
Re: [RFC] Control Groups Roadmap ideas, Paul Menage, (Mon Apr 14, 1:24 am)
Re: [RFC] Control Groups Roadmap ideas, Serge E. Hallyn, (Mon Apr 14, 10:11 am)
Re: [RFC] Control Groups Roadmap ideas, Paul Menage, (Mon Apr 14, 11:03 am)
Re: [RFC] Control Groups Roadmap ideas, Balbir Singh, (Sat Apr 12, 1:10 am)
Re: [RFC] Control Groups Roadmap ideas, Serge E. Hallyn, (Sun Apr 13, 12:11 pm)
Re: [RFC] Control Groups Roadmap ideas, Balbir Singh, (Mon Apr 14, 10:31 am)
Re: [RFC] Control Groups Roadmap ideas, Li Zefan, (Tue Apr 8, 10:28 pm)
Re: [RFC] Control Groups Roadmap ideas, Paul Menage, (Thu Apr 10, 4:10 pm)