Home
last modified time | relevance | path

Searched refs:devicetreecon (Results 1 – 13 of 13) sorted by relevance

/third_party/selinux/secilc/docs/
Dcil_xen_statements.md4 Policy version 30 introduced the [`devicetreecon`](cil_xen_statements.md#devicetreecon) statement a…
180 devicetreecon section in Xen Statements
188 (devicetreecon path context_id)
200 <td align="left"><p><code>devicetreecon</code></p></td>
201 <td align="left"><p>The <code>devicetreecon</code> keyword.</p></td>
219 (devicetreecon "/this is/a/path" (unconfined.user object_r unconfined.object low_low))
DREADME.md157 * [devicetreecon](cil_xen_statements.md#devicetreecon)
/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c427 static void cil_reset_devicetreecon(struct cil_devicetreecon *devicetreecon) in cil_reset_devicetreecon() argument
429 if (devicetreecon->context_str == NULL) { in cil_reset_devicetreecon()
430 cil_reset_context(devicetreecon->context); in cil_reset_devicetreecon()
432 devicetreecon->context = NULL; in cil_reset_devicetreecon()
Dcil_write_ast.c1436 struct cil_devicetreecon *devicetreecon = node->data; in cil_write_ast_node() local
1437 fprintf(out, "(devicetreecon \"%s\" ", devicetreecon->path); in cil_write_ast_node()
1438 if (devicetreecon->context) in cil_write_ast_node()
1439 write_context(out, devicetreecon->context, CIL_TRUE); in cil_write_ast_node()
1441 fprintf(out, "%s", devicetreecon->context_str); in cil_write_ast_node()
Dcil_internal.h307 struct cil_sort *devicetreecon; member
1055 void cil_devicetreecon_init(struct cil_devicetreecon **devicetreecon);
Dcil_policy.c1904 struct cil_devicetreecon *devicetreecon; in cil_devicetreecons_to_policy() local
1907 devicetreecon = devicetreecons->array[i]; in cil_devicetreecons_to_policy()
1908 fprintf(out, "devicetreecon %s ", devicetreecon->path); in cil_devicetreecons_to_policy()
1909 cil_context_to_policy(out, devicetreecon->context, mls); in cil_devicetreecons_to_policy()
1983 cil_devicetreecons_to_policy(out, db->devicetreecon, db->mls); in cil_gen_policy()
Dcil_build_ast.c5109 struct cil_devicetreecon *devicetreecon = NULL; in cil_gen_devicetreecon() local
5120 cil_devicetreecon_init(&devicetreecon); in cil_gen_devicetreecon()
5122 devicetreecon->path = parse_current->next->data; in cil_gen_devicetreecon()
5125 devicetreecon->context_str = parse_current->next->next->data; in cil_gen_devicetreecon()
5127 cil_context_init(&devicetreecon->context); in cil_gen_devicetreecon()
5129 rc = cil_fill_context(parse_current->next->next->cl_head, devicetreecon->context); in cil_gen_devicetreecon()
5135 ast_node->data = devicetreecon; in cil_gen_devicetreecon()
5142 cil_destroy_devicetreecon(devicetreecon); in cil_gen_devicetreecon()
5146 void cil_destroy_devicetreecon(struct cil_devicetreecon *devicetreecon) in cil_destroy_devicetreecon() argument
5148 if (devicetreecon == NULL) { in cil_destroy_devicetreecon()
[all …]
Dcil_post.c661 db->devicetreecon->count++; in __cil_post_db_count_helper()
857 struct cil_sort *sort = db->devicetreecon; in __cil_post_db_array_helper()
2002 struct cil_devicetreecon *devicetreecon = node->data; in __cil_post_db_cat_helper() local
2003 rc = __evaluate_levelrange_expression(devicetreecon->context->range, db); in __cil_post_db_cat_helper()
2449 …rc = __cil_post_process_context_rules(db->devicetreecon, cil_post_devicetreecon_compare, cil_post_… in cil_post_db()
Dcil_build_ast.h201 void cil_destroy_devicetreecon(struct cil_devicetreecon *devicetreecon);
Dcil_resolve_ast.c2238 struct cil_devicetreecon *devicetreecon = current->data; in cil_resolve_devicetreecon() local
2242 if (devicetreecon->context_str != NULL) { in cil_resolve_devicetreecon()
2243 …rc = cil_resolve_name(current, devicetreecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_… in cil_resolve_devicetreecon()
2247 devicetreecon->context = (struct cil_context*)context_datum; in cil_resolve_devicetreecon()
2249 rc = cil_resolve_context(current, devicetreecon->context, extra_args); in cil_resolve_devicetreecon()
Dcil.c424 cil_sort_init(&(*db)->devicetreecon); in cil_db_init()
479 cil_sort_destroy(&(*db)->devicetreecon); in cil_db_destroy()
Dcil_binary.c4091 rc = cil_devicetreecon_to_policydb(pdb, db->devicetreecon); in __cil_contexts_to_policydb()
/third_party/selinux/checkpolicy/
Dpolicy_scan.l219 devicetreecon |