Home
last modified time | relevance | path

Searched refs:netifcon (Results 1 – 17 of 17) sorted by relevance

/third_party/selinux/secilc/docs/
Dcil_network_labeling_statements.md7 …ay be referenced by other CIL statements (i.e. [`netifcon`](cil_network_labeling_statements.md#net…
58 netifcon section in Network Labeling Statements
66 (netifcon netif_name netif_context_id packet_context_id)
78 <td align="left"><p><code>netifcon</code></p></td>
79 <td align="left"><p>The <code>netifcon</code> keyword.</p></td>
100 These examples show named and anonymous [`netifcon`](cil_network_labeling_statements.md#netifcon) s…
106 (netifcon eth0 context_1 (unconfined.user object_r unconfined.object levelrange_1))
107 (netifcon eth1 context_1 (unconfined.user object_r unconfined.object ((s0) level_1)))
108 (netifcon eth3 context_1 context_2)
Dcil_context_statement.md81 …he first and named context for the second in a [`netifcon`](cil_network_labeling_statements.md#net…
86 (netifcon eth04 (test.user object_r test.process ((s0 (c0)) (s1 (c0)))) netif_context)
DREADME.md100 * [netifcon](cil_network_labeling_statements.md#netifcon)
/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c367 static void cil_reset_netifcon(struct cil_netifcon *netifcon) in cil_reset_netifcon() argument
369 if (netifcon->if_context_str == NULL) { in cil_reset_netifcon()
370 cil_reset_context(netifcon->if_context); in cil_reset_netifcon()
372 netifcon->if_context = NULL; in cil_reset_netifcon()
375 if (netifcon->packet_context_str == NULL) { in cil_reset_netifcon()
376 cil_reset_context(netifcon->packet_context); in cil_reset_netifcon()
378 netifcon->packet_context = NULL; in cil_reset_netifcon()
Dcil.c413 cil_sort_init(&(*db)->netifcon); in cil_db_init()
468 cil_sort_destroy(&(*db)->netifcon); in cil_db_destroy()
2098 void cil_netifcon_init(struct cil_netifcon **netifcon) in cil_netifcon_init() argument
2100 *netifcon = cil_malloc(sizeof(**netifcon)); in cil_netifcon_init()
2102 (*netifcon)->interface_str = NULL; in cil_netifcon_init()
2103 (*netifcon)->if_context_str = NULL; in cil_netifcon_init()
2104 (*netifcon)->if_context = NULL; in cil_netifcon_init()
2105 (*netifcon)->packet_context_str = NULL; in cil_netifcon_init()
2106 (*netifcon)->packet_context = NULL; in cil_netifcon_init()
2107 (*netifcon)->context_str = NULL; in cil_netifcon_init()
Dcil_write_ast.c1366 struct cil_netifcon *netifcon = node->data; in cil_write_ast_node() local
1367 fprintf(out, "(netifcon %s ", netifcon->interface_str); in cil_write_ast_node()
1368 if (netifcon->if_context) in cil_write_ast_node()
1369 write_context(out, netifcon->if_context, CIL_TRUE); in cil_write_ast_node()
1371 fprintf(out, "%s", netifcon->if_context_str); in cil_write_ast_node()
1373 if (netifcon->packet_context) in cil_write_ast_node()
1374 write_context(out, netifcon->packet_context, CIL_TRUE); in cil_write_ast_node()
1376 fprintf(out, "%s", netifcon->packet_context_str); in cil_write_ast_node()
Dcil_build_ast.c4677 struct cil_netifcon *netifcon = NULL; in cil_gen_netifcon() local
4688 cil_netifcon_init(&netifcon); in cil_gen_netifcon()
4690 netifcon->interface_str = parse_current->next->data; in cil_gen_netifcon()
4693 netifcon->if_context_str = parse_current->next->next->data; in cil_gen_netifcon()
4695 cil_context_init(&netifcon->if_context); in cil_gen_netifcon()
4697 rc = cil_fill_context(parse_current->next->next->cl_head, netifcon->if_context); in cil_gen_netifcon()
4704 netifcon->packet_context_str = parse_current->next->next->next->data; in cil_gen_netifcon()
4706 cil_context_init(&netifcon->packet_context); in cil_gen_netifcon()
4708 rc = cil_fill_context(parse_current->next->next->next->cl_head, netifcon->packet_context); in cil_gen_netifcon()
4714 ast_node->data = netifcon; in cil_gen_netifcon()
[all …]
Dcil_policy.c1776 struct cil_netifcon *netifcon; in cil_netifcons_to_policy() local
1779 netifcon = netifcons->array[i]; in cil_netifcons_to_policy()
1780 fprintf(out, "netifcon %s ", netifcon->interface_str); in cil_netifcons_to_policy()
1781 cil_context_to_policy(out, netifcon->if_context, mls); in cil_netifcons_to_policy()
1783 cil_context_to_policy(out, netifcon->packet_context, mls); in cil_netifcons_to_policy()
1975 cil_netifcons_to_policy(out, db->netifcon, db->mls); in cil_gen_policy()
Dcil_internal.h296 struct cil_sort *netifcon; member
1002 void cil_netifcon_init(struct cil_netifcon **netifcon);
Dcil_post.c628 db->netifcon->count++; in __cil_post_db_count_helper()
725 struct cil_sort *sort = db->netifcon; in __cil_post_db_array_helper()
1970 struct cil_netifcon *netifcon = node->data; in __cil_post_db_cat_helper() local
1971 rc = __evaluate_levelrange_expression(netifcon->if_context->range, db); in __cil_post_db_cat_helper()
1975 rc = __evaluate_levelrange_expression(netifcon->packet_context->range, db); in __cil_post_db_cat_helper()
2389 …rc = __cil_post_process_context_rules(db->netifcon, cil_post_netifcon_compare, cil_post_netifcon_c… in cil_post_db()
Dcil_resolve_ast.c2074 struct cil_netifcon *netifcon = current->data; in cil_resolve_netifcon() local
2080 if (netifcon->if_context_str != NULL) { in cil_resolve_netifcon()
2081 …rc = cil_resolve_name(current, netifcon->if_context_str, CIL_SYM_CONTEXTS, extra_args, &ifcon_datu… in cil_resolve_netifcon()
2085 netifcon->if_context = (struct cil_context*)ifcon_datum; in cil_resolve_netifcon()
2087 rc = cil_resolve_context(current, netifcon->if_context, extra_args); in cil_resolve_netifcon()
2093 if (netifcon->packet_context_str != NULL) { in cil_resolve_netifcon()
2094 …rc = cil_resolve_name(current, netifcon->packet_context_str, CIL_SYM_CONTEXTS, extra_args, &packco… in cil_resolve_netifcon()
2098 netifcon->packet_context = (struct cil_context*)packcon_datum; in cil_resolve_netifcon()
2100 rc = cil_resolve_context(current, netifcon->packet_context, extra_args); in cil_resolve_netifcon()
Dcil_build_ast.h191 void cil_destroy_netifcon(struct cil_netifcon *netifcon);
Dcil_binary.c4040 rc = cil_netifcon_to_policydb(pdb, db->netifcon); in __cil_contexts_to_policydb()
/third_party/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil22 ;(netifcon eth0 con con_anon_l)
39 ;(netifcon eth0 con con_anon_l)
Dmls_policy.cil46 (netifcon eth0 con con_anon_l)
63 (netifcon eth0 con con_anon_l)
/third_party/selinux/checkpolicy/
Dpolicy_scan.l207 netifcon |
/third_party/selinux/secilc/test/
Dintegration.cil176 (netifcon eth0 system_u_bin_t_l2h system_u_bin_t_l2h) ;different contexts?