/external/selinux/secilc/docs/ |
D | cil_network_labeling_statements.md | 7 …ay be referenced by other CIL statements (i.e. [`netifcon`](cil_network_labeling_statements.md#net… 54 netifcon section in Network Labeling Statements 61 (netifcon netif_name netif_context_id packet_context_id) 72 <td align="left"><p><code>netifcon</code></p></td> 73 <td align="left"><p>The <code>netifcon</code> keyword.</p></td> 94 These examples show named and anonymous [`netifcon`](cil_network_labeling_statements.md#netifcon) s… 99 (netifcon eth0 context_1 (unconfined.user object_r unconfined.object levelrange_1)) 100 (netifcon eth1 context_1 (unconfined.user object_r unconfined.object ((s0) level_1))) 101 (netifcon eth3 context_1 context_2)
|
D | cil_context_statement.md | 73 …he first and named context for the second in a [`netifcon`](cil_network_labeling_statements.md#net… 77 (netifcon eth04 (test.user object_r test.process ((s0 (c0)) (s1 (c0)))) netif_context)
|
D | README.md | 100 * [netifcon](cil_network_labeling_statements.md#netifcon)
|
/external/selinux/libsepol/cil/src/ |
D | cil_reset_ast.c | 312 static void cil_reset_netifcon(struct cil_netifcon *netifcon) in cil_reset_netifcon() argument 314 if (netifcon->if_context_str == NULL) { in cil_reset_netifcon() 315 cil_reset_context(netifcon->if_context); in cil_reset_netifcon() 318 if (netifcon->packet_context_str == NULL) { in cil_reset_netifcon() 319 cil_reset_context(netifcon->packet_context); in cil_reset_netifcon()
|
D | cil_tree.c | 1378 struct cil_netifcon *netifcon = node->data; in cil_tree_print_node() local 1379 cil_log(CIL_INFO, "NETIFCON %s", netifcon->interface_str); in cil_tree_print_node() 1381 if (netifcon->if_context != NULL) { in cil_tree_print_node() 1382 cil_tree_print_context(netifcon->if_context); in cil_tree_print_node() 1383 } else if (netifcon->if_context_str != NULL) { in cil_tree_print_node() 1384 cil_log(CIL_INFO, " %s", netifcon->if_context_str); in cil_tree_print_node() 1387 if (netifcon->packet_context != NULL) { in cil_tree_print_node() 1388 cil_tree_print_context(netifcon->packet_context); in cil_tree_print_node() 1389 } else if (netifcon->packet_context_str != NULL) { in cil_tree_print_node() 1390 cil_log(CIL_INFO, " %s", netifcon->packet_context_str); in cil_tree_print_node()
|
D | cil.c | 251 cil_sort_init(&(*db)->netifcon); in cil_db_init() 300 cil_sort_destroy(&(*db)->netifcon); in cil_db_destroy() 1787 void cil_netifcon_init(struct cil_netifcon **netifcon) in cil_netifcon_init() argument 1789 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init() 1791 (*netifcon)->interface_str = NULL; in cil_netifcon_init() 1792 (*netifcon)->if_context_str = NULL; in cil_netifcon_init() 1793 (*netifcon)->if_context = NULL; in cil_netifcon_init() 1794 (*netifcon)->packet_context_str = NULL; in cil_netifcon_init() 1795 (*netifcon)->packet_context = NULL; in cil_netifcon_init() 1796 (*netifcon)->context_str = NULL; in cil_netifcon_init()
|
D | cil_post.c | 390 db->netifcon->count++; in __cil_post_db_count_helper() 481 struct cil_sort *sort = db->netifcon; in __cil_post_db_array_helper() 1604 struct cil_netifcon *netifcon = node->data; in __cil_post_db_cat_helper() local 1605 rc = __evaluate_levelrange_expression(netifcon->if_context->range, db); in __cil_post_db_cat_helper() 1609 rc = __evaluate_levelrange_expression(netifcon->packet_context->range, db); in __cil_post_db_cat_helper() 1936 …qsort(db->netifcon->array, db->netifcon->count, sizeof(db->netifcon->array), cil_post_netifcon_com… in cil_post_db()
|
D | cil_build_ast.c | 4498 struct cil_netifcon *netifcon = NULL; in cil_gen_netifcon() local 4509 cil_netifcon_init(&netifcon); in cil_gen_netifcon() 4511 netifcon->interface_str = parse_current->next->data; in cil_gen_netifcon() 4514 netifcon->if_context_str = parse_current->next->next->data; in cil_gen_netifcon() 4516 cil_context_init(&netifcon->if_context); in cil_gen_netifcon() 4518 rc = cil_fill_context(parse_current->next->next->cl_head, netifcon->if_context); in cil_gen_netifcon() 4525 netifcon->packet_context_str = parse_current->next->next->next->data; in cil_gen_netifcon() 4527 cil_context_init(&netifcon->packet_context); in cil_gen_netifcon() 4529 rc = cil_fill_context(parse_current->next->next->next->cl_head, netifcon->packet_context); in cil_gen_netifcon() 4535 ast_node->data = netifcon; in cil_gen_netifcon() [all …]
|
D | cil_policy.c | 156 struct cil_netifcon *netifcon = (struct cil_netifcon*)sort->array[i]; in cil_netifcon_to_policy() local 157 fprintf(file_arr[NETIFCONS], "netifcon %s ", netifcon->interface_str); in cil_netifcon_to_policy() 158 cil_context_to_policy(file_arr, NETIFCONS, netifcon->if_context); in cil_netifcon_to_policy() 160 cil_context_to_policy(file_arr, NETIFCONS, netifcon->packet_context); in cil_netifcon_to_policy() 1319 rc = cil_netifcon_to_policy(file_arr, db->netifcon); in cil_gen_policy()
|
D | cil_internal.h | 278 struct cil_sort *netifcon; member 940 void cil_netifcon_init(struct cil_netifcon **netifcon);
|
D | cil_resolve_ast.c | 1971 struct cil_netifcon *netifcon = current->data; in cil_resolve_netifcon() local 1977 if (netifcon->if_context_str != NULL) { in cil_resolve_netifcon() 1978 …rc = cil_resolve_name(current, netifcon->if_context_str, CIL_SYM_CONTEXTS, extra_args, &ifcon_datu… in cil_resolve_netifcon() 1982 netifcon->if_context = (struct cil_context*)ifcon_datum; in cil_resolve_netifcon() 1984 rc = cil_resolve_context(current, netifcon->if_context, extra_args); in cil_resolve_netifcon() 1990 if (netifcon->packet_context_str != NULL) { in cil_resolve_netifcon() 1991 …rc = cil_resolve_name(current, netifcon->packet_context_str, CIL_SYM_CONTEXTS, extra_args, &packco… in cil_resolve_netifcon() 1995 netifcon->packet_context = (struct cil_context*)packcon_datum; in cil_resolve_netifcon() 1997 rc = cil_resolve_context(current, netifcon->packet_context, extra_args); in cil_resolve_netifcon()
|
D | cil_build_ast.h | 183 void cil_destroy_netifcon(struct cil_netifcon *netifcon);
|
D | cil_binary.c | 3628 rc = cil_netifcon_to_policydb(pdb, db->netifcon); in __cil_contexts_to_policydb()
|
/external/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 22 ;(netifcon eth0 con con_anon_l) 39 ;(netifcon eth0 con con_anon_l)
|
D | mls_policy.cil | 46 (netifcon eth0 con con_anon_l) 63 (netifcon eth0 con con_anon_l)
|
/external/selinux/checkpolicy/ |
D | policy_scan.l | 186 netifcon |
|
/external/selinux/secilc/test/ |
D | integration.cil | 176 (netifcon eth0 system_u_bin_t_l2h system_u_bin_t_l2h) ;different contexts?
|
D | policy.cil | 274 (netifcon eth0 system_u_bin_t_l2h system_u_bin_t_l2h) ;different contexts?
|
/external/selinux/prebuilts/bin/ |
D | sediff.py | 94 args.netifcon, args.nodecon, args.portcon, args.fs_use, args.polcap, 866 if all_differences or args.netifcon: 868 diff.modified_netifcons or args.netifcon:
|