Lines Matching refs:policydb
13 const policydb_t * policydb, in iface_from_record() argument
30 if (context_from_record(handle, policydb, in iface_from_record()
39 if (context_from_record(handle, policydb, in iface_from_record()
67 const policydb_t * policydb, in iface_to_record() argument
84 if (context_to_record(handle, policydb, ifcon, &tmp_con) < 0) in iface_to_record()
91 if (context_to_record(handle, policydb, msgcon, &tmp_con) < 0) in iface_to_record()
114 const policydb_t *policydb = &p->p; in sepol_iface_exists() local
120 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_exists()
139 const policydb_t *policydb = &p->p; in sepol_iface_query() local
145 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_query()
149 if (iface_to_record(handle, policydb, c, response) < 0) in sepol_iface_query()
171 policydb_t *policydb = &p->p; in sepol_iface_modify() local
177 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify()
181 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_modify()
188 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
202 iface->next = policydb->ocontexts[OCON_NETIF]; in sepol_iface_modify()
203 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
225 const policydb_t *policydb = &p->p; in sepol_iface_count() local
227 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_count()
243 const policydb_t *policydb = &p->p; in sepol_iface_iterate() local
247 head = policydb->ocontexts[OCON_NETIF]; in sepol_iface_iterate()
251 if (iface_to_record(handle, policydb, c, &iface) < 0) in sepol_iface_iterate()