• Home
  • Raw
  • Download

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()
171 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify() local
176 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify()
185 iface->next = c->next; in sepol_iface_modify()
187 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
189 prev->next = iface; in sepol_iface_modify()
201 iface->next = policydb->ocontexts[OCON_NETIF]; in sepol_iface_modify()
202 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
208 if (iface != NULL) { in sepol_iface_modify()
209 free(iface->u.name); in sepol_iface_modify()
210 context_destroy(&iface->context[0]); in sepol_iface_modify()
211 context_destroy(&iface->context[1]); in sepol_iface_modify()
212 free(iface); in sepol_iface_modify()
237 int (*fn) (const sepol_iface_t * iface, in sepol_iface_iterate()
243 sepol_iface_t *iface = NULL; in sepol_iface_iterate() local
249 if (iface_to_record(handle, policydb, c, &iface) < 0) in sepol_iface_iterate()
253 status = fn(iface, arg); in sepol_iface_iterate()
257 sepol_iface_free(iface); in sepol_iface_iterate()
258 iface = NULL; in sepol_iface_iterate()
269 sepol_iface_free(iface); in sepol_iface_iterate()