• Home
  • Raw
  • Download

Lines Matching refs:port

50 			    ocontext_t ** port, const sepol_port_t * data)  in port_from_record()  argument
69 tmp_port->u.port.protocol = tmp_proto; in port_from_record()
72 tmp_port->u.port.low_port = low; in port_from_record()
73 tmp_port->u.port.high_port = high; in port_from_record()
74 if (tmp_port->u.port.low_port > tmp_port->u.port.high_port) { in port_from_record()
76 tmp_port->u.port.low_port, tmp_port->u.port.high_port); in port_from_record()
89 *port = tmp_port; in port_from_record()
109 ocontext_t * port, sepol_port_t ** record) in port_to_record() argument
112 int proto = port->u.port.protocol; in port_to_record()
113 int low = port->u.port.low_port; in port_to_record()
114 int high = port->u.port.high_port; in port_to_record()
115 context_struct_t *con = &port->context[0]; in port_to_record()
186 int proto2 = c->u.port.protocol; in sepol_port_exists()
187 int low2 = c->u.port.low_port; in sepol_port_exists()
188 int high2 = c->u.port.high_port; in sepol_port_exists()
224 int proto2 = c->u.port.protocol; in sepol_port_query()
225 int low2 = c->u.port.low_port; in sepol_port_query()
226 int high2 = c->u.port.high_port; in sepol_port_query()
252 ocontext_t *port = NULL; in sepol_port_modify() local
263 if (port_from_record(handle, policydb, &port, data) < 0) in sepol_port_modify()
267 port->next = policydb->ocontexts[OCON_PORT]; in sepol_port_modify()
268 policydb->ocontexts[OCON_PORT] = port; in sepol_port_modify()
275 if (port != NULL) { in sepol_port_modify()
276 context_destroy(&port->context[0]); in sepol_port_modify()
277 free(port); in sepol_port_modify()
284 int (*fn) (const sepol_port_t * port, in sepol_port_iterate()
290 sepol_port_t *port = NULL; in sepol_port_iterate() local
296 if (port_to_record(handle, policydb, c, &port) < 0) in sepol_port_iterate()
300 status = fn(port, arg); in sepol_port_iterate()
304 sepol_port_free(port); in sepol_port_iterate()
305 port = NULL; in sepol_port_iterate()
316 sepol_port_free(port); in sepol_port_iterate()