Lines Matching refs:rec
34 unsigned lineno, struct selabel_handle *rec)
36 struct saved_data *data = (struct saved_data *)rec->data;
70 static int init(struct selabel_handle *rec, const struct selinux_opt *opts,
74 struct saved_data *data = (struct saved_data *)rec->data;
103 rec->spec_file = strdup(path);
119 if (process_line(path, line_buf, pass, ++lineno, rec))
138 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path);
142 digest_gen_hash(rec->digest);
152 static void close(struct selabel_handle *rec)
154 struct saved_data *data = (struct saved_data *)rec->data;
171 static struct selabel_lookup_rec *lookup(struct selabel_handle *rec,
175 struct saved_data *data = (struct saved_data *)rec->data;
196 static void stats(struct selabel_handle *rec)
198 struct saved_data *data = (struct saved_data *)rec->data;
208 int selabel_media_init(struct selabel_handle *rec,
219 rec->data = data;
220 rec->func_close = &close;
221 rec->func_lookup = &lookup;
222 rec->func_stats = &stats;
224 return init(rec, opts, nopts);