[lxc-devel] Bug#620921: Detecting a non-root container

Marco d'Itri md at Linux.IT
Mon Apr 11 00:47:30 UTC 2011


On Apr 06, Daniel Lezcano <daniel.lezcano at free.fr> wrote:

> I would not rely on that because lxc may evolve to not use the cgroup if  
> not present.
>
> If you use upstart, you can check the 'container=lxc' env variable in  
> the udev init script in order to know if you are in a container.  
> Otherwise for sysvrc init, I don't know how to handle that.
If the container does not support handling uevents then
/sys/kernel/uevent_helper should not exist. This is how openvz behaves.

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110411/ea1c597e/attachment.pgp>


More information about the lxc-devel mailing list