提交 ef38965c 编写于 作者: D Daniel P. Berrange

Convert HAVE_CAPNG to WITH_CAPNG

Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 c85e1dd7
......@@ -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])
......
......@@ -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();
......
......@@ -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);
......
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册