Home
last modified time | relevance | path

Searched refs:nodecon (Results 1 – 25 of 33) sorted by relevance

12

/external/selinux/secilc/docs/
Dcil_network_labeling_statements.md55 (nodecon ARG1 ARG2 netlabel_1))
111 nodecon section in Network Labeling Statements
121 (nodecon subnet_id netmask_id context_id)
133 <td align="left"><p><code>nodecon</code></p></td>
134 <td align="left"><p>The <code>nodecon</code> keyword.</p></td>
153 These examples show named and anonymous [`nodecon`](cil_network_labeling_statements.md#nodecon) sta…
162 (nodecon ipv4_1 netmask_1 context_2)
163 (nodecon (192.0.2.64) (255.255.255.255) context_1)
164 (nodecon (192.0.2.64) netmask_1 (unconfined.user object_r unconfined.object ((s0) (s0 (c0)))))
171 (nodecon ipv6_2 netmask_2 context_3)
[all …]
DREADME.md101 * [nodecon](cil_network_labeling_statements.md#nodecon)
/external/selinux/libsemanage/tests/
Dtest_node.cil26 (nodecon (192.168.0.0) (255.255.255.0) (system_u object_r first_node_t ((s0) (s0))))
27 (nodecon (2001:db8:85a3::8a2e:370:7334) (2001:db8:85a3::8a2e:370:7334) (system_u object_r second_no…
28 (nodecon (127.0.0.1) (255.255.0.0) (system_u object_r third_node_t ((s0) (s0))))
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil29 ;(nodecon ip_v4 netmask con)
30 ;(nodecon ip_v6 netmask_v6 con_anon_l)
Dmls_policy.cil53 (nodecon ip_v4 netmask con)
54 (nodecon ip_v6 netmask_v6 con_anon_l)
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c349 static void cil_reset_nodecon(struct cil_nodecon *nodecon) in cil_reset_nodecon() argument
351 if (nodecon->context_str == NULL) { in cil_reset_nodecon()
352 cil_reset_context(nodecon->context); in cil_reset_nodecon()
354 nodecon->context = NULL; in cil_reset_nodecon()
Dcil_policy.c1791 struct cil_nodecon *nodecon; in cil_nodecons_to_policy() local
1795 nodecon = nodecons->array[i]; in cil_nodecons_to_policy()
1798 if (nodecon->addr->family == AF_INET) { in cil_nodecons_to_policy()
1801 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v4, addr, INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1811 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v4, mask, INET_ADDRSTRLEN); in cil_nodecons_to_policy()
1821 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v6, addr, INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
1831 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v6, mask, INET6_ADDRSTRLEN); in cil_nodecons_to_policy()
1840 cil_context_to_policy(out, nodecon->context, mls); in cil_nodecons_to_policy()
1978 cil_nodecons_to_policy(out, db->nodecon, db->mls); in cil_gen_policy()
Dcil_write_ast.c1310 struct cil_nodecon *nodecon = node->data; in cil_write_ast_node() local
1312 if (nodecon->addr) in cil_write_ast_node()
1313 write_ipaddr(out, nodecon->addr); in cil_write_ast_node()
1315 fprintf(out, "%s ", nodecon->addr_str); in cil_write_ast_node()
1317 if (nodecon->mask) in cil_write_ast_node()
1318 write_ipaddr(out, nodecon->mask); in cil_write_ast_node()
1320 fprintf(out, "%s ", nodecon->mask_str); in cil_write_ast_node()
1322 if (nodecon->context) in cil_write_ast_node()
1323 write_context(out, nodecon->context, CIL_TRUE); in cil_write_ast_node()
1325 fprintf(out, "%s", nodecon->context_str); in cil_write_ast_node()
Dcil.c416 cil_sort_init(&(*db)->nodecon); in cil_db_init()
471 cil_sort_destroy(&(*db)->nodecon); in cil_db_destroy()
2568 void cil_nodecon_init(struct cil_nodecon **nodecon) in cil_nodecon_init() argument
2570 *nodecon = cil_malloc(sizeof(**nodecon)); in cil_nodecon_init()
2572 (*nodecon)->addr_str = NULL; in cil_nodecon_init()
2573 (*nodecon)->addr = NULL; in cil_nodecon_init()
2574 (*nodecon)->mask_str = NULL; in cil_nodecon_init()
2575 (*nodecon)->mask = NULL; in cil_nodecon_init()
2576 (*nodecon)->context_str = NULL; in cil_nodecon_init()
2577 (*nodecon)->context = NULL; in cil_nodecon_init()
Dcil_build_ast.c4490 struct cil_nodecon *nodecon = NULL; in cil_gen_nodecon() local
4501 cil_nodecon_init(&nodecon); in cil_gen_nodecon()
4504 nodecon->addr_str = parse_current->next->data; in cil_gen_nodecon()
4506 cil_ipaddr_init(&nodecon->addr); in cil_gen_nodecon()
4508 rc = cil_fill_ipaddr(parse_current->next->cl_head, nodecon->addr); in cil_gen_nodecon()
4515 nodecon->mask_str = parse_current->next->next->data; in cil_gen_nodecon()
4517 cil_ipaddr_init(&nodecon->mask); in cil_gen_nodecon()
4519 rc = cil_fill_ipaddr(parse_current->next->next->cl_head, nodecon->mask); in cil_gen_nodecon()
4526 nodecon->context_str = parse_current->next->next->next->data; in cil_gen_nodecon()
4528 cil_context_init(&nodecon->context); in cil_gen_nodecon()
[all …]
Dcil_resolve_ast.c2024 struct cil_nodecon *nodecon = current->data; in cil_resolve_nodecon() local
2030 if (nodecon->addr_str != NULL) { in cil_resolve_nodecon()
2031 rc = cil_resolve_name(current, nodecon->addr_str, CIL_SYM_IPADDRS, extra_args, &addr_datum); in cil_resolve_nodecon()
2035 nodecon->addr = (struct cil_ipaddr*)addr_datum; in cil_resolve_nodecon()
2038 if (nodecon->mask_str != NULL) { in cil_resolve_nodecon()
2039 rc = cil_resolve_name(current, nodecon->mask_str, CIL_SYM_IPADDRS, extra_args, &mask_datum); in cil_resolve_nodecon()
2043 nodecon->mask = (struct cil_ipaddr*)mask_datum; in cil_resolve_nodecon()
2046 if (nodecon->context_str != NULL) { in cil_resolve_nodecon()
2047 …rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_nodecon()
2051 nodecon->context = (struct cil_context*)context_datum; in cil_resolve_nodecon()
[all …]
Dcil_internal.h299 struct cil_sort *nodecon; member
1049 void cil_nodecon_init(struct cil_nodecon **nodecon);
/external/selinux/secilc/test/
Dintegration.cil171 (nodecon ip_v4 netmask system_u_bin_t_l2h)
172 (nodecon ip_v6 netmask_v6 system_u_bin_t_l2h)
Danonymous_arg_test.cil83 (nodecon ip nm (u ROLE TYPE ((s0) (s0))))
Dpolicy.cil276 (nodecon ip_v4 netmask system_u_bin_t_l2h)
277 (nodecon ip_v6 netmask_v6 system_u_bin_t_l2h)
/external/selinux/libsepol/tests/policies/test-hooks/
Dcmp_policy.conf467 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(g_b_user_1:object_r:g_b_type_1, s0)
Dsmall-base.conf467 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(g_b_user_1:object_r:g_b_type_1, s0)
/external/selinux/libsepol/tests/policies/test-expander/
Duser-base.conf483 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:system_t, s0)
Dalias-base.conf497 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:system_t, s0)
Drole-base.conf479 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:system_t, s0)
/external/selinux/checkpolicy/
Dpolicy_scan.l209 nodecon |
/external/selinux/libsepol/tests/policies/test-deps/
Dsmall-base.conf507 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:net_foo_t, s0)
Dbase-notmetreq.conf506 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:net_foo_t, s0)
Dbase-metreq.conf519 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(system_u:object_r:net_foo_t, s0)
/external/selinux/libsepol/tests/policies/test-linker/
Dsmall-base.conf596 nodecon ::1 FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF gen_context(g_b_user_1:object_r:g_b_type_1, s0)

12