mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-28 00:25:23 +00:00
selinux: remove unused variables in socket labelling
(cherry picked from commit d37a3a1d6c
)
This commit is contained in:
parent
2716c78c3f
commit
4c2a38d1ed
@ -1626,8 +1626,6 @@ virSecuritySELinuxSetSecurityDaemonSocketLabel(virSecurityManagerPtr mgr,
|
||||
{
|
||||
/* TODO: verify DOI */
|
||||
virSecurityLabelDefPtr secdef;
|
||||
context_t execcon = NULL;
|
||||
context_t proccon = NULL;
|
||||
security_context_t scon = NULL;
|
||||
char *str = NULL;
|
||||
int rc = -1;
|
||||
@ -1670,8 +1668,6 @@ done:
|
||||
|
||||
if (security_getenforce() != 1)
|
||||
rc = 0;
|
||||
if (execcon) context_free(execcon);
|
||||
if (proccon) context_free(proccon);
|
||||
freecon(scon);
|
||||
VIR_FREE(str);
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user