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.c1273 struct cil_ibpkeycon *ibpkeycon = node->data; in cil_write_ast_node() local
1274 fprintf(out, "(ibpkeycon %s ", ibpkeycon->subnet_prefix_str); in cil_write_ast_node()
1275 fprintf(out, "(%d %d) ", ibpkeycon->pkey_low, ibpkeycon->pkey_high); in cil_write_ast_node()
1276 if (ibpkeycon->context) in cil_write_ast_node()
1277 write_context(out, ibpkeycon->context, CIL_TRUE); in cil_write_ast_node()
1278 else if (ibpkeycon->context_str) in cil_write_ast_node()
1279 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()
2547 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon) in cil_ibpkeycon_init() argument
2549 *ibpkeycon = cil_malloc(sizeof(**ibpkeycon)); in cil_ibpkeycon_init()
2551 (*ibpkeycon)->subnet_prefix_str = NULL; in cil_ibpkeycon_init()
2552 (*ibpkeycon)->pkey_low = 0; in cil_ibpkeycon_init()
2553 (*ibpkeycon)->pkey_high = 0; in cil_ibpkeycon_init()
2554 (*ibpkeycon)->context_str = NULL; in cil_ibpkeycon_init()
2555 (*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
1047 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()
2401 …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.c1950 struct cil_ibpkeycon *ibpkeycon = current->data; in cil_resolve_ibpkeycon() local
1954 if (ibpkeycon->context_str) { in cil_resolve_ibpkeycon()
1955 …rc = cil_resolve_name(current, ibpkeycon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ibpkeycon()
1959 ibpkeycon->context = (struct cil_context *)context_datum; in cil_resolve_ibpkeycon()
1961 rc = cil_resolve_context(current, ibpkeycon->context, extra_args); in cil_resolve_ibpkeycon()
Dcil_binary.c4060 rc = cil_ibpkeycon_to_policydb(pdb, db->ibpkeycon); in __cil_contexts_to_policydb()
/third_party/selinux/libsepol/src/
Dkernel_to_conf.c2777 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_conf() local
2786 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf()
2787 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_conf()
2788 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf()
2789 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf()
2798 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf()
2799 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf()
2810 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_conf()
Dkernel_to_cil.c2913 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_cil() local
2922 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_cil()
2923 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_cil()
2924 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_cil()
2925 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_cil()
2934 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_cil()
2935 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_cil()
2946 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_cil()
Dmodule_to_cil.c2669 struct ocontext *ibpkeycon; in ocontext_selinux_ibpkey_to_cil() local
2675 for (ibpkeycon = ibpkeycons; ibpkeycon; ibpkeycon = ibpkeycon->next) { in ocontext_selinux_ibpkey_to_cil()
2676 low = ibpkeycon->u.ibpkey.low_pkey; in ocontext_selinux_ibpkey_to_cil()
2677 high = ibpkeycon->u.ibpkey.high_pkey; in ocontext_selinux_ibpkey_to_cil()
2678 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in ocontext_selinux_ibpkey_to_cil()
2679 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in ocontext_selinux_ibpkey_to_cil()
2694 context_to_cil(pdb, &ibpkeycon->context[0]); in ocontext_selinux_ibpkey_to_cil()
/third_party/selinux/checkpolicy/
Dpolicy_scan.l201 ibpkeycon |