]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Convert HAVE_CAPNG to WITH_CAPNG
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 20 Sep 2012 14:17:56 +0000 (15:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Jan 2013 13:25:06 +0000 (13:25 +0000)
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
configure.ac
src/lxc/lxc_container.c
src/lxc/lxc_controller.c
src/util/vircommand.c
src/util/virutil.c

index 4c1d12ea66da5c6c25ea73a4be996454943aade2..2d8d8e9fad3f08798c3be7bbdd39b58e24d0c994 100644 (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])
 
index ee1d6764123f677108579641783a9a0488cd58c9..73cffa1b735ad8480ad234f5b0c077fcfd87f0e9 100644 (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();
index 5c7be8d4e354bcf4b1266c172b730c68dabe6cfa..76b2986fdf1e4d5ca3606bf973b7caea2574c573 100644 (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);
index c906f2a09d378c030762047ed030a2b34058da94..8566d1a7d51896bd2db2c48669240d12f36fee98 100644 (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;
index 7c54bea717af51bce50dafc919bbe7912d85bd0e..b36e9d39dc7055d089d9a0d29c4caf72856cd10c 100644 (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