Lines Matching refs:cb_data
113 struct callback_data *cb_data = (struct callback_data *)args; in output_avrule() local
115 if (key->source_type != cb_data->attr) in output_avrule()
121 render_key(key, cb_data->policy, cb_data->fp); in output_avrule()
122 render_access_mask(datum->data, key, cb_data->policy, cb_data->fp); in output_avrule()
123 fprintf(cb_data->fp, "\n"); in output_avrule()
130 struct callback_data *cb_data = (struct callback_data *)datap; in attribute_callback() local
134 fprintf(cb_data->fp, "[Attribute %s]\n", key); in attribute_callback()
135 cb_data->attr = t->s.value; in attribute_callback()
136 if (avtab_map(&cb_data->policy->te_avtab, output_avrule, cb_data) < 0) in attribute_callback()
138 if (avtab_map(&cb_data->policy->te_cond_avtab, output_avrule, cb_data) < 0) in attribute_callback()
197 struct callback_data cb_data; in main() local
220 cb_data.policy = p; in main()
221 cb_data.fp = fp; in main()
223 if (hashtab_map(p->p_types.table, attribute_callback, &cb_data)) { in main()