mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00: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 */
|
/* TODO: verify DOI */
|
||||||
virSecurityLabelDefPtr secdef;
|
virSecurityLabelDefPtr secdef;
|
||||||
context_t execcon = NULL;
|
|
||||||
context_t proccon = NULL;
|
|
||||||
security_context_t scon = NULL;
|
security_context_t scon = NULL;
|
||||||
char *str = NULL;
|
char *str = NULL;
|
||||||
int rc = -1;
|
int rc = -1;
|
||||||
@ -1678,8 +1676,6 @@ done:
|
|||||||
|
|
||||||
if (security_getenforce() != 1)
|
if (security_getenforce() != 1)
|
||||||
rc = 0;
|
rc = 0;
|
||||||
if (execcon) context_free(execcon);
|
|
||||||
if (proccon) context_free(proccon);
|
|
||||||
freecon(scon);
|
freecon(scon);
|
||||||
VIR_FREE(str);
|
VIR_FREE(str);
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user