Home
last modified time | relevance | path

Searched refs:iomemcon (Results 1 – 15 of 15) sorted by relevance

/external/selinux/secilc/docs/
Dcil_xen_statements.md8 iomemcon section in Xen Statements
15 (iomemcon mem_addr|(mem_low mem_high) context_id)
26 <td align="left"><p><code>iomemcon</code></p></td>
27 <td align="left"><p>The <code>iomemcon</code> keyword.</p></td>
46 (iomemcon (1043424 1043455) (unconfined.user object_r unconfined.object low_low))
DREADME.md152 * [iomemcon](cil_xen_statements.md#iomemcon)
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c344 static void cil_reset_iomemcon(struct cil_iomemcon *iomemcon) in cil_reset_iomemcon() argument
346 if (iomemcon->context_str == NULL) { in cil_reset_iomemcon()
347 cil_reset_context(iomemcon->context); in cil_reset_iomemcon()
Dcil_policy.c1861 struct cil_iomemcon *iomemcon; in cil_iomemcons_to_policy() local
1864 iomemcon = iomemcons->array[i]; in cil_iomemcons_to_policy()
1865 if (iomemcon->iomem_low == iomemcon->iomem_high) { in cil_iomemcons_to_policy()
1866 fprintf(out, "iomemcon %"PRIx64" ", iomemcon->iomem_low); in cil_iomemcons_to_policy()
1868 fprintf(out, "iomemcon %"PRIx64"-%"PRIx64" ", iomemcon->iomem_low, iomemcon->iomem_high); in cil_iomemcons_to_policy()
1870 cil_context_to_policy(out, iomemcon->context, mls); in cil_iomemcons_to_policy()
1980 cil_iomemcons_to_policy(out, db->iomemcon, db->mls); in cil_gen_policy()
Dcil.c267 cil_sort_init(&(*db)->iomemcon); in cil_db_init()
320 cil_sort_destroy(&(*db)->iomemcon); in cil_db_destroy()
2343 void cil_iomemcon_init(struct cil_iomemcon **iomemcon) in cil_iomemcon_init() argument
2345 *iomemcon = cil_malloc(sizeof(**iomemcon)); in cil_iomemcon_init()
2347 (*iomemcon)->iomem_low = 0; in cil_iomemcon_init()
2348 (*iomemcon)->iomem_high = 0; in cil_iomemcon_init()
2349 (*iomemcon)->context_str = NULL; in cil_iomemcon_init()
2350 (*iomemcon)->context = NULL; in cil_iomemcon_init()
Dcil_tree.c1542 struct cil_iomemcon *iomemcon = node->data; in cil_tree_print_node() local
1544 cil_log(CIL_INFO, "IOMEMCON ( %"PRId64" %"PRId64" )", iomemcon->iomem_low, iomemcon->iomem_high); in cil_tree_print_node()
1545 if (iomemcon->context != NULL) { in cil_tree_print_node()
1546 cil_tree_print_context(iomemcon->context); in cil_tree_print_node()
1548 cil_log(CIL_INFO, " %s", iomemcon->context_str); in cil_tree_print_node()
Dcil_build_ast.c4841 struct cil_iomemcon *iomemcon = NULL; in cil_gen_iomemcon() local
4852 cil_iomemcon_init(&iomemcon); in cil_gen_iomemcon()
4857 rc = cil_fill_integer64(parse_current->next->cl_head, &iomemcon->iomem_low, 0); in cil_gen_iomemcon()
4862 rc = cil_fill_integer64(parse_current->next->cl_head->next, &iomemcon->iomem_high, 0); in cil_gen_iomemcon()
4873 rc = cil_fill_integer64(parse_current->next, &iomemcon->iomem_low, 0); in cil_gen_iomemcon()
4878 iomemcon->iomem_high = iomemcon->iomem_low; in cil_gen_iomemcon()
4882 iomemcon->context_str = parse_current->next->next->data; in cil_gen_iomemcon()
4884 cil_context_init(&iomemcon->context); in cil_gen_iomemcon()
4886 rc = cil_fill_context(parse_current->next->next->cl_head, iomemcon->context); in cil_gen_iomemcon()
4892 ast_node->data = iomemcon; in cil_gen_iomemcon()
[all …]
Dcil_internal.h296 struct cil_sort *iomemcon; member
1038 void cil_iomemcon_init(struct cil_iomemcon **iomemcon);
Dcil_post.c638 db->iomemcon->count++; in __cil_post_db_count_helper()
810 struct cil_sort *sort = db->iomemcon; in __cil_post_db_array_helper()
1980 struct cil_iomemcon *iomemcon = node->data; in __cil_post_db_cat_helper() local
1981 rc = __evaluate_levelrange_expression(iomemcon->context->range, db); in __cil_post_db_cat_helper()
2414 …rc = __cil_post_process_context_rules(db->iomemcon, cil_post_iomemcon_compare, cil_post_iomemcon_c… in cil_post_db()
Dcil_build_ast.h193 void cil_destroy_iomemcon(struct cil_iomemcon *iomemcon);
Dcil_resolve_ast.c2142 struct cil_iomemcon *iomemcon = current->data; in cil_resolve_iomemcon() local
2146 if (iomemcon->context_str != NULL) { in cil_resolve_iomemcon()
2147 …rc = cil_resolve_name(current, iomemcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum… in cil_resolve_iomemcon()
2151 iomemcon->context = (struct cil_context*)context_datum; in cil_resolve_iomemcon()
2153 rc = cil_resolve_context(current, iomemcon->context, extra_args); in cil_resolve_iomemcon()
Dcil_binary.c3942 rc = cil_iomemcon_to_policydb(pdb, db->iomemcon); in __cil_contexts_to_policydb()
/external/selinux/checkpolicy/
Dpolicy_scan.l199 iomemcon |
/external/selinux/secilc/test/
Dintegration.cil181 (iomemcon (0 255) system_u_bin_t_l2h)
Dpolicy.cil281 (iomemcon (0 255) system_u_bin_t_l2h)