Lines Matching defs:policydb
9 #include <sepol/policydb/policydb.h>
15 const policydb_t * policydb,
56 if (context_from_record(handle, policydb, &tmp_con,
84 const policydb_t * policydb,
129 if (context_to_record(handle, policydb, con, &tmp_con) < 0)
153 const policydb_t *policydb = &p->p;
155 head = policydb->ocontexts[OCON_NODE];
159 head = policydb->ocontexts[OCON_NODE6];
175 const policydb_t *policydb = &p->p;
186 head = policydb->ocontexts[OCON_NODE];
202 head = policydb->ocontexts[OCON_NODE6];
235 const policydb_t *policydb = &p->p;
246 head = policydb->ocontexts[OCON_NODE];
254 if (node_to_record(handle, policydb,
265 head = policydb->ocontexts[OCON_NODE6];
273 if (node_to_record(handle, policydb,
301 policydb_t *policydb = &p->p;
309 if (node_from_record(handle, policydb, &node, data) < 0)
317 node->next = policydb->ocontexts[OCON_NODE];
318 policydb->ocontexts[OCON_NODE] = node;
324 node->next = policydb->ocontexts[OCON_NODE6];
325 policydb->ocontexts[OCON_NODE6] = node;
351 const policydb_t *policydb = &p->p;
356 head = policydb->ocontexts[OCON_NODE];
358 if (node_to_record(handle, policydb, c, SEPOL_PROTO_IP4, &node)
375 head = policydb->ocontexts[OCON_NODE6];
377 if (node_to_record(handle, policydb, c, SEPOL_PROTO_IP6, &node)