- return;
-
- setsockcreatecon(NULL);
-#endif
-}
-
-void mac_selinux_free(const char *label) {
-
-#ifdef HAVE_SELINUX
- if (!mac_selinux_use())
- return;
-
- freecon((security_context_t) label);
-#endif
-}
-
-int mac_selinux_mkdir(const char *path, mode_t mode) {
- int r = 0;
-
-#ifdef HAVE_SELINUX
- /* Creates a directory and labels it according to the SELinux policy */
- _cleanup_security_context_free_ security_context_t fcon = NULL;
-
- if (!label_hnd)