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