Home
last modified time | relevance | path

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

/third_party/selinux/secilc/docs/
Dcil_infiniband_statements.md6 ibpkeycon section in Infiniband Statements
14 (ibpkeycon subnet pkey|(pkey_low pkey_high) context_id)
26 <td align="left"><p><code>ibpkeycon</code></p></td>
27 <td align="left"><p>The <code>ibpkeycon</code> keyword.</p></td>
49 (ibpkeycon fe80:: (0 0x10) (system_u system_r kernel_t (low (s3 (cats01 cats02)))))
DREADME.md149 * [ibpkeycon](cil_infiniband_statements.md#ibpkeycon)
/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c331 static void cil_reset_ibpkeycon(struct cil_ibpkeycon *ibpkeycon) in cil_reset_ibpkeycon() argument
333 if (ibpkeycon->context_str == NULL) { in cil_reset_ibpkeycon()
334 cil_reset_context(ibpkeycon->context); in cil_reset_ibpkeycon()
336 ibpkeycon->context = NULL; in cil_reset_ibpkeycon()
Dcil_write_ast.c1263 struct cil_ibpkeycon *ibpkeycon = node->data; in cil_write_ast_node() local
1264 fprintf(out, "(ibpkeycon %s ", ibpkeycon->subnet_prefix_str); in cil_write_ast_node()
1265 fprintf(out, "(%d %d) ", ibpkeycon->pkey_low, ibpkeycon->pkey_high); in cil_write_ast_node()
1266 if (ibpkeycon->context) in cil_write_ast_node()
1267 write_context(out, ibpkeycon->context, CIL_TRUE); in cil_write_ast_node()
1268 else if (ibpkeycon->context_str) in cil_write_ast_node()
1269 fprintf(out, "%s", ibpkeycon->context_str); in cil_write_ast_node()
Dcil.c417 cil_sort_init(&(*db)->ibpkeycon); in cil_db_init()
472 cil_sort_destroy(&(*db)->ibpkeycon); in cil_db_destroy()
2538 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon) in cil_ibpkeycon_init() argument
2540 *ibpkeycon = cil_malloc(sizeof(**ibpkeycon)); in cil_ibpkeycon_init()
2542 (*ibpkeycon)->subnet_prefix_str = NULL; in cil_ibpkeycon_init()
2543 (*ibpkeycon)->pkey_low = 0; in cil_ibpkeycon_init()
2544 (*ibpkeycon)->pkey_high = 0; in cil_ibpkeycon_init()
2545 (*ibpkeycon)->context_str = NULL; in cil_ibpkeycon_init()
2546 (*ibpkeycon)->context = NULL; in cil_ibpkeycon_init()
Dcil_build_ast.c4305 struct cil_ibpkeycon *ibpkeycon = NULL; in cil_gen_ibpkeycon() local
4314 cil_ibpkeycon_init(&ibpkeycon); in cil_gen_ibpkeycon()
4316 ibpkeycon->subnet_prefix_str = parse_current->next->data; in cil_gen_ibpkeycon()
4321 rc = cil_fill_integer(parse_current->next->next->cl_head, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4326 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &ibpkeycon->pkey_high, 0); in cil_gen_ibpkeycon()
4337 rc = cil_fill_integer(parse_current->next->next, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4342 ibpkeycon->pkey_high = ibpkeycon->pkey_low; in cil_gen_ibpkeycon()
4346 ibpkeycon->context_str = parse_current->next->next->next->data; in cil_gen_ibpkeycon()
4348 cil_context_init(&ibpkeycon->context); in cil_gen_ibpkeycon()
4350 rc = cil_fill_context(parse_current->next->next->next->cl_head, ibpkeycon->context); in cil_gen_ibpkeycon()
[all …]
Dcil_policy.c1722 struct cil_ibpkeycon *ibpkeycon = (struct cil_ibpkeycon *)ibpkeycons->array[i]; in cil_ibpkeycons_to_policy() local
1724 fprintf(out, "ibpkeycon %s ", ibpkeycon->subnet_prefix_str); in cil_ibpkeycons_to_policy()
1725 fprintf(out, "%d ", ibpkeycon->pkey_low); in cil_ibpkeycons_to_policy()
1726 fprintf(out, "%d ", ibpkeycon->pkey_high); in cil_ibpkeycons_to_policy()
1727 cil_context_to_policy(out, ibpkeycon->context, mls); in cil_ibpkeycons_to_policy()
1976 cil_ibpkeycons_to_policy(out, db->ibpkeycon, db->mls); in cil_gen_policy()
Dcil_internal.h300 struct cil_sort *ibpkeycon; member
1046 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon);
Dcil_post.c640 db->ibpkeycon->count++; in __cil_post_db_count_helper()
791 struct cil_sort *sort = db->ibpkeycon; in __cil_post_db_array_helper()
1930 struct cil_ibpkeycon *ibpkeycon = node->data; in __cil_post_db_cat_helper() local
1932 rc = __evaluate_levelrange_expression(ibpkeycon->context->range, db); in __cil_post_db_cat_helper()
2392 …rc = __cil_post_process_context_rules(db->ibpkeycon, cil_post_ibpkeycon_compare, cil_post_ibpkeyco… in cil_post_db()
Dcil_build_ast.h181 void cil_destroy_ibpkeycon(struct cil_ibpkeycon *ibpkeycon);
Dcil_resolve_ast.c1935 struct cil_ibpkeycon *ibpkeycon = current->data; in cil_resolve_ibpkeycon() local
1939 if (ibpkeycon->context_str) { in cil_resolve_ibpkeycon()
1940 …rc = cil_resolve_name(current, ibpkeycon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ibpkeycon()
1944 ibpkeycon->context = (struct cil_context *)context_datum; in cil_resolve_ibpkeycon()
1946 rc = cil_resolve_context(current, ibpkeycon->context, extra_args); in cil_resolve_ibpkeycon()
Dcil_binary.c3926 rc = cil_ibpkeycon_to_policydb(pdb, db->ibpkeycon); in __cil_contexts_to_policydb()
/third_party/selinux/libsepol/src/
Dkernel_to_cil.c2855 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_cil() local
2864 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil()
2865 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_cil()
2866 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil()
2867 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil()
2876 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil()
2877 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
2888 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_cil()
Dkernel_to_conf.c2729 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_conf() local
2738 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf()
2739 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_conf()
2740 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf()
2741 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf()
2750 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf()
2751 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
2762 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_conf()
Dmodule_to_cil.c2657 struct ocontext *ibpkeycon; in ocontext_selinux_ibpkey_to_cil() local
2663 for (ibpkeycon = ibpkeycons; ibpkeycon; ibpkeycon = ibpkeycon->next) { in ocontext_selinux_ibpkey_to_cil()
2664 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil()
2665 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil()
2666 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil()
2667 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
2682 context_to_cil(pdb, &ibpkeycon->context[0]); in ocontext_selinux_ibpkey_to_cil()
/third_party/selinux/checkpolicy/
Dpolicy_scan.l194 ibpkeycon |