Home
last modified time | relevance | path

Searched refs:portcon (Results 1 – 25 of 25) 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 …levelrange` identifiers are used to specify 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/libsemanage/tests/
Dtest_port.cil25 (portcon tcp 80 (system_u object_r first_port_t ((s0) (s0))))
26 (portcon udp (1 1023) (system_u object_r second_port_t ((s0) (s0))))
27 (portcon tcp 12345 (system_u object_r third_port_t ((s0) (s0))))
/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.c1746 struct cil_portcon *portcon; in cil_portcons_to_policy() local
1749 portcon = portcons->array[i]; in cil_portcons_to_policy()
1751 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_portcons_to_policy()
1753 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_portcons_to_policy()
1755 } else if (portcon->proto == CIL_PROTOCOL_DCCP) { in cil_portcons_to_policy()
1757 } else if (portcon->proto == CIL_PROTOCOL_SCTP) { in cil_portcons_to_policy()
1760 if (portcon->port_low == portcon->port_high) { in cil_portcons_to_policy()
1761 fprintf(out, "%d ", portcon->port_low); in cil_portcons_to_policy()
1763 fprintf(out, "%d-%d ", portcon->port_low, portcon->port_high); in cil_portcons_to_policy()
1765 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.c428 cil_sort_init(&(*db)->portcon); in cil_db_init()
481 cil_sort_destroy(&(*db)->portcon); in cil_db_destroy()
2465 void cil_portcon_init(struct cil_portcon **portcon) in cil_portcon_init() argument
2467 *portcon = cil_malloc(sizeof(**portcon)); in cil_portcon_init()
2468 (*portcon)->proto = 0; in cil_portcon_init()
2469 (*portcon)->port_low = 0; in cil_portcon_init()
2470 (*portcon)->port_high = 0; in cil_portcon_init()
2471 (*portcon)->context_str = NULL; in cil_portcon_init()
2472 (*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.h295 struct cil_sort *portcon; member
1036 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()
1928 struct cil_portcon *portcon = node->data; in __cil_post_db_cat_helper() local
1929 rc = __evaluate_levelrange_expression(portcon->context->range, db); in __cil_post_db_cat_helper()
2382 …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.c1949 struct cil_portcon *portcon = current->data; in cil_resolve_portcon() local
1953 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1954 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1958 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
1960 rc = cil_resolve_context(current, portcon->context, extra_args); in cil_resolve_portcon()
Dcil_binary.c3816 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_conf.c2516 struct ocontext *portcon; in write_selinux_port_rules_to_conf() local
2524 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_conf()
2525 switch (portcon->u.port.protocol) { in write_selinux_port_rules_to_conf()
2531 sepol_log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in write_selinux_port_rules_to_conf()
2536 low = portcon->u.port.low_port; in write_selinux_port_rules_to_conf()
2537 high = portcon->u.port.high_port; in write_selinux_port_rules_to_conf()
2548 ctx = context_to_str(pdb, &portcon->context[0]); in write_selinux_port_rules_to_conf()
Dkernel_to_cil.c2644 struct ocontext *portcon; in write_selinux_port_rules_to_cil() local
2652 for (portcon = pdb->ocontexts[2]; portcon != NULL; portcon = portcon->next) { in write_selinux_port_rules_to_cil()
2653 switch (portcon->u.port.protocol) { in write_selinux_port_rules_to_cil()
2659 sepol_log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in write_selinux_port_rules_to_cil()
2664 low = portcon->u.port.low_port; in write_selinux_port_rules_to_cil()
2665 high = portcon->u.port.high_port; in write_selinux_port_rules_to_cil()
2676 ctx = context_to_str(pdb, &portcon->context[0]); in write_selinux_port_rules_to_cil()
Dmodule_to_cil.c2605 struct ocontext *portcon; in ocontext_selinux_port_to_cil() local
2610 for (portcon = portcons; portcon != NULL; portcon = portcon->next) { in ocontext_selinux_port_to_cil()
2612 switch (portcon->u.port.protocol) { in ocontext_selinux_port_to_cil()
2618 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in ocontext_selinux_port_to_cil()
2623 low = portcon->u.port.low_port; in ocontext_selinux_port_to_cil()
2624 high = portcon->u.port.high_port; in ocontext_selinux_port_to_cil()
2632 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: