/third_party/selinux/secilc/docs/ |
D | cil_file_labeling_statements.md | 110 fsuse section in File Labeling Statements 118 (fsuse fstype fsname context_id) 130 <td align="left"><p><code>fsuse</code></p></td> 131 <td align="left"><p>The <code>fsuse</code> keyword.</p></td> 156 …ifiers are declared in the `file` namespace and the [`fsuse`](cil_file_labeling_statements.md#fsus… 170 (fsuse xattr ex4 file.labeledfs_context) 171 (fsuse xattr btrfs file.labeledfs_context) 173 (fsuse task pipefs file.pipefs_context) 174 (fsuse task sockfs file.sockfs_context) 176 (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_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_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_write_ast.c | 1409 struct cil_fsuse *fsuse = node->data; in cil_write_ast_node() local 1411 if (fsuse->type == CIL_FSUSE_XATTR) in cil_write_ast_node() 1413 else if (fsuse->type == CIL_FSUSE_TASK) in cil_write_ast_node() 1415 else if (fsuse->type == CIL_FSUSE_TRANS) in cil_write_ast_node() 1419 fprintf(out, "%s ", fsuse->fs_str); in cil_write_ast_node() 1420 if (fsuse->context) in cil_write_ast_node() 1421 write_context(out, fsuse->context, CIL_TRUE); in cil_write_ast_node() 1423 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() 2626 void cil_fsuse_init(struct cil_fsuse **fsuse) in cil_fsuse_init() argument 2628 *fsuse = cil_malloc(sizeof(**fsuse)); in cil_fsuse_init() 2630 (*fsuse)->type = 0; in cil_fsuse_init() 2631 (*fsuse)->fs_str = NULL; in cil_fsuse_init() 2632 (*fsuse)->context_str = NULL; in cil_fsuse_init() 2633 (*fsuse)->context = NULL; in cil_fsuse_init()
|
D | cil_build_ast.c | 5136 struct cil_fsuse *fsuse = NULL; in cil_gen_fsuse() local 5150 cil_fsuse_init(&fsuse); in cil_gen_fsuse() 5153 fsuse->type = CIL_FSUSE_XATTR; in cil_gen_fsuse() 5155 fsuse->type = CIL_FSUSE_TASK; in cil_gen_fsuse() 5157 fsuse->type = CIL_FSUSE_TRANS; in cil_gen_fsuse() 5163 fsuse->fs_str = parse_current->next->next->data; in cil_gen_fsuse() 5166 fsuse->context_str = parse_current->next->next->next->data; in cil_gen_fsuse() 5168 cil_context_init(&fsuse->context); in cil_gen_fsuse() 5170 rc = cil_fill_context(parse_current->next->next->next->cl_head, fsuse->context); in cil_gen_fsuse() 5176 ast_node->data = fsuse; in cil_gen_fsuse() [all …]
|
D | cil_internal.h | 308 struct cil_sort *fsuse; member 1055 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() 2416 …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 | 1399 struct cil_fsuse *fsuse = node->data; in __cil_verify_fsuse() local 1400 struct cil_context *ctx = fsuse->context; in __cil_verify_fsuse()
|
D | cil_resolve_ast.c | 2248 struct cil_fsuse *fsuse = current->data; in cil_resolve_fsuse() local 2252 if (fsuse->context_str != NULL) { in cil_resolve_fsuse() 2253 rc = cil_resolve_name(current, fsuse->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_fsuse() 2257 fsuse->context = (struct cil_context*)context_datum; in cil_resolve_fsuse() 2259 rc = cil_resolve_context(current, fsuse->context, extra_args); in cil_resolve_fsuse()
|
D | cil_binary.c | 3916 rc = cil_fsuse_to_policydb(pdb, db->fsuse); in __cil_contexts_to_policydb()
|
/third_party/selinux/libsepol/src/ |
D | kernel_to_cil.c | 2601 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_cil() local 2606 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2607 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_cil() 2612 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_cil() 2617 name = fsuse->u.name; in write_selinux_fsuse_rules_to_cil() 2618 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_cil()
|
D | kernel_to_conf.c | 2474 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_conf() local 2479 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2480 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_conf() 2485 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_conf() 2490 name = fsuse->u.name; in write_selinux_fsuse_rules_to_conf() 2491 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_conf()
|
D | module_to_cil.c | 2788 struct ocontext *fsuse; in ocontext_selinux_fsuse_to_cil() local 2792 for (fsuse = fsuses; fsuse != NULL; fsuse = fsuse->next) { in ocontext_selinux_fsuse_to_cil() 2793 switch (fsuse->v.behavior) { in ocontext_selinux_fsuse_to_cil() 2798 log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in ocontext_selinux_fsuse_to_cil() 2803 cil_printf("(fsuse %s %s ", behavior, fsuse->u.name); in ocontext_selinux_fsuse_to_cil() 2805 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)
|