/third_party/selinux/secilc/docs/ |
D | cil_file_labeling_statements.md | 112 fsuse section in File Labeling Statements 120 (fsuse fstype fsname context_id) 132 <td align="left"><p><code>fsuse</code></p></td> 133 <td align="left"><p>The <code>fsuse</code> keyword.</p></td> 158 …ifiers are declared in the `file` namespace and the [`fsuse`](cil_file_labeling_statements.md#fsus… 172 (fsuse xattr ex4 file.labeledfs_context) 173 (fsuse xattr btrfs file.labeledfs_context) 175 (fsuse task pipefs file.pipefs_context) 176 (fsuse task sockfs file.sockfs_context) 178 (fsuse trans devpts file.devpts_context) [all …]
|
D | README.md | 78 * [fsuse](cil_file_labeling_statements.md#fsuse)
|
/third_party/selinux/libsepol/cil/test/integration_testing/ |
D | nonmls.cil | 19 ;(fsuse xattr ext3 con) 20 ;(fsuse xattr ext3 con_anon_l)
|
D | mls_policy.cil | 43 (fsuse xattr ext3 con) 44 (fsuse xattr ext3 con_anon_l)
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_policy.c | 1674 struct cil_fsuse *fsuse; in cil_fsuses_to_policy() local 1677 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() 1678 if (fsuse->type == CIL_FSUSE_XATTR) { in cil_fsuses_to_policy() 1679 fprintf(out, "fs_use_xattr %s ", fsuse->fs_str); in cil_fsuses_to_policy() 1680 cil_context_to_policy(out, fsuse->context, mls); in cil_fsuses_to_policy() 1686 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() 1687 if (fsuse->type == CIL_FSUSE_TASK) { in cil_fsuses_to_policy() 1688 fprintf(out, "fs_use_task %s ", fsuse->fs_str); in cil_fsuses_to_policy() 1689 cil_context_to_policy(out, fsuse->context, mls); in cil_fsuses_to_policy() 1695 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() [all …]
|
D | cil_reset_ast.c | 436 static void cil_reset_fsuse(struct cil_fsuse *fsuse) in cil_reset_fsuse() argument 438 if (fsuse->context_str == NULL) { in cil_reset_fsuse() 439 cil_reset_context(fsuse->context); in cil_reset_fsuse() 441 fsuse->context = NULL; in cil_reset_fsuse()
|
D | cil_write_ast.c | 1446 struct cil_fsuse *fsuse = node->data; in cil_write_ast_node() local 1448 if (fsuse->type == CIL_FSUSE_XATTR) in cil_write_ast_node() 1450 else if (fsuse->type == CIL_FSUSE_TASK) in cil_write_ast_node() 1452 else if (fsuse->type == CIL_FSUSE_TRANS) in cil_write_ast_node() 1456 fprintf(out, "%s ", fsuse->fs_str); in cil_write_ast_node() 1457 if (fsuse->context) in cil_write_ast_node() 1458 write_context(out, fsuse->context, CIL_TRUE); in cil_write_ast_node() 1460 fprintf(out, "%s", fsuse->context_str); in cil_write_ast_node()
|
D | cil.c | 425 cil_sort_init(&(*db)->fsuse); in cil_db_init() 480 cil_sort_destroy(&(*db)->fsuse); in cil_db_destroy() 2636 void cil_fsuse_init(struct cil_fsuse **fsuse) in cil_fsuse_init() argument 2638 *fsuse = cil_malloc(sizeof(**fsuse)); in cil_fsuse_init() 2640 (*fsuse)->type = 0; in cil_fsuse_init() 2641 (*fsuse)->fs_str = NULL; in cil_fsuse_init() 2642 (*fsuse)->context_str = NULL; in cil_fsuse_init() 2643 (*fsuse)->context = NULL; in cil_fsuse_init()
|
D | cil_build_ast.c | 5171 struct cil_fsuse *fsuse = NULL; in cil_gen_fsuse() local 5185 cil_fsuse_init(&fsuse); in cil_gen_fsuse() 5188 fsuse->type = CIL_FSUSE_XATTR; in cil_gen_fsuse() 5190 fsuse->type = CIL_FSUSE_TASK; in cil_gen_fsuse() 5192 fsuse->type = CIL_FSUSE_TRANS; in cil_gen_fsuse() 5198 fsuse->fs_str = parse_current->next->next->data; in cil_gen_fsuse() 5201 fsuse->context_str = parse_current->next->next->next->data; in cil_gen_fsuse() 5203 cil_context_init(&fsuse->context); in cil_gen_fsuse() 5205 rc = cil_fill_context(parse_current->next->next->next->cl_head, fsuse->context); in cil_gen_fsuse() 5211 ast_node->data = fsuse; in cil_gen_fsuse() [all …]
|
D | cil_internal.h | 308 struct cil_sort *fsuse; member 1056 void cil_fsuse_init(struct cil_fsuse **fsuse);
|
D | cil_post.c | 664 db->fsuse->count++; in __cil_post_db_count_helper() 747 struct cil_sort *sort = db->fsuse; in __cil_post_db_array_helper() 2022 struct cil_fsuse *fsuse = node->data; in __cil_post_db_cat_helper() local 2023 rc = __evaluate_levelrange_expression(fsuse->context->range, db); in __cil_post_db_cat_helper() 2425 …rc = __cil_post_process_context_rules(db->fsuse, cil_post_fsuse_compare, cil_post_fsuse_context_co… in cil_post_db()
|
D | cil_build_ast.h | 203 void cil_destroy_fsuse(struct cil_fsuse *fsuse);
|
D | cil_verify.c | 1401 struct cil_fsuse *fsuse = node->data; in __cil_verify_fsuse() local 1402 struct cil_context *ctx = fsuse->context; in __cil_verify_fsuse()
|
D | cil_resolve_ast.c | 2263 struct cil_fsuse *fsuse = current->data; in cil_resolve_fsuse() local 2267 if (fsuse->context_str != NULL) { in cil_resolve_fsuse() 2268 rc = cil_resolve_name(current, fsuse->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_fsuse() 2272 fsuse->context = (struct cil_context*)context_datum; in cil_resolve_fsuse() 2274 rc = cil_resolve_context(current, fsuse->context, extra_args); in cil_resolve_fsuse()
|
D | cil_binary.c | 4050 rc = cil_fsuse_to_policydb(pdb, db->fsuse); in __cil_contexts_to_policydb()
|
/third_party/selinux/libsepol/src/ |
D | kernel_to_conf.c | 2491 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_conf() local 2496 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2497 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_conf() 2502 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_conf() 2507 name = fsuse->u.name; in write_selinux_fsuse_rules_to_conf() 2508 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_conf()
|
D | kernel_to_cil.c | 2628 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_cil() local 2633 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2634 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_cil() 2639 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_cil() 2644 name = fsuse->u.name; in write_selinux_fsuse_rules_to_cil() 2645 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_cil()
|
D | module_to_cil.c | 2800 struct ocontext *fsuse; in ocontext_selinux_fsuse_to_cil() local 2804 for (fsuse = fsuses; fsuse != NULL; fsuse = fsuse->next) { in ocontext_selinux_fsuse_to_cil() 2805 switch (fsuse->v.behavior) { in ocontext_selinux_fsuse_to_cil() 2810 log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in ocontext_selinux_fsuse_to_cil() 2815 cil_printf("(fsuse %s %s ", behavior, fsuse->u.name); in ocontext_selinux_fsuse_to_cil() 2817 context_to_cil(pdb, &fsuse->context[0]); in ocontext_selinux_fsuse_to_cil()
|
/third_party/selinux/secilc/test/ |
D | integration.cil | 177 (fsuse xattr ext3 system_u_bin_t_l2h)
|