mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
security: Drop virSecurity(DAC|SELinux)RestoreImageLabelSingle()
Each one only has a single, trivial caller. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
931990b7c2
commit
94028ebf48
@ -972,10 +972,10 @@ virSecurityDACSetImageLabel(virSecurityManager *mgr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virSecurityDACRestoreImageLabelSingle(virSecurityManager *mgr,
|
virSecurityDACRestoreImageLabelInt(virSecurityManager *mgr,
|
||||||
virDomainDef *def,
|
virDomainDef *def,
|
||||||
virStorageSource *src,
|
virStorageSource *src,
|
||||||
bool migrated)
|
bool migrated)
|
||||||
{
|
{
|
||||||
virSecurityDACData *priv = virSecurityManagerGetPrivateData(mgr);
|
virSecurityDACData *priv = virSecurityManagerGetPrivateData(mgr);
|
||||||
virSecurityLabelDef *secdef;
|
virSecurityLabelDef *secdef;
|
||||||
@ -1047,19 +1047,6 @@ virSecurityDACRestoreImageLabelSingle(virSecurityManager *mgr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
|
||||||
virSecurityDACRestoreImageLabelInt(virSecurityManager *mgr,
|
|
||||||
virDomainDef *def,
|
|
||||||
virStorageSource *src,
|
|
||||||
bool migrated)
|
|
||||||
{
|
|
||||||
if (virSecurityDACRestoreImageLabelSingle(mgr, def, src, migrated) < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virSecurityDACRestoreImageLabel(virSecurityManager *mgr,
|
virSecurityDACRestoreImageLabel(virSecurityManager *mgr,
|
||||||
virDomainDef *def,
|
virDomainDef *def,
|
||||||
|
@ -1774,10 +1774,10 @@ virSecuritySELinuxRestoreTPMFileLabelInt(virSecurityManager *mgr,
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virSecuritySELinuxRestoreImageLabelSingle(virSecurityManager *mgr,
|
virSecuritySELinuxRestoreImageLabelInt(virSecurityManager *mgr,
|
||||||
virDomainDef *def,
|
virDomainDef *def,
|
||||||
virStorageSource *src,
|
virStorageSource *src,
|
||||||
bool migrated)
|
bool migrated)
|
||||||
{
|
{
|
||||||
virSecurityLabelDef *seclabel;
|
virSecurityLabelDef *seclabel;
|
||||||
virSecurityDeviceLabelDef *disk_seclabel;
|
virSecurityDeviceLabelDef *disk_seclabel;
|
||||||
@ -1863,19 +1863,6 @@ virSecuritySELinuxRestoreImageLabelSingle(virSecurityManager *mgr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
|
||||||
virSecuritySELinuxRestoreImageLabelInt(virSecurityManager *mgr,
|
|
||||||
virDomainDef *def,
|
|
||||||
virStorageSource *src,
|
|
||||||
bool migrated)
|
|
||||||
{
|
|
||||||
if (virSecuritySELinuxRestoreImageLabelSingle(mgr, def, src, migrated) < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virSecuritySELinuxRestoreImageLabel(virSecurityManager *mgr,
|
virSecuritySELinuxRestoreImageLabel(virSecurityManager *mgr,
|
||||||
virDomainDef *def,
|
virDomainDef *def,
|
||||||
|
Loading…
Reference in New Issue
Block a user