Lines Matching defs:path
62 static int nodups_specs(struct saved_data *data, const char *path)
82 path, curr_spec->regex_str,
89 path, curr_spec->regex_str);
98 struct selabel_handle *rec, const char *path)
106 rc = process_line(rec, path, prefix, line_buf, ++lineno);
117 const char *path)
338 path, spec->lr.ctx_raw);
462 static FILE *open_file(const char *path, const char *suffix,
471 * Rolling append of suffix. Try to open with path.suffix then the
472 * next as path.suffix.suffix and so forth.
479 rc = snprintf(stack_path, sizeof(stack_path), "%s", path);
488 path = rolling_append(stack_path, fdetails[i].suffix,
490 if (!path)
493 rc = stat(path, &fdetails[i].sb);
499 strcpy(save_path, path);
519 strcpy(save_path, path);
532 static int process_file(const char *path, const char *suffix,
548 fp = open_file(path, suffix, found_path, sizeof(found_path),
605 static int selabel_subs_init(const char *path, struct selabel_digest *digest,
609 FILE *cfg = fopen(path, "re");
666 if (digest_add_specfile(digest, cfg, NULL, sb.st_size, path) < 0)
782 const char *path = NULL;
790 path = opts[n].value;
803 if (!path) {
813 path = selinux_file_context_path();
815 snprintf(subs_file, sizeof(subs_file), "%s.subs_dist", path);
820 snprintf(subs_file, sizeof(subs_file), "%s.subs", path);
829 if (!path)
832 rec->spec_file = strdup(path);
837 status = process_file(path, NULL, rec, prefix, rec->digest);
842 status = nodups_specs(data, path);
848 status = process_file(path, "homedirs", rec, prefix,
853 status = process_file(path, "local", rec, prefix,