[lxc-devel] [lxc/lxc] e37dda: Add HAVE_LIBCAP
GitHub
noreply at github.com
Sun Feb 12 15:32:38 UTC 2017
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: e37dda715615d09543b9e15c181f9e0a422646da
https://github.com/lxc/lxc/commit/e37dda715615d09543b9e15c181f9e0a422646da
Author: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Date: 2017-02-12 (Sun, 12 Feb 2017)
Changed paths:
M configure.ac
M src/lxc/caps.c
M src/lxc/caps.h
M src/lxc/conf.c
M src/lxc/start.c
Log Message:
-----------
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 at gmail.com>
Commit: 1f14c2ea3d54b69516ec4fdabb9740af66f2b0a9
https://github.com/lxc/lxc/commit/1f14c2ea3d54b69516ec4fdabb9740af66f2b0a9
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-02-12 (Sun, 12 Feb 2017)
Changed paths:
M configure.ac
M src/lxc/caps.c
M src/lxc/caps.h
M src/lxc/conf.c
M src/lxc/start.c
Log Message:
-----------
Merge pull request #1430 from ffontaine/master
Add HAVE_LIBCAP
Compare: https://github.com/lxc/lxc/compare/3a5cb1afffea...1f14c2ea3d54
More information about the lxc-devel
mailing list