/external/selinux/secilc/docs/ |
D | cil_network_labeling_statements.md | 52 (nodecon ARG1 ARG2 netlabel_1)) 103 nodecon section in Network Labeling Statements 112 (nodecon subnet_id netmask_id context_id) 123 <td align="left"><p><code>nodecon</code></p></td> 124 <td align="left"><p>The <code>nodecon</code> keyword.</p></td> 143 These examples show named and anonymous [`nodecon`](cil_network_labeling_statements.md#nodecon) sta… 151 (nodecon netmask_1 ipv4_1 context_2) 152 (nodecon (255.255.255.0) (192.168.1.64) context_1) 153 (nodecon netmask_1 (192.168.1.64) (unconfined.user object_r unconfined.object ((s0) (s0 (c0)))))
|
D | README.md | 101 * [nodecon](cil_network_labeling_statements.md#nodecon)
|
D | cil_call_macro_statements.md | 129 (nodecon ARG1 ARG2 netlabel_1)
|
/external/selinux/libsepol/cil/src/ |
D | cil_policy.c | 173 struct cil_nodecon *nodecon = (struct cil_nodecon*)sort->array[i]; in cil_nodecon_to_policy() local 176 if (nodecon->addr->family == AF_INET) { in cil_nodecon_to_policy() 178 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v4, buf, INET_ADDRSTRLEN); in cil_nodecon_to_policy() 179 } else if (nodecon->addr->family == AF_INET6) { in cil_nodecon_to_policy() 181 inet_ntop(nodecon->addr->family, &nodecon->addr->ip.v6, buf, INET6_ADDRSTRLEN); in cil_nodecon_to_policy() 193 if (nodecon->mask->family == AF_INET) { in cil_nodecon_to_policy() 195 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v4, buf, INET_ADDRSTRLEN); in cil_nodecon_to_policy() 196 } else if (nodecon->mask->family == AF_INET6) { in cil_nodecon_to_policy() 198 inet_ntop(nodecon->mask->family, &nodecon->mask->ip.v6, buf, INET6_ADDRSTRLEN); in cil_nodecon_to_policy() 210 cil_context_to_policy(file_arr, NETIFCONS, nodecon->context); in cil_nodecon_to_policy() [all …]
|
D | cil_tree.c | 1335 struct cil_nodecon *nodecon = node->data; in cil_tree_print_node() local 1340 if (nodecon->addr) { in cil_tree_print_node() 1341 inet_ntop(nodecon->addr->family, &nodecon->addr->ip, buf, 256); in cil_tree_print_node() 1344 cil_log(CIL_INFO, " %s", nodecon->addr_str); in cil_tree_print_node() 1347 if (nodecon->mask) { in cil_tree_print_node() 1348 inet_ntop(nodecon->mask->family, &nodecon->mask->ip, buf, 256); in cil_tree_print_node() 1351 cil_log(CIL_INFO, " %s", nodecon->mask_str); in cil_tree_print_node() 1354 if (nodecon->context != NULL) { in cil_tree_print_node() 1355 cil_tree_print_context(nodecon->context); in cil_tree_print_node() 1356 } else if (nodecon->context_str != NULL) { in cil_tree_print_node() [all …]
|
D | cil_reset_ast.c | 298 static void cil_reset_nodecon(struct cil_nodecon *nodecon) in cil_reset_nodecon() argument 300 if (nodecon->context_str == NULL) { in cil_reset_nodecon() 301 cil_reset_context(nodecon->context); in cil_reset_nodecon()
|
D | cil.c | 254 cil_sort_init(&(*db)->nodecon); in cil_db_init() 303 cil_sort_destroy(&(*db)->nodecon); in cil_db_destroy() 2225 void cil_nodecon_init(struct cil_nodecon **nodecon) in cil_nodecon_init() argument 2227 *nodecon = cil_malloc(sizeof(**nodecon)); in cil_nodecon_init() 2229 (*nodecon)->addr_str = NULL; in cil_nodecon_init() 2230 (*nodecon)->addr = NULL; in cil_nodecon_init() 2231 (*nodecon)->mask_str = NULL; in cil_nodecon_init() 2232 (*nodecon)->mask = NULL; in cil_nodecon_init() 2233 (*nodecon)->context_str = NULL; in cil_nodecon_init() 2234 (*nodecon)->context = NULL; in cil_nodecon_init()
|
D | cil_build_ast.c | 4344 struct cil_nodecon *nodecon = NULL; in cil_gen_nodecon() local 4355 cil_nodecon_init(&nodecon); in cil_gen_nodecon() 4358 nodecon->addr_str = parse_current->next->data; in cil_gen_nodecon() 4360 cil_ipaddr_init(&nodecon->addr); in cil_gen_nodecon() 4362 rc = cil_fill_ipaddr(parse_current->next->cl_head, nodecon->addr); in cil_gen_nodecon() 4369 nodecon->mask_str = parse_current->next->next->data; in cil_gen_nodecon() 4371 cil_ipaddr_init(&nodecon->mask); in cil_gen_nodecon() 4373 rc = cil_fill_ipaddr(parse_current->next->next->cl_head, nodecon->mask); in cil_gen_nodecon() 4380 nodecon->context_str = parse_current->next->next->next->data; in cil_gen_nodecon() 4382 cil_context_init(&nodecon->context); in cil_gen_nodecon() [all …]
|
D | cil_post.c | 399 db->nodecon->count++; in __cil_post_db_count_helper() 525 struct cil_sort *sort = db->nodecon; in __cil_post_db_array_helper() 1588 struct cil_nodecon *nodecon = node->data; in __cil_post_db_cat_helper() local 1589 rc = __evaluate_levelrange_expression(nodecon->context->range, db); in __cil_post_db_cat_helper() 1939 …qsort(db->nodecon->array, db->nodecon->count, sizeof(db->nodecon->array), cil_post_nodecon_compare… in cil_post_db()
|
D | cil_resolve_ast.c | 1921 struct cil_nodecon *nodecon = current->data; in cil_resolve_nodecon() local 1927 if (nodecon->addr_str != NULL) { in cil_resolve_nodecon() 1928 rc = cil_resolve_name(current, nodecon->addr_str, CIL_SYM_IPADDRS, extra_args, &addr_datum); in cil_resolve_nodecon() 1932 nodecon->addr = (struct cil_ipaddr*)addr_datum; in cil_resolve_nodecon() 1935 if (nodecon->mask_str != NULL) { in cil_resolve_nodecon() 1936 rc = cil_resolve_name(current, nodecon->mask_str, CIL_SYM_IPADDRS, extra_args, &mask_datum); in cil_resolve_nodecon() 1940 nodecon->mask = (struct cil_ipaddr*)mask_datum; in cil_resolve_nodecon() 1943 if (nodecon->context_str != NULL) { in cil_resolve_nodecon() 1944 …rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_nodecon() 1948 nodecon->context = (struct cil_context*)context_datum; in cil_resolve_nodecon() [all …]
|
D | cil_internal.h | 281 struct cil_sort *nodecon; member 984 void cil_nodecon_init(struct cil_nodecon **nodecon);
|
/external/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 29 ;(nodecon ip_v4 netmask con) 30 ;(nodecon ip_v6 netmask_v6 con_anon_l)
|
D | mls_policy.cil | 53 (nodecon ip_v4 netmask con) 54 (nodecon ip_v6 netmask_v6 con_anon_l)
|
/external/selinux/secilc/test/ |
D | integration.cil | 171 (nodecon ip_v4 netmask system_u_bin_t_l2h) 172 (nodecon ip_v6 netmask_v6 system_u_bin_t_l2h)
|
D | policy.cil | 269 (nodecon ip_v4 netmask system_u_bin_t_l2h) 270 (nodecon ip_v6 netmask_v6 system_u_bin_t_l2h)
|
/external/selinux/libsepol/tests/policies/test-hooks/ |
D | cmp_policy.conf | 467 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(g_b_user_1:object_r:g_b_type_1, s0)
|
D | small-base.conf | 467 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(g_b_user_1:object_r:g_b_type_1, s0)
|
/external/selinux/libsepol/tests/policies/test-expander/ |
D | role-base.conf | 479 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:system_t, s0)
|
D | alias-base.conf | 497 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:system_t, s0)
|
D | user-base.conf | 483 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:system_t, s0)
|
/external/selinux/checkpolicy/ |
D | policy_scan.l | 188 nodecon |
|
/external/selinux/libsepol/tests/policies/test-deps/ |
D | base-notmetreq.conf | 506 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:net_foo_t, s0)
|
D | small-base.conf | 507 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:net_foo_t, s0)
|
D | base-metreq.conf | 519 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(system_u:object_r:net_foo_t, s0)
|
/external/selinux/libsepol/tests/policies/test-linker/ |
D | small-base.conf | 596 nodecon ::1 FFFF:FFFF:FFFF:FFFF:: gen_context(g_b_user_1:object_r:g_b_type_1, s0)
|