Home
last modified time | relevance | path

Searched refs:portcon (Results 1 – 24 of 24) 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/selinux/secilc/docs/
Dcil_network_labeling_statements.md155 portcon section in Network Labeling Statements
162 (portcon protocol port|(port_low port_high) context_id)
173 <td align="left"><p><code>portcon</code></p></td>
174 <td align="left"><p>The <code>portcon</code> keyword.</p></td>
195 These examples show named and anonymous [`portcon`](cil_network_labeling_statements.md#portcon) sta…
197 (portcon tcp 1111 (unconfined.user object_r unconfined.object ((s0) (s0 (c0)))))
198 (portcon tcp 2222 (unconfined.user object_r unconfined.object levelrange_2))
199 (portcon tcp 3333 (unconfined.user object_r unconfined.object levelrange_1))
200 (portcon udp 4444 (unconfined.user object_r unconfined.object ((s0) level_2)))
201 (portcon tcp (2000 20000) (unconfined.user object_r unconfined.object (systemlow level_3)))
[all …]
Dcil_context_statement.md68 …evelrange` identifiers are used to specifiy two [`portcon`](cil_network_labeling_statements.md#por…
70 (portcon udp 1024 (test.user object_r test.process ((s0) (s1))))
71 (portcon tcp 1024 (test.user object_r test.process (system_low system_high)))
DREADME.md102 * [portcon](cil_network_labeling_statements.md#portcon)
Dcil_reference_guide.md73 …now a [`portcon`](cil_network_labeling_statements.md#portcon) statement can be defined that uses t…
75 (portcon udp 12345 (unconfined.user object_r unconfined.object ((s0) (s0(c0)))))
/external/selinux/libsepol/cil/src/
Dcil_tree.c1431 struct cil_portcon *portcon = node->data; in cil_tree_print_node() local
1433 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_tree_print_node()
1435 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_tree_print_node()
1437 } else if (portcon->proto == CIL_PROTOCOL_DCCP) { in cil_tree_print_node()
1439 } else if (portcon->proto == CIL_PROTOCOL_SCTP) { in cil_tree_print_node()
1442 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high); in cil_tree_print_node()
1444 if (portcon->context != NULL) { in cil_tree_print_node()
1445 cil_tree_print_context(portcon->context); in cil_tree_print_node()
1446 } else if (portcon->context_str != NULL) { in cil_tree_print_node()
1447 cil_log(CIL_INFO, " %s", portcon->context_str); in cil_tree_print_node()
Dcil_policy.c1749 struct cil_portcon *portcon; in cil_portcons_to_policy() local
1752 portcon = portcons->array[i]; in cil_portcons_to_policy()
1754 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_portcons_to_policy()
1756 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_portcons_to_policy()
1758 } else if (portcon->proto == CIL_PROTOCOL_DCCP) { in cil_portcons_to_policy()
1760 } else if (portcon->proto == CIL_PROTOCOL_SCTP) { in cil_portcons_to_policy()
1763 if (portcon->port_low == portcon->port_high) { in cil_portcons_to_policy()
1764 fprintf(out, "%d ", portcon->port_low); in cil_portcons_to_policy()
1766 fprintf(out, "%d-%d ", portcon->port_low, portcon->port_high); in cil_portcons_to_policy()
1768 cil_context_to_policy(out, portcon->context, mls); in cil_portcons_to_policy()
[all …]
Dcil_reset_ast.c298 static void cil_reset_portcon(struct cil_portcon *portcon) in cil_reset_portcon() argument
300 if (portcon->context_str == NULL) { in cil_reset_portcon()
301 cil_reset_context(portcon->context); in cil_reset_portcon()
Dcil.c265 cil_sort_init(&(*db)->portcon); in cil_db_init()
318 cil_sort_destroy(&(*db)->portcon); in cil_db_destroy()
2302 void cil_portcon_init(struct cil_portcon **portcon) in cil_portcon_init() argument
2304 *portcon = cil_malloc(sizeof(**portcon)); in cil_portcon_init()
2305 (*portcon)->proto = 0; in cil_portcon_init()
2306 (*portcon)->port_low = 0; in cil_portcon_init()
2307 (*portcon)->port_high = 0; in cil_portcon_init()
2308 (*portcon)->context_str = NULL; in cil_portcon_init()
2309 (*portcon)->context = NULL; in cil_portcon_init()
Dcil_build_ast.c4387 struct cil_portcon *portcon = NULL; in cil_gen_portcon() local
4399 cil_portcon_init(&portcon); in cil_gen_portcon()
4403 portcon->proto = CIL_PROTOCOL_UDP; in cil_gen_portcon()
4405 portcon->proto = CIL_PROTOCOL_TCP; in cil_gen_portcon()
4407 portcon->proto = CIL_PROTOCOL_DCCP; in cil_gen_portcon()
4409 portcon->proto = CIL_PROTOCOL_SCTP; in cil_gen_portcon()
4419 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low, 10); in cil_gen_portcon()
4424 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high, 10); in cil_gen_portcon()
4435 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low, 10); in cil_gen_portcon()
4440 portcon->port_high = portcon->port_low; in cil_gen_portcon()
[all …]
Dcil_internal.h294 struct cil_sort *portcon; member
1034 void cil_portcon_init(struct cil_portcon **portcon);
Dcil_post.c632 db->portcon->count++; in __cil_post_db_count_helper()
788 struct cil_sort *sort = db->portcon; in __cil_post_db_array_helper()
1936 struct cil_portcon *portcon = node->data; in __cil_post_db_cat_helper() local
1937 rc = __evaluate_levelrange_expression(portcon->context->range, db); in __cil_post_db_cat_helper()
2390 …rc = __cil_post_process_context_rules(db->portcon, cil_post_portcon_compare, cil_post_portcon_cont… in cil_post_db()
Dcil_build_ast.h183 void cil_destroy_portcon(struct cil_portcon *portcon);
Dcil_resolve_ast.c1953 struct cil_portcon *portcon = current->data; in cil_resolve_portcon() local
1957 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1958 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1962 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
1964 rc = cil_resolve_context(current, portcon->context, extra_args); in cil_resolve_portcon()
Dcil_binary.c3901 rc = cil_portcon_to_policydb(pdb, db->portcon); in __cil_contexts_to_policydb()
/external/selinux/secilc/test/
Dpolicy.cil271 (portcon udp 25 system_u_bin_t_l2h)
272 (portcon tcp 22 system_u_bin_t_l2h)
273 (portcon dccp (2048 2096) system_u_bin_t_l2h)
274 (portcon sctp (1024 1035) system_u_bin_t_l2h)
Dintegration.cil173 (portcon udp 25 system_u_bin_t_l2h)
174 (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/
Dkernel_to_cil.c2646 struct ocontext *portcon; in write_selinux_port_rules_to_cil() local
2654 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil()
2655 switch (portcon->u.port.protocol) { in write_selinux_port_rules_to_cil()
2661 sepol_log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in write_selinux_port_rules_to_cil()
2666 low = portcon->u.port.low_port; in write_selinux_port_rules_to_cil()
2667 high = portcon->u.port.high_port; in write_selinux_port_rules_to_cil()
2678 ctx = context_to_str(pdb, &portcon->context[0]); in write_selinux_port_rules_to_cil()
Dkernel_to_conf.c2506 struct ocontext *portcon; in write_selinux_port_rules_to_conf() local
2514 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf()
2515 switch (portcon->u.port.protocol) { in write_selinux_port_rules_to_conf()
2521 sepol_log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in write_selinux_port_rules_to_conf()
2526 low = portcon->u.port.low_port; in write_selinux_port_rules_to_conf()
2527 high = portcon->u.port.high_port; in write_selinux_port_rules_to_conf()
2538 ctx = context_to_str(pdb, &portcon->context[0]); in write_selinux_port_rules_to_conf()
Dmodule_to_cil.c2641 struct ocontext *portcon; in ocontext_selinux_port_to_cil() local
2646 for (portcon = portcons; portcon != NULL; portcon = portcon->next) { in ocontext_selinux_port_to_cil()
2648 switch (portcon->u.port.protocol) { in ocontext_selinux_port_to_cil()
2654 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in ocontext_selinux_port_to_cil()
2659 low = portcon->u.port.low_port; in ocontext_selinux_port_to_cil()
2660 high = portcon->u.port.high_port; in ocontext_selinux_port_to_cil()
2668 context_to_cil(pdb, &portcon->context[0]); in ocontext_selinux_port_to_cil()
/external/selinux/checkpolicy/
Dpolicy_scan.l191 portcon |
/external/selinux/prebuilts/bin/
Dsediff.py115 args.netifcon, args.nodecon, args.portcon, args.fs_use, args.polcap,
1262 if all_differences or args.portcon:
1264 or args.portcon: