check_restr
bool_t check_restr(struct base *, const char *);
if (check_restr(bp, path) == 0)
restr = check_restr(cur_base, name);