@@ -3,6 +3,7 @@
#include <errno.h>
#include <stdio.h>
#include "selinux_internal.h"
+#include "matchpathcon_internal.h"
#include "label_internal.h"
#include "callbacks.h"
#include <limits.h>
@@ -317,7 +318,7 @@ void matchpathcon_filespec_destroy(void)
static void matchpathcon_thread_destructor(void __attribute__((unused)) *ptr)
{
- matchpathcon_fini();
+ matchpathcon_fini2();
}
void __attribute__((destructor)) matchpathcon_lib_destructor(void);
@@ -357,7 +358,7 @@ int matchpathcon_init(const char *path)
return matchpathcon_init_prefix(path, NULL);
}
-void matchpathcon_fini(void)
+void matchpathcon_fini2(void)
{
free_array_elts();
@@ -367,6 +368,11 @@ void matchpathcon_fini(void)
}
}
+void matchpathcon_fini(void)
+{
+ matchpathcon_fini2();
+}
+
/*
* We do not want to resolve a symlink to a real path if it is the final
* component of the name. Thus we split the pathname on the last "/" and
new file mode 100644
@@ -0,0 +1,6 @@
+#ifndef SRC_MATCHPATHCON_INTERNAL_H_
+#define SRC_MATCHPATHCON_INTERNAL_H_
+
+void matchpathcon_fini2(void);
+
+#endif