/external/selinux/secilc/docs/ |
D | cil_infiniband_statements.md | 6 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)))))
|
D | README.md | 149 * [ibpkeycon](cil_infiniband_statements.md#ibpkeycon)
|
/external/selinux/libsepol/cil/src/ |
D | cil_reset_ast.c | 331 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()
|
D | cil_write_ast.c | 1275 struct cil_ibpkeycon *ibpkeycon = node->data; in cil_write_ast_node() local 1276 fprintf(out, "(ibpkeycon %s ", ibpkeycon->subnet_prefix_str); in cil_write_ast_node() 1277 fprintf(out, "(%d %d) ", ibpkeycon->pkey_low, ibpkeycon->pkey_high); in cil_write_ast_node() 1278 if (ibpkeycon->context) in cil_write_ast_node() 1279 write_context(out, ibpkeycon->context, CIL_TRUE); in cil_write_ast_node() 1280 else if (ibpkeycon->context_str) in cil_write_ast_node() 1281 fprintf(out, "%s", ibpkeycon->context_str); in cil_write_ast_node()
|
D | cil.c | 417 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()
|
D | cil_build_ast.c | 4305 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 …]
|
D | cil_policy.c | 1722 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()
|
D | cil_internal.h | 300 struct cil_sort *ibpkeycon; member 1047 void cil_ibpkeycon_init(struct cil_ibpkeycon **ibpkeycon);
|
D | cil_post.c | 640 db->ibpkeycon->count++; in __cil_post_db_count_helper() 791 struct cil_sort *sort = db->ibpkeycon; in __cil_post_db_array_helper() 1918 struct cil_ibpkeycon *ibpkeycon = node->data; in __cil_post_db_cat_helper() local 1920 rc = __evaluate_levelrange_expression(ibpkeycon->context->range, db); in __cil_post_db_cat_helper() 2389 …rc = __cil_post_process_context_rules(db->ibpkeycon, cil_post_ibpkeycon_compare, cil_post_ibpkeyco… in cil_post_db()
|
D | cil_build_ast.h | 181 void cil_destroy_ibpkeycon(struct cil_ibpkeycon *ibpkeycon);
|
D | cil_resolve_ast.c | 1950 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()
|
D | cil_binary.c | 4060 rc = cil_ibpkeycon_to_policydb(pdb, db->ibpkeycon); in __cil_contexts_to_policydb()
|
/external/selinux/libsepol/src/ |
D | kernel_to_conf.c | 2782 struct ocontext *ibpkeycon; in write_selinux_ibpkey_rules_to_conf() local 2791 for (ibpkeycon = pdb->ocontexts[OCON_IBPKEY]; ibpkeycon != NULL; in write_selinux_ibpkey_rules_to_conf() 2792 ibpkeycon = ibpkeycon->next) { in write_selinux_ibpkey_rules_to_conf() 2793 memcpy(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix, in write_selinux_ibpkey_rules_to_conf() 2794 sizeof(ibpkeycon->u.ibpkey.subnet_prefix)); in write_selinux_ibpkey_rules_to_conf() 2803 low = ibpkeycon->u.ibpkey.low_pkey; in write_selinux_ibpkey_rules_to_conf() 2804 high = ibpkeycon->u.ibpkey.high_pkey; in write_selinux_ibpkey_rules_to_conf() 2815 ctx = context_to_str(pdb, &ibpkeycon->context[0]); in write_selinux_ibpkey_rules_to_conf()
|
D | kernel_to_cil.c | 2913 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()
|
D | module_to_cil.c | 2669 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()
|
/external/selinux/checkpolicy/ |
D | policy_scan.l | 201 ibpkeycon |
|
/external/selinux/secilc/test/ |
D | policy.cil | 294 (ibpkeycon fe80:: (0 0x10) system_u_bin_t_l2h) 295 …(ibpkeycon fe80::7629:afff:fe0f:8e5d (15 25) (system_u system_r kernel_t (low (s3 (cats01 cats02))…
|