[lxc-devel] Detecting if you are running in a container

Kay Sievers kay.sievers at vrfy.org
Wed Oct 12 16:59:07 UTC 2011


On Mon, Oct 10, 2011 at 23:41, Lennart Poettering <mzxreary at 0pointer.de> wrote:
> On Mon, 10.10.11 13:59, Eric W. Biederman (ebiederm at xmission.com) wrote:

>> - udev.  All of the kernel interfaces for udev should be supported in
>>   current kernels.  However I believe udev is useless because container
>>   start drops CAP_MKNOD so we can't do evil things.  So I would
>>   recommend basing the startup of udev on presence of CAP_MKNOD.
>
> Using CAP_MKNOD as test here is indeed a good idea. I'll make sure udev
> in a systemd world makes use of that.

Done.

http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=9371e6f3e04b03692c23e392fdf005a08ccf1edb

Thanks,
Kay




More information about the lxc-devel mailing list