]> git.proxmox.com Git - mirror_lxc.git/commit
Don't hard depend on capability.h and libcap
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 20 Dec 2012 15:11:03 +0000 (16:11 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 9 Jan 2013 15:11:56 +0000 (10:11 -0500)
commit495d2046f6fd0143e368f59746c6d24cef8ad87f
tree2cf047381e1ff12d08c46e9e7ec894b76d928f62
parente827ff7e2f3c1c18e5823312482f0f45e03cb6a8
Don't hard depend on capability.h and libcap

In the effort to make LXC work with non-standard Linux distros, this change
allows for the user to build LXC without capability support through a new
--disable-capabilities option to configure.

This effectively will cause LXC not to link against libcap and will turn all
the _cap_ functions into no-ops.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
configure.ac
src/lxc/caps.c
src/lxc/caps.h
src/lxc/conf.c
src/lxc/start.c