Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
4ab0d6c4
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,发现更多精彩内容 >>
提交
4ab0d6c4
编写于
5月 24, 2012
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
security: Switch to C99-style struct initialization
上级
81e9e7cf
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
129 addition
and
130 deletion
+129
-130
src/security/security_apparmor.c
src/security/security_apparmor.c
+25
-25
src/security/security_dac.c
src/security/security_dac.c
+26
-27
src/security/security_nop.c
src/security/security_nop.c
+26
-26
src/security/security_selinux.c
src/security/security_selinux.c
+26
-26
src/security/security_stack.c
src/security/security_stack.c
+26
-26
未找到文件。
src/security/security_apparmor.c
浏览文件 @
4ab0d6c4
...
@@ -809,39 +809,39 @@ AppArmorSetImageFDLabel(virSecurityManagerPtr mgr,
...
@@ -809,39 +809,39 @@ AppArmorSetImageFDLabel(virSecurityManagerPtr mgr,
}
}
virSecurityDriver
virAppArmorSecurityDriver
=
{
virSecurityDriver
virAppArmorSecurityDriver
=
{
0
,
.
privateDataLen
=
0
,
SECURITY_APPARMOR_NAME
,
.
name
=
SECURITY_APPARMOR_NAME
,
AppArmorSecurityManagerProbe
,
.
probe
=
AppArmorSecurityManagerProbe
,
AppArmorSecurityManagerOpen
,
.
open
=
AppArmorSecurityManagerOpen
,
AppArmorSecurityManagerClose
,
.
close
=
AppArmorSecurityManagerClose
,
AppArmorSecurityManagerGetModel
,
.
getModel
=
AppArmorSecurityManagerGetModel
,
AppArmorSecurityManagerGetDOI
,
.
getDOI
=
AppArmorSecurityManagerGetDOI
,
AppArmorSecurityVerify
,
.
domainSecurityVerify
=
AppArmorSecurityVerify
,
AppArmorSetSecurityImageLabel
,
.
domainSetSecurityImageLabel
=
AppArmorSetSecurityImageLabel
,
AppArmorRestoreSecurityImageLabel
,
.
domainRestoreSecurityImageLabel
=
AppArmorRestoreSecurityImageLabel
,
AppArmorSetSecurityDaemonSocketLabel
,
.
domainSetSecurityDaemonSocketLabel
=
AppArmorSetSecurityDaemonSocketLabel
,
AppArmorSetSecuritySocketLabel
,
.
domainSetSecuritySocketLabel
=
AppArmorSetSecuritySocketLabel
,
AppArmorClearSecuritySocketLabel
,
.
domainClearSecuritySocketLabel
=
AppArmorClearSecuritySocketLabel
,
AppArmorGenSecurityLabel
,
.
domainGenSecurityLabel
=
AppArmorGenSecurityLabel
,
AppArmorReserveSecurityLabel
,
.
domainReserveSecurityLabel
=
AppArmorReserveSecurityLabel
,
AppArmorReleaseSecurityLabel
,
.
domainReleaseSecurityLabel
=
AppArmorReleaseSecurityLabel
,
AppArmorGetSecurityProcessLabel
,
.
domainGetSecurityProcessLabel
=
AppArmorGetSecurityProcessLabel
,
AppArmorSetSecurityProcessLabel
,
.
domainSetSecurityProcessLabel
=
AppArmorSetSecurityProcessLabel
,
AppArmorSetSecurityAllLabel
,
.
domainSetSecurityAllLabel
=
AppArmorSetSecurityAllLabel
,
AppArmorRestoreSecurityAllLabel
,
.
domainRestoreSecurityAllLabel
=
AppArmorRestoreSecurityAllLabel
,
AppArmorSetSecurityHostdevLabel
,
.
domainSetSecurityHostdevLabel
=
AppArmorSetSecurityHostdevLabel
,
AppArmorRestoreSecurityHostdevLabel
,
.
domainRestoreSecurityHostdevLabel
=
AppArmorRestoreSecurityHostdevLabel
,
AppArmorSetSavedStateLabel
,
.
domainSetSavedStateLabel
=
AppArmorSetSavedStateLabel
,
AppArmorRestoreSavedStateLabel
,
.
domainRestoreSavedStateLabel
=
AppArmorRestoreSavedStateLabel
,
AppArmorSetImageFDLabel
,
.
domainSetSecurityImageFDLabel
=
AppArmorSetImageFDLabel
,
};
};
src/security/security_dac.c
浏览文件 @
4ab0d6c4
...
@@ -723,42 +723,41 @@ static char *virSecurityDACGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE_U
...
@@ -723,42 +723,41 @@ static char *virSecurityDACGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE_U
}
}
virSecurityDriver
virSecurityDriverDAC
=
{
virSecurityDriver
virSecurityDriverDAC
=
{
sizeof
(
virSecurityDACData
),
.
privateDataLen
=
sizeof
(
virSecurityDACData
),
"virDAC"
,
.
name
=
"virDAC"
,
.
probe
=
virSecurityDACProbe
,
.
open
=
virSecurityDACOpen
,
.
close
=
virSecurityDACClose
,
virSecurityDACProbe
,
.
getModel
=
virSecurityDACGetModel
,
virSecurityDACOpen
,
.
getDOI
=
virSecurityDACGetDOI
,
virSecurityDACClose
,
virSecurityDACGetModel
,
.
domainSecurityVerify
=
virSecurityDACVerify
,
virSecurityDACGetDOI
,
virSecurityDACVerify
,
.
domainSetSecurityImageLabel
=
virSecurityDACSetSecurityImageLabel
,
.
domainRestoreSecurityImageLabel
=
virSecurityDACRestoreSecurityImageLabel
,
virSecurityDACSetSecurityImageLabel
,
.
domainSetSecurityDaemonSocketLabel
=
virSecurityDACSetDaemonSocketLabel
,
virSecurityDACRestoreSecurityImageLabel
,
.
domainSetSecuritySocketLabel
=
virSecurityDACSetSocketLabel
,
.
domainClearSecuritySocketLabel
=
virSecurityDACClearSocketLabel
,
virSecurityDACSetDaemonSocket
Label
,
.
domainGenSecurityLabel
=
virSecurityDACGen
Label
,
virSecurityDACSetSocket
Label
,
.
domainReserveSecurityLabel
=
virSecurityDACReserve
Label
,
virSecurityDACClearSocket
Label
,
.
domainReleaseSecurityLabel
=
virSecurityDACRelease
Label
,
virSecurityDACGenLabel
,
.
domainGetSecurityProcessLabel
=
virSecurityDACGetProcessLabel
,
virSecurityDACReserveLabel
,
.
domainSetSecurityProcessLabel
=
virSecurityDACSetProcessLabel
,
virSecurityDACReleaseLabel
,
virSecurityDACGetProcess
Label
,
.
domainSetSecurityAllLabel
=
virSecurityDACSetSecurityAll
Label
,
virSecurityDACSetProcess
Label
,
.
domainRestoreSecurityAllLabel
=
virSecurityDACRestoreSecurityAll
Label
,
virSecurityDACSetSecurityAll
Label
,
.
domainSetSecurityHostdevLabel
=
virSecurityDACSetSecurityHostdev
Label
,
virSecurityDACRestoreSecurityAll
Label
,
.
domainRestoreSecurityHostdevLabel
=
virSecurityDACRestoreSecurityHostdev
Label
,
virSecurityDACSetSecurityHostdev
Label
,
.
domainSetSavedStateLabel
=
virSecurityDACSetSavedState
Label
,
virSecurityDACRestoreSecurityHostdev
Label
,
.
domainRestoreSavedStateLabel
=
virSecurityDACRestoreSavedState
Label
,
virSecurityDACSetSavedStateLabel
,
.
domainSetSecurityImageFDLabel
=
virSecurityDACSetImageFDLabel
,
virSecurityDACRestoreSavedStateLabel
,
virSecurityDACSetImageFDLabel
,
.
domainGetSecurityMountOptions
=
virSecurityDACGetMountOptions
,
virSecurityDACGetMountOptions
,
};
};
src/security/security_nop.c
浏览文件 @
4ab0d6c4
...
@@ -170,41 +170,41 @@ static char *virSecurityDomainGetMountOptionsNop(virSecurityManagerPtr mgr ATTRI
...
@@ -170,41 +170,41 @@ static char *virSecurityDomainGetMountOptionsNop(virSecurityManagerPtr mgr ATTRI
}
}
virSecurityDriver
virSecurityDriverNop
=
{
virSecurityDriver
virSecurityDriverNop
=
{
0
,
.
privateDataLen
=
0
,
"none"
,
.
name
=
"none"
,
virSecurityDriverProbeNop
,
.
probe
=
virSecurityDriverProbeNop
,
virSecurityDriverOpenNop
,
.
open
=
virSecurityDriverOpenNop
,
virSecurityDriverCloseNop
,
.
close
=
virSecurityDriverCloseNop
,
virSecurityDriverGetModelNop
,
.
getModel
=
virSecurityDriverGetModelNop
,
virSecurityDriverGetDOINop
,
.
getDOI
=
virSecurityDriverGetDOINop
,
virSecurityDomainVerifyNop
,
.
domainSecurityVerify
=
virSecurityDomainVerifyNop
,
virSecurityDomainSetImageLabelNop
,
.
domainSetSecurityImageLabel
=
virSecurityDomainSetImageLabelNop
,
virSecurityDomainRestoreImageLabelNop
,
.
domainRestoreSecurityImageLabel
=
virSecurityDomainRestoreImageLabelNop
,
virSecurityDomainSetDaemonSocketLabelNop
,
.
domainSetSecurityDaemonSocketLabel
=
virSecurityDomainSetDaemonSocketLabelNop
,
virSecurityDomainSetSocketLabelNop
,
.
domainSetSecuritySocketLabel
=
virSecurityDomainSetSocketLabelNop
,
virSecurityDomainClearSocketLabelNop
,
.
domainClearSecuritySocketLabel
=
virSecurityDomainClearSocketLabelNop
,
virSecurityDomainGenLabelNop
,
.
domainGenSecurityLabel
=
virSecurityDomainGenLabelNop
,
virSecurityDomainReserveLabelNop
,
.
domainReserveSecurityLabel
=
virSecurityDomainReserveLabelNop
,
virSecurityDomainReleaseLabelNop
,
.
domainReleaseSecurityLabel
=
virSecurityDomainReleaseLabelNop
,
virSecurityDomainGetProcessLabelNop
,
.
domainGetSecurityProcessLabel
=
virSecurityDomainGetProcessLabelNop
,
virSecurityDomainSetProcessLabelNop
,
.
domainSetSecurityProcessLabel
=
virSecurityDomainSetProcessLabelNop
,
virSecurityDomainSetAllLabelNop
,
.
domainSetSecurityAllLabel
=
virSecurityDomainSetAllLabelNop
,
virSecurityDomainRestoreAllLabelNop
,
.
domainRestoreSecurityAllLabel
=
virSecurityDomainRestoreAllLabelNop
,
virSecurityDomainSetHostdevLabelNop
,
.
domainSetSecurityHostdevLabel
=
virSecurityDomainSetHostdevLabelNop
,
virSecurityDomainRestoreHostdevLabelNop
,
.
domainRestoreSecurityHostdevLabel
=
virSecurityDomainRestoreHostdevLabelNop
,
virSecurityDomainSetSavedStateLabelNop
,
.
domainSetSavedStateLabel
=
virSecurityDomainSetSavedStateLabelNop
,
virSecurityDomainRestoreSavedStateLabelNop
,
.
domainRestoreSavedStateLabel
=
virSecurityDomainRestoreSavedStateLabelNop
,
virSecurityDomainSetFDLabelNop
,
.
domainSetSecurityImageFDLabel
=
virSecurityDomainSetFDLabelNop
,
virSecurityDomainGetMountOptionsNop
,
.
domainGetSecurityMountOptions
=
virSecurityDomainGetMountOptionsNop
,
};
};
src/security/security_selinux.c
浏览文件 @
4ab0d6c4
...
@@ -1591,41 +1591,41 @@ static char *SELinuxGetSecurityMountOptions(virSecurityManagerPtr mgr,
...
@@ -1591,41 +1591,41 @@ static char *SELinuxGetSecurityMountOptions(virSecurityManagerPtr mgr,
}
}
virSecurityDriver
virSecurityDriverSELinux
=
{
virSecurityDriver
virSecurityDriverSELinux
=
{
sizeof
(
virSecuritySELinuxData
),
.
privateDataLen
=
sizeof
(
virSecuritySELinuxData
),
SECURITY_SELINUX_NAME
,
.
name
=
SECURITY_SELINUX_NAME
,
SELinuxSecurityDriverProbe
,
.
probe
=
SELinuxSecurityDriverProbe
,
SELinuxSecurityDriverOpen
,
.
open
=
SELinuxSecurityDriverOpen
,
SELinuxSecurityDriverClose
,
.
close
=
SELinuxSecurityDriverClose
,
SELinuxSecurityGetModel
,
.
getModel
=
SELinuxSecurityGetModel
,
SELinuxSecurityGetDOI
,
.
getDOI
=
SELinuxSecurityGetDOI
,
SELinuxSecurityVerify
,
.
domainSecurityVerify
=
SELinuxSecurityVerify
,
SELinuxSetSecurityImageLabel
,
.
domainSetSecurityImageLabel
=
SELinuxSetSecurityImageLabel
,
SELinuxRestoreSecurityImageLabel
,
.
domainRestoreSecurityImageLabel
=
SELinuxRestoreSecurityImageLabel
,
SELinuxSetSecurityDaemonSocketLabel
,
.
domainSetSecurityDaemonSocketLabel
=
SELinuxSetSecurityDaemonSocketLabel
,
SELinuxSetSecuritySocketLabel
,
.
domainSetSecuritySocketLabel
=
SELinuxSetSecuritySocketLabel
,
SELinuxClearSecuritySocketLabel
,
.
domainClearSecuritySocketLabel
=
SELinuxClearSecuritySocketLabel
,
SELinuxGenSecurityLabel
,
.
domainGenSecurityLabel
=
SELinuxGenSecurityLabel
,
SELinuxReserveSecurityLabel
,
.
domainReserveSecurityLabel
=
SELinuxReserveSecurityLabel
,
SELinuxReleaseSecurityLabel
,
.
domainReleaseSecurityLabel
=
SELinuxReleaseSecurityLabel
,
SELinuxGetSecurityProcessLabel
,
.
domainGetSecurityProcessLabel
=
SELinuxGetSecurityProcessLabel
,
SELinuxSetSecurityProcessLabel
,
.
domainSetSecurityProcessLabel
=
SELinuxSetSecurityProcessLabel
,
SELinuxSetSecurityAllLabel
,
.
domainSetSecurityAllLabel
=
SELinuxSetSecurityAllLabel
,
SELinuxRestoreSecurityAllLabel
,
.
domainRestoreSecurityAllLabel
=
SELinuxRestoreSecurityAllLabel
,
SELinuxSetSecurityHostdevLabel
,
.
domainSetSecurityHostdevLabel
=
SELinuxSetSecurityHostdevLabel
,
SELinuxRestoreSecurityHostdevLabel
,
.
domainRestoreSecurityHostdevLabel
=
SELinuxRestoreSecurityHostdevLabel
,
SELinuxSetSavedStateLabel
,
.
domainSetSavedStateLabel
=
SELinuxSetSavedStateLabel
,
SELinuxRestoreSavedStateLabel
,
.
domainRestoreSavedStateLabel
=
SELinuxRestoreSavedStateLabel
,
SELinuxSetImageFDLabel
,
.
domainSetSecurityImageFDLabel
=
SELinuxSetImageFDLabel
,
SELinuxGetSecurityMountOptions
,
.
domainGetSecurityMountOptions
=
SELinuxGetSecurityMountOptions
,
};
};
src/security/security_stack.c
浏览文件 @
4ab0d6c4
...
@@ -409,41 +409,41 @@ static char *virSecurityStackGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE
...
@@ -409,41 +409,41 @@ static char *virSecurityStackGetMountOptions(virSecurityManagerPtr mgr ATTRIBUTE
}
}
virSecurityDriver
virSecurityDriverStack
=
{
virSecurityDriver
virSecurityDriverStack
=
{
sizeof
(
virSecurityStackData
),
.
privateDataLen
=
sizeof
(
virSecurityStackData
),
"stack"
,
.
name
=
"stack"
,
virSecurityStackProbe
,
.
probe
=
virSecurityStackProbe
,
virSecurityStackOpen
,
.
open
=
virSecurityStackOpen
,
virSecurityStackClose
,
.
close
=
virSecurityStackClose
,
virSecurityStackGetModel
,
.
getModel
=
virSecurityStackGetModel
,
virSecurityStackGetDOI
,
.
getDOI
=
virSecurityStackGetDOI
,
virSecurityStackVerify
,
.
domainSecurityVerify
=
virSecurityStackVerify
,
virSecurityStackSetSecurityImageLabel
,
.
domainSetSecurityImageLabel
=
virSecurityStackSetSecurityImageLabel
,
virSecurityStackRestoreSecurityImageLabel
,
.
domainRestoreSecurityImageLabel
=
virSecurityStackRestoreSecurityImageLabel
,
virSecurityStackSetDaemonSocketLabel
,
.
domainSetSecurityDaemonSocketLabel
=
virSecurityStackSetDaemonSocketLabel
,
virSecurityStackSetSocketLabel
,
.
domainSetSecuritySocketLabel
=
virSecurityStackSetSocketLabel
,
virSecurityStackClearSocketLabel
,
.
domainClearSecuritySocketLabel
=
virSecurityStackClearSocketLabel
,
virSecurityStackGenLabel
,
.
domainGenSecurityLabel
=
virSecurityStackGenLabel
,
virSecurityStackReserveLabel
,
.
domainReserveSecurityLabel
=
virSecurityStackReserveLabel
,
virSecurityStackReleaseLabel
,
.
domainReleaseSecurityLabel
=
virSecurityStackReleaseLabel
,
virSecurityStackGetProcessLabel
,
.
domainGetSecurityProcessLabel
=
virSecurityStackGetProcessLabel
,
virSecurityStackSetProcessLabel
,
.
domainSetSecurityProcessLabel
=
virSecurityStackSetProcessLabel
,
virSecurityStackSetSecurityAllLabel
,
.
domainSetSecurityAllLabel
=
virSecurityStackSetSecurityAllLabel
,
virSecurityStackRestoreSecurityAllLabel
,
.
domainRestoreSecurityAllLabel
=
virSecurityStackRestoreSecurityAllLabel
,
virSecurityStackSetSecurityHostdevLabel
,
.
domainSetSecurityHostdevLabel
=
virSecurityStackSetSecurityHostdevLabel
,
virSecurityStackRestoreSecurityHostdevLabel
,
.
domainRestoreSecurityHostdevLabel
=
virSecurityStackRestoreSecurityHostdevLabel
,
virSecurityStackSetSavedStateLabel
,
.
domainSetSavedStateLabel
=
virSecurityStackSetSavedStateLabel
,
virSecurityStackRestoreSavedStateLabel
,
.
domainRestoreSavedStateLabel
=
virSecurityStackRestoreSavedStateLabel
,
virSecurityStackSetImageFDLabel
,
.
domainSetSecurityImageFDLabel
=
virSecurityStackSetImageFDLabel
,
virSecurityStackGetMountOptions
,
.
domainGetSecurityMountOptions
=
virSecurityStackGetMountOptions
,
};
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录