@@ -433,7 +433,11 @@ out:
return rc;
}
-int matchpathcon(const char *path, mode_t mode, char ** con)
+int matchpathcon(const char *path, mode_t mode, char ** con) {
+ return matchpathcon2(path, mode, con);
+}
+
+int matchpathcon2(const char *path, mode_t mode, char ** con)
{
char stackpath[PATH_MAX + 1];
char *p = NULL;
@@ -456,7 +460,7 @@ int matchpathcon(const char *path, mode_t mode, char ** con)
int matchpathcon_index(const char *name, mode_t mode, char ** con)
{
- int i = matchpathcon(name, mode, con);
+ int i = matchpathcon2(name, mode, con);
if (i < 0)
return -1;
@@ -3,4 +3,6 @@
void matchpathcon_fini2(void);
+int matchpathcon2(const char *path, mode_t mode, char ** con);
+
#endif