Home
last modified time | relevance | path

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

/external/selinux/secilc/docs/
Dcil_xen_statements.md4 Policy version 30 introduced the [`devicetreecon`](cil_xen_statements.md#devicetreecon) statement a…
164 devicetreecon section in Xen Statements
171 (devicetreecon path context_id)
182 <td align="left"><p><code>devicetreecon</code></p></td>
183 <td align="left"><p>The <code>devicetreecon</code> keyword.</p></td>
200 (devicetreecon "/this is/a/path" (unconfined.user object_r unconfined.object low_low))
DREADME.md156 * [devicetreecon](cil_xen_statements.md#devicetreecon)
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c365 static void cil_reset_devicetreecon(struct cil_devicetreecon *devicetreecon) in cil_reset_devicetreecon() argument
367 if (devicetreecon->context_str == NULL) { in cil_reset_devicetreecon()
368 cil_reset_context(devicetreecon->context); in cil_reset_devicetreecon()
Dcil_tree.c1581 struct cil_devicetreecon *devicetreecon = node->data; in cil_tree_print_node() local
1583 cil_log(CIL_INFO, "DEVICETREECON %s", devicetreecon->path); in cil_tree_print_node()
1584 if (devicetreecon->context != NULL) { in cil_tree_print_node()
1585 cil_tree_print_context(devicetreecon->context); in cil_tree_print_node()
1587 cil_log(CIL_INFO, " %s", devicetreecon->context_str); in cil_tree_print_node()
Dcil_internal.h299 struct cil_sort *devicetreecon; member
1041 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.c5074 struct cil_devicetreecon *devicetreecon = NULL; in cil_gen_devicetreecon() local
5085 cil_devicetreecon_init(&devicetreecon); in cil_gen_devicetreecon()
5087 devicetreecon->path = parse_current->next->data; in cil_gen_devicetreecon()
5090 devicetreecon->context_str = parse_current->next->next->data; in cil_gen_devicetreecon()
5092 cil_context_init(&devicetreecon->context); in cil_gen_devicetreecon()
5094 rc = cil_fill_context(parse_current->next->next->cl_head, devicetreecon->context); in cil_gen_devicetreecon()
5100 ast_node->data = devicetreecon; in cil_gen_devicetreecon()
5107 cil_destroy_devicetreecon(devicetreecon); in cil_gen_devicetreecon()
5111 void cil_destroy_devicetreecon(struct cil_devicetreecon *devicetreecon) in cil_destroy_devicetreecon() argument
5113 if (devicetreecon == NULL) { in cil_destroy_devicetreecon()
[all …]
Dcil_post.c647 db->devicetreecon->count++; in __cil_post_db_count_helper()
843 struct cil_sort *sort = db->devicetreecon; in __cil_post_db_array_helper()
2004 struct cil_devicetreecon *devicetreecon = node->data; in __cil_post_db_cat_helper() local
2005 rc = __evaluate_levelrange_expression(devicetreecon->context->range, db); in __cil_post_db_cat_helper()
2432 …rc = __cil_post_process_context_rules(db->devicetreecon, cil_post_devicetreecon_compare, cil_post_… in cil_post_db()
Dcil_build_ast.h199 void cil_destroy_devicetreecon(struct cil_devicetreecon *devicetreecon);
Dcil_resolve_ast.c2217 struct cil_devicetreecon *devicetreecon = current->data; in cil_resolve_devicetreecon() local
2221 if (devicetreecon->context_str != NULL) { in cil_resolve_devicetreecon()
2222 …rc = cil_resolve_name(current, devicetreecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_… in cil_resolve_devicetreecon()
2226 devicetreecon->context = (struct cil_context*)context_datum; in cil_resolve_devicetreecon()
2228 rc = cil_resolve_context(current, devicetreecon->context, extra_args); in cil_resolve_devicetreecon()
Dcil.c270 cil_sort_init(&(*db)->devicetreecon); in cil_db_init()
323 cil_sort_destroy(&(*db)->devicetreecon); in cil_db_destroy()
Dcil_binary.c3957 rc = cil_devicetreecon_to_policydb(pdb, db->devicetreecon); in __cil_contexts_to_policydb()
/external/selinux/checkpolicy/
Dpolicy_scan.l205 devicetreecon |
/external/selinux/secilc/test/
Dpolicy.cil284 (devicetreecon "/this is/a/path" system_u_bin_t_l2h)