Re: Detecting if you are running in a container

From: Eric W. Biederman
Date: Tue Oct 11 2011 - 02:54:31 EST


Lennart Poettering <mzxreary@xxxxxxxxxxx> writes:

> On Mon, 10.10.11 13:59, Eric W. Biederman (ebiederm@xxxxxxxxxxxx) wrote:

>> My list of things that still have work left to do looks like:
>> - cgroups. It is not safe to create a new hierarchies with groups
>> that are in existing hierarchies. So cgroups don't work.
>
> Well, for systemd they actually work quite fine since systemd will
> always place its own cgroups below the cgroup it is started in. cgroups
> hence make these things nicely stackable.
>
> In fact, most folks involved in cgroups userspace have agreed to these
> rules now:
>
> http://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups

Wow. Are cgroups really that complicated to use? A list of rules
a page long on what you have to do to make them useful and non-conflict.
Something seems off. Perhaps we need a rule don't mount multiple
controllers in the same hierarchy.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/