selinux: kill mac_selinux_free()

It was a redundant wrapper around freecon.

test-selinux needs to be adjusted because it now needs to be linked to
libselinux, instead of pulling it in via libshared.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-06-12 15:21:21 +02:00
parent 5c672e90a6
commit 6623c64a02
7 changed files with 15 additions and 20 deletions
+1 -1
View File
@@ -1615,7 +1615,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(Socket *, socket_close_fds, NULL);
static int socket_open_fds(Socket *orig_s) {
_cleanup_(socket_close_fdsp) Socket *s = orig_s;
_cleanup_(mac_selinux_freep) char *label = NULL;
_cleanup_freecon_ char *label = NULL;
bool know_label = false;
int r;