Home
last modified time | relevance | path

Searched refs:portcon (Results 1 – 20 of 20) sorted by relevance

/external/selinux/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf1743 portcon udp 7007 system_u:object_r:afs_bos_port_t:s0
1744 portcon tcp 2040 system_u:object_r:afs_fs_port_t:s0
1745 portcon udp 7000 system_u:object_r:afs_fs_port_t:s0
1746 portcon udp 7005 system_u:object_r:afs_fs_port_t:s0
1747 portcon udp 7004 system_u:object_r:afs_ka_port_t:s0
1748 portcon udp 7002 system_u:object_r:afs_pt_port_t:s0
1749 portcon udp 7003 system_u:object_r:afs_vl_port_t:s0
1750 portcon udp 10080 system_u:object_r:amanda_port_t:s0
1751 portcon tcp 10080 system_u:object_r:amanda_port_t:s0
1752 portcon udp 10081 system_u:object_r:amanda_port_t:s0
[all …]
/external/sepolicy/
Dport_contexts1 # portcon statements go here, e.g.
2 # portcon tcp 80 u:object_r:http_port:s0
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c266 static void cil_reset_portcon(struct cil_portcon *portcon) in cil_reset_portcon() argument
268 if (portcon->context_str == NULL) { in cil_reset_portcon()
269 cil_reset_context(portcon->context); in cil_reset_portcon()
Dcil_tree.c1300 struct cil_portcon *portcon = node->data; in cil_tree_print_node() local
1302 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_tree_print_node()
1304 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_tree_print_node()
1307 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high); in cil_tree_print_node()
1309 if (portcon->context != NULL) { in cil_tree_print_node()
1310 cil_tree_print_context(portcon->context); in cil_tree_print_node()
1311 } else if (portcon->context_str != NULL) { in cil_tree_print_node()
1312 cil_log(CIL_INFO, " %s", portcon->context_str); in cil_tree_print_node()
Dcil.c246 cil_sort_init(&(*db)->portcon); in cil_db_init()
292 cil_sort_destroy(&(*db)->portcon); in cil_db_destroy()
2155 void cil_portcon_init(struct cil_portcon **portcon) in cil_portcon_init() argument
2157 *portcon = cil_malloc(sizeof(**portcon)); in cil_portcon_init()
2158 (*portcon)->proto = 0; in cil_portcon_init()
2159 (*portcon)->port_low = 0; in cil_portcon_init()
2160 (*portcon)->port_high = 0; in cil_portcon_init()
2161 (*portcon)->context_str = NULL; in cil_portcon_init()
2162 (*portcon)->context = NULL; in cil_portcon_init()
Dcil_policy.c120 struct cil_portcon *portcon = (struct cil_portcon*)sort->array[i]; in cil_portcon_to_policy() local
122 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_portcon_to_policy()
124 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_portcon_to_policy()
127 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_low); in cil_portcon_to_policy()
128 fprintf(file_arr[NETIFCONS], "%d ", portcon->port_high); in cil_portcon_to_policy()
129 cil_context_to_policy(file_arr, NETIFCONS, portcon->context); in cil_portcon_to_policy()
1336 rc = cil_portcon_to_policy(file_arr, db->portcon); in cil_gen_policy()
Dcil_post.c377 db->portcon->count++; in __cil_post_db_count_helper()
503 struct cil_sort *sort = db->portcon; in __cil_post_db_array_helper()
1266 struct cil_portcon *portcon = node->data; in __cil_post_db_cat_helper() local
1267 rc = __evaluate_levelrange_expression(portcon->context->range, db); in __cil_post_db_cat_helper()
1618 …qsort(db->portcon->array, db->portcon->count, sizeof(db->portcon->array), cil_post_portcon_compare… in cil_post_db()
Dcil_build_ast.c3913 struct cil_portcon *portcon = NULL; in cil_gen_portcon() local
3925 cil_portcon_init(&portcon); in cil_gen_portcon()
3929 portcon->proto = CIL_PROTOCOL_UDP; in cil_gen_portcon()
3931 portcon->proto = CIL_PROTOCOL_TCP; in cil_gen_portcon()
3941 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low); in cil_gen_portcon()
3946 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high); in cil_gen_portcon()
3957 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low); in cil_gen_portcon()
3962 portcon->port_high = portcon->port_low; in cil_gen_portcon()
3966 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
3968 cil_context_init(&portcon->context); in cil_gen_portcon()
[all …]
Dcil_internal.h272 struct cil_sort *portcon; member
938 void cil_portcon_init(struct cil_portcon **portcon);
Dcil_build_ast.h170 void cil_destroy_portcon(struct cil_portcon *portcon);
Dcil_resolve_ast.c1735 struct cil_portcon *portcon = current->data; in cil_resolve_portcon() local
1739 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1740 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1744 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
1746 rc = cil_resolve_context(current, portcon->context, extra_args); in cil_resolve_portcon()
Dcil_binary.c3322 rc = cil_portcon_to_policydb(pdb, db->portcon); in __cil_contexts_to_policydb()
/external/selinux/policycoreutils/sepolicy/
Dinfo.c1097 const qpol_portcon_t *portcon = NULL; in get_ports() local
1118 if (qpol_iterator_get_item(iter, (void **)&portcon)) in get_ports()
1120 if (qpol_portcon_get_low_port(q, portcon, &low_port)) in get_ports()
1122 if (qpol_portcon_get_high_port(q, portcon, &high_port)) in get_ports()
1124 if (qpol_portcon_get_protocol(q, portcon, &ocon_proto)) in get_ports()
1135 if (qpol_portcon_get_context(q, portcon, &ctxt)) { in get_ports()
/external/selinux/secilc/test/
Dintegration.cil173 (portcon udp 25 system_u_bin_t_l2h)
174 (portcon tcp 22 system_u_bin_t_l2h)
Dpolicy.cil242 (portcon udp 25 system_u_bin_t_l2h)
243 (portcon tcp 22 system_u_bin_t_l2h)
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil33 ;(portcon type 25 con)
Dmls_policy.cil57 (portcon type 25 con)
/external/selinux/libsepol/src/
Dmodule_to_cil.c2518 struct ocontext *portcon; in ocontext_selinux_port_to_cil() local
2523 for (portcon = portcons; portcon != NULL; portcon = portcon->next) { in ocontext_selinux_port_to_cil()
2525 switch (portcon->u.port.protocol) { in ocontext_selinux_port_to_cil()
2529 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in ocontext_selinux_port_to_cil()
2534 low = portcon->u.port.low_port; in ocontext_selinux_port_to_cil()
2535 high = portcon->u.port.high_port; in ocontext_selinux_port_to_cil()
2543 context_to_cil(pdb, &portcon->context[0]); in ocontext_selinux_port_to_cil()
/external/selinux/checkpolicy/
Dpolicy_scan.l176 portcon |
DChangeLog423 * Preserve portcon ordering and apply more checking.