Lines Matching refs:iface

14 			     ocontext_t ** iface, const sepol_iface_t * record)  in iface_from_record()  argument
47 *iface = tmp_iface; in iface_from_record()
68 ocontext_t * iface, sepol_iface_t ** record) in iface_to_record() argument
71 char *name = iface->u.name; in iface_to_record()
72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record()
73 context_struct_t *msgcon = &iface->context[1]; in iface_to_record()
172 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify() local
177 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify()
186 iface->next = c->next; in sepol_iface_modify()
188 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
190 prev->next = 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()
209 if (iface != NULL) { in sepol_iface_modify()
210 free(iface->u.name); in sepol_iface_modify()
211 context_destroy(&iface->context[0]); in sepol_iface_modify()
212 context_destroy(&iface->context[1]); in sepol_iface_modify()
213 free(iface); in sepol_iface_modify()
239 int (*fn) (const sepol_iface_t * iface, in sepol_iface_iterate()
245 sepol_iface_t *iface = NULL; in sepol_iface_iterate() local
251 if (iface_to_record(handle, policydb, c, &iface) < 0) in sepol_iface_iterate()
255 status = fn(iface, arg); in sepol_iface_iterate()
259 sepol_iface_free(iface); in sepol_iface_iterate()
260 iface = NULL; in sepol_iface_iterate()
271 sepol_iface_free(iface); in sepol_iface_iterate()