提交 077bdba5 编写于 作者: J Ján Tomko

security_stack: remove extra Security from function names

Many of the functions follow the pattern:
virSecurity.*Security.*Label

Remove the second 'Security' from the names, it should be
obvious that the virSecurity* functions deal with security
labels even without it.
上级 ba9285b3
...@@ -222,7 +222,7 @@ virSecurityStackReserveLabel(virSecurityManagerPtr mgr, ...@@ -222,7 +222,7 @@ virSecurityStackReserveLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackSetSecurityDiskLabel(virSecurityManagerPtr mgr, virSecurityStackSetDiskLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virDomainDiskDefPtr disk) virDomainDiskDefPtr disk)
{ {
...@@ -240,7 +240,7 @@ virSecurityStackSetSecurityDiskLabel(virSecurityManagerPtr mgr, ...@@ -240,7 +240,7 @@ virSecurityStackSetSecurityDiskLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackRestoreSecurityDiskLabel(virSecurityManagerPtr mgr, virSecurityStackRestoreDiskLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virDomainDiskDefPtr disk) virDomainDiskDefPtr disk)
{ {
...@@ -258,7 +258,7 @@ virSecurityStackRestoreSecurityDiskLabel(virSecurityManagerPtr mgr, ...@@ -258,7 +258,7 @@ virSecurityStackRestoreSecurityDiskLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackSetSecurityHostdevLabel(virSecurityManagerPtr mgr, virSecurityStackSetHostdevLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virDomainHostdevDefPtr dev, virDomainHostdevDefPtr dev,
const char *vroot) const char *vroot)
...@@ -281,7 +281,7 @@ virSecurityStackSetSecurityHostdevLabel(virSecurityManagerPtr mgr, ...@@ -281,7 +281,7 @@ virSecurityStackSetSecurityHostdevLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackRestoreSecurityHostdevLabel(virSecurityManagerPtr mgr, virSecurityStackRestoreHostdevLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virDomainHostdevDefPtr dev, virDomainHostdevDefPtr dev,
const char *vroot) const char *vroot)
...@@ -303,7 +303,7 @@ virSecurityStackRestoreSecurityHostdevLabel(virSecurityManagerPtr mgr, ...@@ -303,7 +303,7 @@ virSecurityStackRestoreSecurityHostdevLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackSetSecurityAllLabel(virSecurityManagerPtr mgr, virSecurityStackSetAllLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
const char *stdin_path) const char *stdin_path)
{ {
...@@ -321,7 +321,7 @@ virSecurityStackSetSecurityAllLabel(virSecurityManagerPtr mgr, ...@@ -321,7 +321,7 @@ virSecurityStackSetSecurityAllLabel(virSecurityManagerPtr mgr,
static int static int
virSecurityStackRestoreSecurityAllLabel(virSecurityManagerPtr mgr, virSecurityStackRestoreAllLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
bool migrated) bool migrated)
{ {
...@@ -565,7 +565,7 @@ virSecurityStackGetBaseLabel(virSecurityManagerPtr mgr, int virtType) ...@@ -565,7 +565,7 @@ virSecurityStackGetBaseLabel(virSecurityManagerPtr mgr, int virtType)
} }
static int static int
virSecurityStackSetSecurityImageLabel(virSecurityManagerPtr mgr, virSecurityStackSetImageLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virStorageSourcePtr src) virStorageSourcePtr src)
{ {
...@@ -582,7 +582,7 @@ virSecurityStackSetSecurityImageLabel(virSecurityManagerPtr mgr, ...@@ -582,7 +582,7 @@ virSecurityStackSetSecurityImageLabel(virSecurityManagerPtr mgr,
} }
static int static int
virSecurityStackRestoreSecurityImageLabel(virSecurityManagerPtr mgr, virSecurityStackRestoreImageLabel(virSecurityManagerPtr mgr,
virDomainDefPtr vm, virDomainDefPtr vm,
virStorageSourcePtr src) virStorageSourcePtr src)
{ {
...@@ -631,11 +631,11 @@ virSecurityDriver virSecurityDriverStack = { ...@@ -631,11 +631,11 @@ virSecurityDriver virSecurityDriverStack = {
.domainSecurityVerify = virSecurityStackVerify, .domainSecurityVerify = virSecurityStackVerify,
.domainSetSecurityDiskLabel = virSecurityStackSetSecurityDiskLabel, .domainSetSecurityDiskLabel = virSecurityStackSetDiskLabel,
.domainRestoreSecurityDiskLabel = virSecurityStackRestoreSecurityDiskLabel, .domainRestoreSecurityDiskLabel = virSecurityStackRestoreDiskLabel,
.domainSetSecurityImageLabel = virSecurityStackSetSecurityImageLabel, .domainSetSecurityImageLabel = virSecurityStackSetImageLabel,
.domainRestoreSecurityImageLabel = virSecurityStackRestoreSecurityImageLabel, .domainRestoreSecurityImageLabel = virSecurityStackRestoreImageLabel,
.domainSetSecurityDaemonSocketLabel = virSecurityStackSetDaemonSocketLabel, .domainSetSecurityDaemonSocketLabel = virSecurityStackSetDaemonSocketLabel,
.domainSetSecuritySocketLabel = virSecurityStackSetSocketLabel, .domainSetSecuritySocketLabel = virSecurityStackSetSocketLabel,
...@@ -649,11 +649,11 @@ virSecurityDriver virSecurityDriverStack = { ...@@ -649,11 +649,11 @@ virSecurityDriver virSecurityDriverStack = {
.domainSetSecurityProcessLabel = virSecurityStackSetProcessLabel, .domainSetSecurityProcessLabel = virSecurityStackSetProcessLabel,
.domainSetSecurityChildProcessLabel = virSecurityStackSetChildProcessLabel, .domainSetSecurityChildProcessLabel = virSecurityStackSetChildProcessLabel,
.domainSetSecurityAllLabel = virSecurityStackSetSecurityAllLabel, .domainSetSecurityAllLabel = virSecurityStackSetAllLabel,
.domainRestoreSecurityAllLabel = virSecurityStackRestoreSecurityAllLabel, .domainRestoreSecurityAllLabel = virSecurityStackRestoreAllLabel,
.domainSetSecurityHostdevLabel = virSecurityStackSetSecurityHostdevLabel, .domainSetSecurityHostdevLabel = virSecurityStackSetHostdevLabel,
.domainRestoreSecurityHostdevLabel = virSecurityStackRestoreSecurityHostdevLabel, .domainRestoreSecurityHostdevLabel = virSecurityStackRestoreHostdevLabel,
.domainSetSavedStateLabel = virSecurityStackSetSavedStateLabel, .domainSetSavedStateLabel = virSecurityStackSetSavedStateLabel,
.domainRestoreSavedStateLabel = virSecurityStackRestoreSavedStateLabel, .domainRestoreSavedStateLabel = virSecurityStackRestoreSavedStateLabel,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册