Home
last modified time | relevance | path

Searched refs:ioportcon (Results 1 – 14 of 14) sorted by relevance

/third_party/selinux/secilc/docs/
Dcil_xen_statements.md52 ioportcon section in Xen Statements
60 (ioportcon port|(port_low port_high) context_id)
72 <td align="left"><p><code>ioportcon</code></p></td>
73 <td align="left"><p>The <code>ioportcon</code> keyword.</p></td>
93 (ioportcon 60608 (unconfined.user object_r unconfined.object low_low))
DREADME.md154 * [ioportcon](cil_xen_statements.md#ioportcon)
/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c409 static void cil_reset_ioportcon(struct cil_ioportcon *ioportcon) in cil_reset_ioportcon() argument
411 if (ioportcon->context_str == NULL) { in cil_reset_ioportcon()
412 cil_reset_context(ioportcon->context); in cil_reset_ioportcon()
414 ioportcon->context = NULL; in cil_reset_ioportcon()
Dcil_write_ast.c1411 struct cil_ioportcon *ioportcon = node->data; in cil_write_ast_node() local
1413 if (ioportcon->ioport_low == ioportcon->ioport_high) in cil_write_ast_node()
1414 fprintf(out, "%d ", ioportcon->ioport_low); in cil_write_ast_node()
1416 fprintf(out, "(%d %d) ", ioportcon->ioport_low, ioportcon->ioport_high); in cil_write_ast_node()
1418 if (ioportcon->context) in cil_write_ast_node()
1419 write_context(out, ioportcon->context, CIL_TRUE); in cil_write_ast_node()
1421 fprintf(out, "%s", ioportcon->context_str); in cil_write_ast_node()
Dcil.c422 cil_sort_init(&(*db)->ioportcon); in cil_db_init()
477 cil_sort_destroy(&(*db)->ioportcon); in cil_db_destroy()
2610 void cil_ioportcon_init(struct cil_ioportcon **ioportcon) in cil_ioportcon_init() argument
2612 *ioportcon = cil_malloc(sizeof(**ioportcon)); in cil_ioportcon_init()
2614 (*ioportcon)->context_str = NULL; in cil_ioportcon_init()
2615 (*ioportcon)->context = NULL; in cil_ioportcon_init()
Dcil_build_ast.c4961 struct cil_ioportcon *ioportcon = NULL; in cil_gen_ioportcon() local
4972 cil_ioportcon_init(&ioportcon); in cil_gen_ioportcon()
4977 rc = cil_fill_integer(parse_current->next->cl_head, &ioportcon->ioport_low, 0); in cil_gen_ioportcon()
4982 rc = cil_fill_integer(parse_current->next->cl_head->next, &ioportcon->ioport_high, 0); in cil_gen_ioportcon()
4993 rc = cil_fill_integer(parse_current->next, &ioportcon->ioport_low, 0); in cil_gen_ioportcon()
4998 ioportcon->ioport_high = ioportcon->ioport_low; in cil_gen_ioportcon()
5002 ioportcon->context_str = parse_current->next->next->data; in cil_gen_ioportcon()
5004 cil_context_init(&ioportcon->context); in cil_gen_ioportcon()
5006 rc = cil_fill_context(parse_current->next->next->cl_head, ioportcon->context); in cil_gen_ioportcon()
5012 ast_node->data = ioportcon; in cil_gen_ioportcon()
[all …]
Dcil_policy.c1878 struct cil_ioportcon *ioportcon; in cil_ioportcons_to_policy() local
1881 ioportcon = ioportcons->array[i]; in cil_ioportcons_to_policy()
1882 fprintf(out, "ioportcon 0x%x-0x%x ", ioportcon->ioport_low, ioportcon->ioport_high); in cil_ioportcons_to_policy()
1883 cil_context_to_policy(out, ioportcon->context, mls); in cil_ioportcons_to_policy()
1981 cil_ioportcons_to_policy(out, db->ioportcon, db->mls); in cil_gen_policy()
Dcil_internal.h305 struct cil_sort *ioportcon; member
1053 void cil_ioportcon_init(struct cil_ioportcon **ioportcon);
Dcil_post.c655 db->ioportcon->count++; in __cil_post_db_count_helper()
835 struct cil_sort *sort = db->ioportcon; in __cil_post_db_array_helper()
1986 struct cil_ioportcon *ioportcon = node->data; in __cil_post_db_cat_helper() local
1987 rc = __evaluate_levelrange_expression(ioportcon->context->range, db); in __cil_post_db_cat_helper()
2437 …rc = __cil_post_process_context_rules(db->ioportcon, cil_post_ioportcon_compare, cil_post_ioportco… in cil_post_db()
Dcil_build_ast.h197 void cil_destroy_ioportcon(struct cil_ioportcon *ioportcon);
Dcil_resolve_ast.c2188 struct cil_ioportcon *ioportcon = current->data; in cil_resolve_ioportcon() local
2192 if (ioportcon->context_str != NULL) { in cil_resolve_ioportcon()
2193 …rc = cil_resolve_name(current, ioportcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ioportcon()
2197 ioportcon->context = (struct cil_context*)context_datum; in cil_resolve_ioportcon()
2199 rc = cil_resolve_context(current, ioportcon->context, extra_args); in cil_resolve_ioportcon()
Dcil_binary.c4081 rc = cil_ioportcon_to_policydb(pdb, db->ioportcon); in __cil_contexts_to_policydb()
/third_party/selinux/checkpolicy/
Dpolicy_scan.l215 ioportcon |
/third_party/selinux/secilc/test/
Dintegration.cil182 (ioportcon (22 22) system_u_bin_t_l2h)