Home
last modified time | relevance | path

Searched refs:genfscon (Results 1 – 25 of 29) sorted by relevance

12

/external/selinux/secilc/docs/
Dcil_file_labeling_statements.md170 genfscon section in File Labeling Statements
173 …ve a single default security context assigned by [`genfscon`](cil_file_labeling_statements.md#genf…
177 (genfscon fsname path context_id)
188 <td align="left"><p><code>genfscon</code></p></td>
189 <td align="left"><p>The <code>genfscon</code> keyword.</p></td>
208 …ers are declared in the `file` namespace and the [`genfscon`](cil_file_labeling_statements.md#genf…
222 (genfscon rootfs / rootfs_context)
224 (genfscon proc / proc_context)
225 (genfscon proc /net/xt_qtaguid/ctrl qtaguid_proc_context)
226 (genfscon proc /sysrq-trigger sysrq_proc_context)
[all …]
DREADME.md79 * [genfscon](cil_file_labeling_statements.md#genfscon)
/external/selinux/libsepol/tests/policies/test-cond/
Drefpolicy-base.conf1691 genfscon proc /mtrr system_u:object_r:mtrr_device_t:s0
1692 genfscon sysfs / system_u:object_r:sysfs_t:s0
1693 genfscon usbfs / system_u:object_r:usbfs_t:s0
1694 genfscon usbdevfs / system_u:object_r:usbfs_t:s0
1695 genfscon rootfs / system_u:object_r:root_t:s0
1696 genfscon bdev / system_u:object_r:bdev_t:s0
1697 genfscon binfmt_misc / system_u:object_r:binfmt_misc_fs_t:s0
1698 genfscon capifs / system_u:object_r:capifs_t:s0
1699 genfscon configfs / system_u:object_r:configfs_t:s0
1700 genfscon eventpollfs / system_u:object_r:eventpollfs_t:s0
[all …]
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c305 static void cil_reset_genfscon(struct cil_genfscon *genfscon) in cil_reset_genfscon() argument
307 if (genfscon->context_str == NULL) { in cil_reset_genfscon()
308 cil_reset_context(genfscon->context); in cil_reset_genfscon()
Dcil_tree.c1364 struct cil_genfscon *genfscon = node->data; in cil_tree_print_node() local
1366 cil_log(CIL_INFO, " %s %s", genfscon->fs_str, genfscon->path_str); in cil_tree_print_node()
1368 if (genfscon->context != NULL) { in cil_tree_print_node()
1369 cil_tree_print_context(genfscon->context); in cil_tree_print_node()
1370 } else if (genfscon->context_str != NULL) { in cil_tree_print_node()
1371 cil_log(CIL_INFO, " %s", genfscon->context_str); in cil_tree_print_node()
Dcil.c252 cil_sort_init(&(*db)->genfscon); in cil_db_init()
301 cil_sort_destroy(&(*db)->genfscon); in cil_db_destroy()
2237 void cil_genfscon_init(struct cil_genfscon **genfscon) in cil_genfscon_init() argument
2239 *genfscon = cil_malloc(sizeof(**genfscon)); in cil_genfscon_init()
2241 (*genfscon)->fs_str = NULL; in cil_genfscon_init()
2242 (*genfscon)->path_str = NULL; in cil_genfscon_init()
2243 (*genfscon)->context_str = NULL; in cil_genfscon_init()
2244 (*genfscon)->context = NULL; in cil_genfscon_init()
Dcil_post.c393 db->genfscon->count++; in __cil_post_db_count_helper()
503 struct cil_sort *sort = db->genfscon; in __cil_post_db_array_helper()
1596 struct cil_genfscon *genfscon = node->data; in __cil_post_db_cat_helper() local
1597 rc = __evaluate_levelrange_expression(genfscon->context->range, db); in __cil_post_db_cat_helper()
1937 …qsort(db->genfscon->array, db->genfscon->count, sizeof(db->genfscon->array), cil_post_genfscon_com… in cil_post_db()
Dcil_policy.c141 struct cil_genfscon *genfscon = (struct cil_genfscon*)sort->array[i]; in cil_genfscon_to_policy() local
142 fprintf(file_arr[NETIFCONS], "genfscon %s ", genfscon->fs_str); in cil_genfscon_to_policy()
143 fprintf(file_arr[NETIFCONS], "%s ", genfscon->path_str); in cil_genfscon_to_policy()
144 cil_context_to_policy(file_arr, NETIFCONS, genfscon->context); in cil_genfscon_to_policy()
1325 rc = cil_genfscon_to_policy(file_arr, db->genfscon); in cil_gen_policy()
Dcil_build_ast.c4434 struct cil_genfscon *genfscon = NULL; in cil_gen_genfscon() local
4445 cil_genfscon_init(&genfscon); in cil_gen_genfscon()
4447 genfscon->fs_str = parse_current->next->data; in cil_gen_genfscon()
4448 genfscon->path_str = parse_current->next->next->data; in cil_gen_genfscon()
4451 genfscon->context_str = parse_current->next->next->next->data; in cil_gen_genfscon()
4453 cil_context_init(&genfscon->context); in cil_gen_genfscon()
4455 rc = cil_fill_context(parse_current->next->next->next->cl_head, genfscon->context); in cil_gen_genfscon()
4461 ast_node->data = genfscon; in cil_gen_genfscon()
4469 cil_destroy_genfscon(genfscon); in cil_gen_genfscon()
4473 void cil_destroy_genfscon(struct cil_genfscon *genfscon) in cil_destroy_genfscon() argument
[all …]
Dcil_internal.h279 struct cil_sort *genfscon; member
985 void cil_genfscon_init(struct cil_genfscon **genfscon);
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil37 ;(genfscon type path con)
Dmls_policy.cil61 (genfscon type path con)
/external/selinux/libsepol/tests/policies/test-hooks/
Dcmp_policy.conf454 genfscon proc / gen_context(g_b_user_1:object_r:g_b_type_1, s0)
Dsmall-base.conf454 genfscon proc / gen_context(g_b_user_1:object_r:g_b_type_1, s0)
/external/selinux/libsepol/tests/policies/test-expander/
Dalias-base.conf484 genfscon proc / gen_context(system_u:object_r:system_t, s0)
Duser-base.conf470 genfscon proc / gen_context(system_u:object_r:system_t, s0)
Drole-base.conf466 genfscon proc / gen_context(system_u:object_r:system_t, s0)
Dsmall-base.conf704 genfscon proc / gen_context(system_u:object_r:sys_foo_t, s0)
/external/selinux/checkpolicy/
Dpolicy_scan.l206 genfscon |
/external/selinux/libsepol/tests/policies/test-deps/
Dsmall-base.conf494 genfscon proc / gen_context(system_u:object_r:sys_foo_t, s0)
Dbase-notmetreq.conf493 genfscon proc / gen_context(system_u:object_r:sys_foo_t, s0)
Dbase-metreq.conf506 genfscon proc / gen_context(system_u:object_r:sys_foo_t, s0)
/external/selinux/libsepol/tests/policies/test-linker/
Dsmall-base.conf583 genfscon proc / gen_context(g_b_user_1:object_r:g_b_type_1, s0)
/external/selinux/secilc/test/
Dintegration.cil175 (genfscon - "/usr/bin" system_u_bin_t_l2h)
/external/selinux/prebuilts/bin/
Dsediff.py93 args.role_trans, args.range_trans, args.initialsid, args.genfscon,
844 if all_differences or args.genfscon:
846 or args.genfscon:

12