checkpath_allow_file
int checkpath_allow_file(const char *, char resolved_path[]);
if (checkpath_allow_file(name, mntpath) != 0) {