Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
63f18f37
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看板
提交
63f18f37
编写于
9月 20, 2012
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Convert HAVE_SELINUX to WITH_SELINUX
Signed-off-by:
N
Daniel P. Berrange
<
berrange@redhat.com
>
上级
bf1786b6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
configure.ac
configure.ac
+2
-2
src/lxc/lxc_container.c
src/lxc/lxc_container.c
+1
-1
src/storage/storage_backend.c
src/storage/storage_backend.c
+3
-3
未找到文件。
configure.ac
浏览文件 @
63f18f37
...
...
@@ -1291,12 +1291,12 @@ if test "$with_selinux" = "yes"; then
SELINUX_LIBS="-lselinux"
AC_DEFINE_UNQUOTED([SELINUX_MOUNT], ["$SELINUX_MOUNT"], [SELinux mount point])
AC_DEFINE_UNQUOTED([
HAVE
_SELINUX], 1, [whether basic SELinux functionality is available])
AC_DEFINE_UNQUOTED([
WITH
_SELINUX], 1, [whether basic SELinux functionality is available])
dnl We prefer to use <selinux/label.h> and selabel_open, but can fall
dnl back to matchpathcon for the sake of RHEL 5's version of libselinux.
AC_CHECK_HEADERS([selinux/label.h])
fi
AM_CONDITIONAL([
HAVE
_SELINUX], [test "$with_selinux" != "no"])
AM_CONDITIONAL([
WITH
_SELINUX], [test "$with_selinux" != "no"])
AC_SUBST([SELINUX_CFLAGS])
AC_SUBST([SELINUX_LIBS])
...
...
src/lxc/lxc_container.c
浏览文件 @
63f18f37
...
...
@@ -524,7 +524,7 @@ static int lxcContainerMountBasicFS(bool pivotRoot,
{
"/proc/sys"
,
"/proc/sys"
,
NULL
,
NULL
,
MS_BIND
|
MS_REMOUNT
|
MS_RDONLY
},
{
"sysfs"
,
"/sys"
,
"sysfs"
,
NULL
,
MS_NOSUID
|
MS_NOEXEC
|
MS_NODEV
},
{
"sysfs"
,
"/sys"
,
"sysfs"
,
NULL
,
MS_BIND
|
MS_REMOUNT
|
MS_RDONLY
},
#if
HAVE
_SELINUX
#if
WITH
_SELINUX
{
SELINUX_MOUNT
,
SELINUX_MOUNT
,
"selinuxfs"
,
NULL
,
MS_NOSUID
|
MS_NOEXEC
|
MS_NODEV
},
{
SELINUX_MOUNT
,
SELINUX_MOUNT
,
NULL
,
NULL
,
MS_BIND
|
MS_REMOUNT
|
MS_RDONLY
},
#endif
...
...
src/storage/storage_backend.c
浏览文件 @
63f18f37
...
...
@@ -41,7 +41,7 @@
# include <linux/fs.h>
#endif
#if
HAVE
_SELINUX
#if
WITH
_SELINUX
# include <selinux/selinux.h>
#endif
...
...
@@ -1177,7 +1177,7 @@ virStorageBackendUpdateVolTargetInfoFD(virStorageVolTargetPtr target,
unsigned
long
long
*
capacity
)
{
struct
stat
sb
;
#if
HAVE
_SELINUX
#if
WITH
_SELINUX
security_context_t
filecon
=
NULL
;
#endif
...
...
@@ -1241,7 +1241,7 @@ virStorageBackendUpdateVolTargetInfoFD(virStorageVolTargetPtr target,
VIR_FREE
(
target
->
perms
.
label
);
#if
HAVE
_SELINUX
#if
WITH
_SELINUX
/* XXX: make this a security driver call */
if
(
fgetfilecon_raw
(
fd
,
&
filecon
)
==
-
1
)
{
if
(
errno
!=
ENODATA
&&
errno
!=
ENOTSUP
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录