Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
ef38965c
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ef38965c
编写于
9月 20, 2012
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert HAVE_CAPNG to WITH_CAPNG
Signed-off-by:
N
Daniel P. Berrange
<
berrange@redhat.com
>
上级
c85e1dd7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
configure.ac
configure.ac
+2
-2
src/lxc/lxc_container.c
src/lxc/lxc_container.c
+2
-2
src/lxc/lxc_controller.c
src/lxc/lxc_controller.c
+2
-2
src/util/vircommand.c
src/util/vircommand.c
+2
-2
src/util/virutil.c
src/util/virutil.c
+1
-1
未找到文件。
configure.ac
浏览文件 @
ef38965c
...
...
@@ -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])
...
...
src/lxc/lxc_container.c
浏览文件 @
ef38965c
...
...
@@ -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
();
...
...
src/lxc/lxc_controller.c
浏览文件 @
ef38965c
...
...
@@ -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
);
...
...
src/util/vircommand.c
浏览文件 @
ef38965c
...
...
@@ -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
;
...
...
src/util/virutil.c
浏览文件 @
ef38965c
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录