]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
Add HAVE_LIBCAP
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 11 Feb 2017 21:40:19 +0000 (22:40 +0100)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 12 Feb 2017 13:55:05 +0000 (14:55 +0100)
commite37dda715615d09543b9e15c181f9e0a422646da
treea4304c7203af136f671f7791e9da40aa0f143e7d
parent3a5cb1afffea06ad45a1144bbc3098bb6d5c7e11
Add HAVE_LIBCAP

Currently it is impossible to build lxc with --disable-capabilities if
the user has libcap-dev installed on his system as:
 - calls to cap_xxx functions are not protected by HAVE_LIBCAP defines.
 The whole file is only protected by HAVE_SYS_CAPABILITY_H.
 - AC_CHECK_LIB default action-if-found is overriden by [true] so
 HAVE_LIBCAP is never written to config.h

This patch replaces all HAVE_SYS_CAPABILITY_H checks by HAVE_LIBCAP
checks (fix #1361)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
configure.ac
src/lxc/caps.c
src/lxc/caps.h
src/lxc/conf.c
src/lxc/start.c