[Lxc-users] lxc-setcap doesn't work in ubuntu 12.04

Serge Hallyn serge.hallyn at canonical.com
Fri Jun 29 14:21:24 UTC 2012


Quoting Sam Wang (zhefwang at gmail.com):
> I know it can not work with shell scripts and it can not work with binary
> executable file.

It can work with binary executables, but of course the capabilities won't
persist across execve, which may be what you meant.

> such as lxc-execute.I used lxc in centos 6.2 and red hat
> 6.1,it did work.

Then please define 'did not work' in ubuntu.

> btw: the version of lxc is 0.7.5 installed by apt-get install

In any case, you'll "soon" be able to user user namespaces to start
containers without needing privilege (a start to the lxc patch is at
https://code.launchpad.net/~serge-hallyn/ubuntu/quantal/lxc/lxc-user-ns,
but the kernel patchset, at
http://kernel.ubuntu.com/git/serge/quantal-userns.git ,
needs some more features).

-serge




More information about the lxc-users mailing list