Lines Matching refs:rec
83 static int process_line(struct selabel_handle *rec,
89 struct saved_data *data = (struct saved_data *)rec->data;
128 if (rec->validating) {
129 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) {
143 static int init(struct selabel_handle *rec, const struct selinux_opt *opts,
146 struct saved_data *data = (struct saved_data *)rec->data;
188 if (process_line(rec, path, line_buf, pass, ++lineno)
217 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path);
221 digest_gen_hash(rec->digest);
231 static void closef(struct selabel_handle *rec)
233 struct saved_data *data = (struct saved_data *)rec->data;
250 static struct selabel_lookup_rec *property_lookup(struct selabel_handle *rec,
254 struct saved_data *data = (struct saved_data *)rec->data;
285 static struct selabel_lookup_rec *service_lookup(struct selabel_handle *rec,
288 struct saved_data *data = (struct saved_data *)rec->data;
317 static void stats(struct selabel_handle __attribute__((unused)) *rec)
322 int selabel_property_init(struct selabel_handle *rec,
332 rec->data = data;
333 rec->func_close = &closef;
334 rec->func_stats = &stats;
335 rec->func_lookup = &property_lookup;
337 return init(rec, opts, nopts);
340 int selabel_service_init(struct selabel_handle *rec,
349 rec->data = data;
350 rec->func_close = &closef;
351 rec->func_stats = &stats;
352 rec->func_lookup = &service_lookup;
354 return init(rec, opts, nopts);