mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +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
|
||||
virSecurityDACRestoreImageLabelSingle(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
virStorageSource *src,
|
||||
bool migrated)
|
||||
virSecurityDACRestoreImageLabelInt(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
virStorageSource *src,
|
||||
bool migrated)
|
||||
{
|
||||
virSecurityDACData *priv = virSecurityManagerGetPrivateData(mgr);
|
||||
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
|
||||
virSecurityDACRestoreImageLabel(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
|
@ -1774,10 +1774,10 @@ virSecuritySELinuxRestoreTPMFileLabelInt(virSecurityManager *mgr,
|
||||
|
||||
|
||||
static int
|
||||
virSecuritySELinuxRestoreImageLabelSingle(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
virStorageSource *src,
|
||||
bool migrated)
|
||||
virSecuritySELinuxRestoreImageLabelInt(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
virStorageSource *src,
|
||||
bool migrated)
|
||||
{
|
||||
virSecurityLabelDef *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
|
||||
virSecuritySELinuxRestoreImageLabel(virSecurityManager *mgr,
|
||||
virDomainDef *def,
|
||||
|
Loading…
Reference in New Issue
Block a user