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)))
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.c1316 struct cil_portcon *portcon = node->data; in cil_tree_print_node() local
1318 if (portcon->proto == CIL_PROTOCOL_UDP) { in cil_tree_print_node()
1320 } else if (portcon->proto == CIL_PROTOCOL_TCP) { in cil_tree_print_node()
1323 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high); in cil_tree_print_node()
1325 if (portcon->context != NULL) { in cil_tree_print_node()
1326 cil_tree_print_context(portcon->context); in cil_tree_print_node()
1327 } else if (portcon->context_str != NULL) { in cil_tree_print_node()
1328 cil_log(CIL_INFO, " %s", portcon->context_str); in cil_tree_print_node()
Dcil_reset_ast.c291 static void cil_reset_portcon(struct cil_portcon *portcon) in cil_reset_portcon() argument
293 if (portcon->context_str == NULL) { in cil_reset_portcon()
294 cil_reset_context(portcon->context); in cil_reset_portcon()
Dcil.c255 cil_sort_init(&(*db)->portcon); in cil_db_init()
304 cil_sort_destroy(&(*db)->portcon); in cil_db_destroy()
2215 void cil_portcon_init(struct cil_portcon **portcon) in cil_portcon_init() argument
2217 *portcon = cil_malloc(sizeof(**portcon)); in cil_portcon_init()
2218 (*portcon)->proto = 0; in cil_portcon_init()
2219 (*portcon)->port_low = 0; in cil_portcon_init()
2220 (*portcon)->port_high = 0; in cil_portcon_init()
2221 (*portcon)->context_str = NULL; in cil_portcon_init()
2222 (*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()
1331 rc = cil_portcon_to_policy(file_arr, db->portcon); in cil_gen_policy()
Dcil_build_ast.c4245 struct cil_portcon *portcon = NULL; in cil_gen_portcon() local
4257 cil_portcon_init(&portcon); in cil_gen_portcon()
4261 portcon->proto = CIL_PROTOCOL_UDP; in cil_gen_portcon()
4263 portcon->proto = CIL_PROTOCOL_TCP; in cil_gen_portcon()
4273 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low); in cil_gen_portcon()
4278 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high); in cil_gen_portcon()
4289 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low); in cil_gen_portcon()
4294 portcon->port_high = portcon->port_low; in cil_gen_portcon()
4298 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
4300 cil_context_init(&portcon->context); in cil_gen_portcon()
[all …]
Dcil_post.c402 db->portcon->count++; in __cil_post_db_count_helper()
536 struct cil_sort *sort = db->portcon; in __cil_post_db_array_helper()
1580 struct cil_portcon *portcon = node->data; in __cil_post_db_cat_helper() local
1581 rc = __evaluate_levelrange_expression(portcon->context->range, db); in __cil_post_db_cat_helper()
1938 …qsort(db->portcon->array, db->portcon->count, sizeof(db->portcon->array), cil_post_portcon_compare… in cil_post_db()
Dcil_internal.h282 struct cil_sort *portcon; member
983 void cil_portcon_init(struct cil_portcon **portcon);
Dcil_build_ast.h177 void cil_destroy_portcon(struct cil_portcon *portcon);
Dcil_resolve_ast.c1871 struct cil_portcon *portcon = current->data; in cil_resolve_portcon() local
1875 if (portcon->context_str != NULL) { in cil_resolve_portcon()
1876 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1880 portcon->context = (struct cil_context*)context_datum; in cil_resolve_portcon()
1882 rc = cil_resolve_context(current, portcon->context, extra_args); in cil_resolve_portcon()
Dcil_binary.c3623 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.cil271 (portcon udp 25 system_u_bin_t_l2h)
272 (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.c2530 struct ocontext *portcon; in ocontext_selinux_port_to_cil() local
2535 for (portcon = portcons; portcon != NULL; portcon = portcon->next) { in ocontext_selinux_port_to_cil()
2537 switch (portcon->u.port.protocol) { in ocontext_selinux_port_to_cil()
2541 log_err("Unknown portcon protocol: %i", portcon->u.port.protocol); in ocontext_selinux_port_to_cil()
2546 low = portcon->u.port.low_port; in ocontext_selinux_port_to_cil()
2547 high = portcon->u.port.high_port; in ocontext_selinux_port_to_cil()
2555 context_to_cil(pdb, &portcon->context[0]); in ocontext_selinux_port_to_cil()
/external/selinux/checkpolicy/
Dpolicy_scan.l184 portcon |
DChangeLog430 * Preserve portcon ordering and apply more checking.
/external/selinux/prebuilts/bin/
Dsediff.py94 args.netifcon, args.nodecon, args.portcon, args.fs_use, args.polcap,
929 if all_differences or args.portcon:
931 or args.portcon: