mirror of
https://github.com/libvirt/libvirt.git
synced 2025-01-08 23:24:01 -06:00
selinux: remove unused variables in socket labelling
This commit is contained in:
parent
89b63f0ad4
commit
d37a3a1d6c
@ -1634,8 +1634,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;
|
||||
@ -1678,8 +1676,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