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

2011-04-14 Thread Marco d';Itri
On Apr 12, Daniel Lezcano wrote: > At the first glance udev events are supported in the container. But for > the sake of optimization, I recommend to not use it as it will trigger > the events in all the containers. This looks wrong... containers should not be able to trigger events which aff

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

2011-04-11 Thread Marco d';Itri
On Apr 06, Daniel Lezcano 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