Convert HAVE_CAPNG to WITH_CAPNG

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2012-09-20 15:17:56 +01:00
parent c85e1dd71b
commit ef38965c30
5 changed files with 9 additions and 9 deletions

View File

@ -1515,9 +1515,9 @@ if test "$with_qemu" = "yes" && test "$with_capng" != "no"; then
fi
if test "$with_capng" = "yes"; then
CAPNG_LIBS="-lcap-ng"
AC_DEFINE_UNQUOTED([HAVE_CAPNG], 1, [whether capng is available for privilege reduction])
AC_DEFINE_UNQUOTED([WITH_CAPNG], 1, [whether capng is available for privilege reduction])
fi
AM_CONDITIONAL([HAVE_CAPNG], [test "$with_capng" != "no"])
AM_CONDITIONAL([WITH_CAPNG], [test "$with_capng" != "no"])
AC_SUBST([CAPNG_CFLAGS])
AC_SUBST([CAPNG_LIBS])

View File

@ -45,7 +45,7 @@
/* For MS_MOVE */
#include <linux/fs.h>
#if HAVE_CAPNG
#if WITH_CAPNG
# include <cap-ng.h>
#endif
@ -2126,7 +2126,7 @@ static int lxcContainerSetupMounts(virDomainDefPtr vmDef,
*/
static int lxcContainerDropCapabilities(bool keepReboot ATTRIBUTE_UNUSED)
{
#if HAVE_CAPNG
#if WITH_CAPNG
int ret;
capng_get_caps_process();

View File

@ -42,7 +42,7 @@
#include <sys/stat.h>
#include <time.h>
#if HAVE_CAPNG
#if WITH_CAPNG
# include <cap-ng.h>
#endif
@ -664,7 +664,7 @@ error:
static int lxcControllerClearCapabilities(void)
{
#if HAVE_CAPNG
#if WITH_CAPNG
int ret;
capng_clear(CAPNG_SELECT_BOTH);

View File

@ -29,7 +29,7 @@
#include <sys/wait.h>
#include <fcntl.h>
#if HAVE_CAPNG
#if WITH_CAPNG
# include <cap-ng.h>
#endif
@ -162,7 +162,7 @@ virCommandFDSet(int fd,
static int virClearCapabilities(void) ATTRIBUTE_UNUSED;
# if HAVE_CAPNG
# if WITH_CAPNG
static int virClearCapabilities(void)
{
int ret;

View File

@ -58,7 +58,7 @@
# include <pwd.h>
# include <grp.h>
#endif
#if HAVE_CAPNG
#if WITH_CAPNG
# include <cap-ng.h>
#endif
#if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R