Home
last modified time | relevance | path

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

/external/selinux/secilc/docs/
Dcil_infiniband_statements.md6 ibpkeycon section in Infiniband Statements
13 (ibpkeycon subnet pkey|(pkey_low pkey_high) context_id)
24 <td align="left"><p><code>ibpkeycon</code></p></td>
25 <td align="left"><p>The <code>ibpkeycon</code> keyword.</p></td>
46 (ibpkeycon fe80:: (0 0x10) (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
DREADME.md148 * [ibpkeycon](cil_infiniband_statements.md#ibpkeycon)
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c292 static void cil_reset_ibpkeycon(struct cil_ibpkeycon *ibpkeycon) in cil_reset_ibpkeycon() argument
294 if (!ibpkeycon->context_str) in cil_reset_ibpkeycon()
295 cil_reset_context(ibpkeycon->context); in cil_reset_ibpkeycon()
Dcil_tree.c1417 struct cil_ibpkeycon *ibpkeycon = node->data; in cil_tree_print_node() local
1419 cil_log(CIL_INFO, "IBPKEYCON: %s", ibpkeycon->subnet_prefix_str); in cil_tree_print_node()
1420 cil_log(CIL_INFO, " (%d %d) ", ibpkeycon->pkey_low, ibpkeycon->pkey_high); in cil_tree_print_node()
1422 if (ibpkeycon->context) in cil_tree_print_node()
1423 cil_tree_print_context(ibpkeycon->context); in cil_tree_print_node()
1424 else if (ibpkeycon->context_str) in cil_tree_print_node()
1425 cil_log(CIL_INFO, " %s", ibpkeycon->context_str); in cil_tree_print_node()
Dcil.c426 cil_sort_init(&(*db)->ibpkeycon); in cil_db_init()
479 cil_sort_destroy(&(*db)->ibpkeycon); in cil_db_destroy()
2454 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon) in cil_ibpkeycon_init() argument
2456 *ibpkeycon = cil_malloc(sizeof(**ibpkeycon)); in cil_ibpkeycon_init()
2458 (*ibpkeycon)->subnet_prefix_str = NULL; in cil_ibpkeycon_init()
2459 (*ibpkeycon)->pkey_low = 0; in cil_ibpkeycon_init()
2460 (*ibpkeycon)->pkey_high = 0; in cil_ibpkeycon_init()
2461 (*ibpkeycon)->context_str = NULL; in cil_ibpkeycon_init()
2462 (*ibpkeycon)->context = NULL; in cil_ibpkeycon_init()
Dcil_build_ast.c4304 struct cil_ibpkeycon *ibpkeycon = NULL; in cil_gen_ibpkeycon() local
4313 cil_ibpkeycon_init(&ibpkeycon); in cil_gen_ibpkeycon()
4315 ibpkeycon->subnet_prefix_str = parse_current->next->data; in cil_gen_ibpkeycon()
4320 rc = cil_fill_integer(parse_current->next->next->cl_head, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4325 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &ibpkeycon->pkey_high, 0); in cil_gen_ibpkeycon()
4336 rc = cil_fill_integer(parse_current->next->next, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4341 ibpkeycon->pkey_high = ibpkeycon->pkey_low; in cil_gen_ibpkeycon()
4345 ibpkeycon->context_str = parse_current->next->next->next->data; in cil_gen_ibpkeycon()
4347 cil_context_init(&ibpkeycon->context); in cil_gen_ibpkeycon()
4349 rc = cil_fill_context(parse_current->next->next->next->cl_head, ibpkeycon->context); in cil_gen_ibpkeycon()
[all …]
Dcil_policy.c1719 struct cil_ibpkeycon *ibpkeycon = (struct cil_ibpkeycon *)ibpkeycons->array[i]; in cil_ibpkeycons_to_policy() local
1721 fprintf(out, "ibpkeycon %s ", ibpkeycon->subnet_prefix_str); in cil_ibpkeycons_to_policy()
1722 fprintf(out, "%d ", ibpkeycon->pkey_low); in cil_ibpkeycons_to_policy()
1723 fprintf(out, "%d ", ibpkeycon->pkey_high); in cil_ibpkeycons_to_policy()
1724 cil_context_to_policy(out, ibpkeycon->context, mls); in cil_ibpkeycons_to_policy()
1973 cil_ibpkeycons_to_policy(out, db->ibpkeycon, db->mls); in cil_gen_policy()
Dcil_internal.h293 struct cil_sort *ibpkeycon; member
1035 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon);
Dcil_post.c626 db->ibpkeycon->count++; in __cil_post_db_count_helper()
777 struct cil_sort *sort = db->ibpkeycon; in __cil_post_db_array_helper()
1912 struct cil_ibpkeycon *ibpkeycon = node->data; in __cil_post_db_cat_helper() local
1914 rc = __evaluate_levelrange_expression(ibpkeycon->context->range, db); in __cil_post_db_cat_helper()
2370 …rc = __cil_post_process_context_rules(db->ibpkeycon, cil_post_ibpkeycon_compare, cil_post_ibpkeyco… in cil_post_db()
Dcil_build_ast.h179 void cil_destroy_ibpkeycon(struct cil_ibpkeycon *ibpkeycon);
Dcil_resolve_ast.c1925 struct cil_ibpkeycon *ibpkeycon = current->data; in cil_resolve_ibpkeycon() local
1929 if (ibpkeycon->context_str) { in cil_resolve_ibpkeycon()
1930 …rc = cil_resolve_name(current, ibpkeycon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ibpkeycon()
1934 ibpkeycon->context = (struct cil_context *)context_datum; in cil_resolve_ibpkeycon()
1936 rc = cil_resolve_context(current, ibpkeycon->context, extra_args); in cil_resolve_ibpkeycon()
Dcil_binary.c3841 rc = cil_ibpkeycon_to_policydb(pdb, db->ibpkeycon); in __cil_contexts_to_policydb()
/external/selinux/libsepol/src/
Dkernel_to_conf.c2686 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_conf() local
2695 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf()
2696 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_conf()
2697 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf()
2698 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf()
2708 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf()
2709 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
2720 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_conf()
Dkernel_to_cil.c2813 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_cil() local
2822 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil()
2823 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_cil()
2824 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil()
2825 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil()
2835 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil()
2836 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
2847 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_cil()
Dmodule_to_cil.c2646 struct ocontext *ibpkeycon; in ocontext_selinux_ibpkey_to_cil() local
2652 for (ibpkeycon = ibpkeycons; ibpkeycon; ibpkeycon = ibpkeycon->next) { in ocontext_selinux_ibpkey_to_cil()
2653 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil()
2654 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil()
2655 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil()
2656 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
2672 context_to_cil(pdb, &ibpkeycon->context[0]); in ocontext_selinux_ibpkey_to_cil()
/external/selinux/secilc/test/
Dpolicy.cil287 (ibpkeycon fe80:: (0 0x10) system_u_bin_t_l2h)
288 …(ibpkeycon fe80::7629:afff:fe0f:8e5d (15 25) (system_u system_r kernel_t (low (s3 (cats01 cats02))…
/external/selinux/checkpolicy/
Dpolicy_scan.l187 ibpkeycon |