Searched defs:portcon (Results 1 - 10 of 10) sorted by relevance

/external/selinux/libsepol/cil/src/
H A Dcil_reset_ast.c266 static void cil_reset_portcon(struct cil_portcon *portcon) argument
268 if (portcon->context_str == NULL) {
269 cil_reset_context(portcon->context);
H A Dcil_policy.c120 struct cil_portcon *portcon = (struct cil_portcon*)sort->array[i]; local
121 fprintf(file_arr[NETIFCONS], "portcon ");
122 if (portcon->proto == CIL_PROTOCOL_UDP) {
124 } else if (portcon->proto == CIL_PROTOCOL_TCP) {
127 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_low);
128 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_high);
129 cil_context_to_policy(file_arr, NETIFCONS, portcon->context);
1336 rc = cil_portcon_to_policy(file_arr, db->portcon);
H A Dcil_tree.c1300 struct cil_portcon *portcon = node->data; local
1302 if (portcon->proto == CIL_PROTOCOL_UDP) {
1304 } else if (portcon->proto == CIL_PROTOCOL_TCP) {
1307 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high);
1309 if (portcon->context != NULL) {
1310 cil_tree_print_context(portcon->context);
1311 } else if (portcon->context_str != NULL) {
1312 cil_log(CIL_INFO, " %s", portcon->context_str);
H A Dcil.c187 CIL_KEY_PORTCON = cil_strpool_add("portcon");
246 cil_sort_init(&(*db)->portcon);
292 cil_sort_destroy(&(*db)->portcon);
2155 void cil_portcon_init(struct cil_portcon **portcon) argument
2157 *portcon = cil_malloc(sizeof(**portcon));
2158 (*portcon)->proto = 0;
2159 (*portcon)->port_low = 0;
2160 (*portcon)->port_high = 0;
2161 (*portcon)
[all...]
H A Dcil_post.c377 db->portcon->count++;
503 struct cil_sort *sort = db->portcon;
1266 struct cil_portcon *portcon = node->data; local
1267 rc = __evaluate_levelrange_expression(portcon->context->range, db);
1618 qsort(db->portcon->array, db->portcon->count, sizeof(db->portcon->array), cil_post_portcon_compare);
H A Dcil_resolve_ast.c1735 struct cil_portcon *portcon = current->data; local
1739 if (portcon->context_str != NULL) {
1740 rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum);
1744 portcon->context = (struct cil_context*)context_datum;
1746 rc = cil_resolve_context(current, portcon->context, extra_args);
H A Dcil_build_ast.c3913 struct cil_portcon *portcon = NULL; local
3925 cil_portcon_init(&portcon);
3929 portcon->proto = CIL_PROTOCOL_UDP;
3931 portcon->proto = CIL_PROTOCOL_TCP;
3941 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low);
3946 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high);
3957 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low);
3962 portcon->port_high = portcon->port_low;
3966 portcon
3988 cil_destroy_portcon(struct cil_portcon *portcon) argument
[all...]
H A Dcil_internal.h272 struct cil_sort *portcon; member in struct:cil_db
938 void cil_portcon_init(struct cil_portcon **portcon);
/external/selinux/policycoreutils/sepolicy/
H A Dinfo.c1097 const qpol_portcon_t *portcon = NULL; local
1118 if (qpol_iterator_get_item(iter, (void **)&portcon))
1120 if (qpol_portcon_get_low_port(q, portcon, &low_port))
1122 if (qpol_portcon_get_high_port(q, portcon, &high_port))
1124 if (qpol_portcon_get_protocol(q, portcon, &ocon_proto))
1135 if (qpol_portcon_get_context(q, portcon, &ctxt)) {
/external/selinux/libsepol/src/
H A Dmodule_to_cil.c2518 struct ocontext *portcon; local
2523 for (portcon = portcons; portcon != NULL; portcon = portcon->next) {
2525 switch (portcon->u.port.protocol) {
2529 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol);
2534 low = portcon->u.port.low_port;
2535 high = portcon
[all...]

Completed in 350 milliseconds