/external/selinux/secilc/docs/ |
D | cil_file_labeling_statements.md | 104 fsuse section in File Labeling Statements 111 (fsuse fstype fsname context_id) 122 <td align="left"><p><code>fsuse</code></p></td> 123 <td align="left"><p>The <code>fsuse</code> keyword.</p></td> 148 …ifiers are declared in the `file` namespace and the [`fsuse`](cil_file_labeling_statements.md#fsus… 161 (fsuse xattr ex4 file.labeledfs_context) 162 (fsuse xattr btrfs file.labeledfs_context) 164 (fsuse task pipefs file.pipefs_context) 165 (fsuse task sockfs file.sockfs_context) 167 (fsuse trans devpts file.devpts_context) [all …]
|
D | README.md | 78 * [fsuse](cil_file_labeling_statements.md#fsuse)
|
/external/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)
|
/external/selinux/libsepol/cil/src/ |
D | cil_policy.c | 1671 struct cil_fsuse *fsuse; in cil_fsuses_to_policy() local 1674 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() 1675 if (fsuse->type == CIL_FSUSE_XATTR) { in cil_fsuses_to_policy() 1676 fprintf(out, "fs_use_xattr %s ", fsuse->fs_str); in cil_fsuses_to_policy() 1677 cil_context_to_policy(out, fsuse->context, mls); in cil_fsuses_to_policy() 1683 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() 1684 if (fsuse->type == CIL_FSUSE_TASK) { in cil_fsuses_to_policy() 1685 fprintf(out, "fs_use_task %s ", fsuse->fs_str); in cil_fsuses_to_policy() 1686 cil_context_to_policy(out, fsuse->context, mls); in cil_fsuses_to_policy() 1692 fsuse = fsuses->array[i]; in cil_fsuses_to_policy() [all …]
|
D | cil_reset_ast.c | 372 static void cil_reset_fsuse(struct cil_fsuse *fsuse) in cil_reset_fsuse() argument 374 if (fsuse->context_str == NULL) { in cil_reset_fsuse() 375 cil_reset_context(fsuse->context); in cil_reset_fsuse()
|
D | cil_tree.c | 1594 struct cil_fsuse *fsuse = node->data; in cil_tree_print_node() local 1597 if (fsuse->type == CIL_FSUSE_XATTR) { in cil_tree_print_node() 1599 } else if (fsuse->type == CIL_FSUSE_TASK) { in cil_tree_print_node() 1601 } else if (fsuse->type == CIL_FSUSE_TRANS) { in cil_tree_print_node() 1607 cil_log(CIL_INFO, "%s ", fsuse->fs_str); in cil_tree_print_node() 1609 if (fsuse->context != NULL) { in cil_tree_print_node() 1610 cil_tree_print_context(fsuse->context); in cil_tree_print_node() 1612 cil_log(CIL_INFO, " %s", fsuse->context_str); in cil_tree_print_node()
|
D | cil_write_ast.c | 1022 struct cil_fsuse *fsuse = (struct cil_fsuse *)node->data; in cil_write_fsuse() local 1026 switch(fsuse->type) { in cil_write_fsuse() 1043 fsname = fsuse->fs_str; in cil_write_fsuse() 1044 if (fsuse->context_str != NULL) { in cil_write_fsuse() 1045 ctx_str = strdup(fsuse->context_str); in cil_write_fsuse() 1052 rc = cil_unfill_context(fsuse->context, &ctx_str); in cil_write_fsuse()
|
D | cil.c | 434 cil_sort_init(&(*db)->fsuse); in cil_db_init() 487 cil_sort_destroy(&(*db)->fsuse); in cil_db_destroy() 2542 void cil_fsuse_init(struct cil_fsuse **fsuse) in cil_fsuse_init() argument 2544 *fsuse = cil_malloc(sizeof(**fsuse)); in cil_fsuse_init() 2546 (*fsuse)->type = 0; in cil_fsuse_init() 2547 (*fsuse)->fs_str = NULL; in cil_fsuse_init() 2548 (*fsuse)->context_str = NULL; in cil_fsuse_init() 2549 (*fsuse)->context = NULL; in cil_fsuse_init()
|
D | android.c | 589 struct cil_fsuse *fsuse = (struct cil_fsuse *)node->data; in cil_attrib_fsuse() local 591 if (fsuse->context_str == NULL) { in cil_attrib_fsuse() 593 rc = cil_attrib_check_context(fsuse->context, args); in cil_attrib_fsuse()
|
D | cil_build_ast.c | 5135 struct cil_fsuse *fsuse = NULL; in cil_gen_fsuse() local 5149 cil_fsuse_init(&fsuse); in cil_gen_fsuse() 5152 fsuse->type = CIL_FSUSE_XATTR; in cil_gen_fsuse() 5154 fsuse->type = CIL_FSUSE_TASK; in cil_gen_fsuse() 5156 fsuse->type = CIL_FSUSE_TRANS; in cil_gen_fsuse() 5162 fsuse->fs_str = parse_current->next->next->data; in cil_gen_fsuse() 5165 fsuse->context_str = parse_current->next->next->next->data; in cil_gen_fsuse() 5167 cil_context_init(&fsuse->context); in cil_gen_fsuse() 5169 rc = cil_fill_context(parse_current->next->next->next->cl_head, fsuse->context); in cil_gen_fsuse() 5175 ast_node->data = fsuse; in cil_gen_fsuse() [all …]
|
D | cil_internal.h | 301 struct cil_sort *fsuse; member 1044 void cil_fsuse_init(struct cil_fsuse **fsuse);
|
D | cil_post.c | 650 db->fsuse->count++; in __cil_post_db_count_helper() 733 struct cil_sort *sort = db->fsuse; in __cil_post_db_array_helper() 2004 struct cil_fsuse *fsuse = node->data; in __cil_post_db_cat_helper() local 2005 rc = __evaluate_levelrange_expression(fsuse->context->range, db); in __cil_post_db_cat_helper() 2394 …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 | 201 void cil_destroy_fsuse(struct cil_fsuse *fsuse);
|
D | cil_verify.c | 1254 struct cil_fsuse *fsuse = node->data; in __cil_verify_fsuse() local 1255 struct cil_context *ctx = fsuse->context; in __cil_verify_fsuse()
|
D | cil_resolve_ast.c | 2238 struct cil_fsuse *fsuse = current->data; in cil_resolve_fsuse() local 2242 if (fsuse->context_str != NULL) { in cil_resolve_fsuse() 2243 rc = cil_resolve_name(current, fsuse->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_fsuse() 2247 fsuse->context = (struct cil_context*)context_datum; in cil_resolve_fsuse() 2249 rc = cil_resolve_context(current, fsuse->context, extra_args); in cil_resolve_fsuse()
|
D | cil_binary.c | 3831 rc = cil_fsuse_to_policydb(pdb, db->fsuse); in __cil_contexts_to_policydb()
|
/external/selinux/libsepol/src/ |
D | kernel_to_conf.c | 2431 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_conf() local 2436 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf() 2437 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_conf() 2442 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_conf() 2447 name = fsuse->u.name; in write_selinux_fsuse_rules_to_conf() 2448 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_conf()
|
D | kernel_to_cil.c | 2559 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_cil() local 2564 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil() 2565 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_cil() 2570 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_cil() 2575 name = fsuse->u.name; in write_selinux_fsuse_rules_to_cil() 2576 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_cil()
|
D | module_to_cil.c | 2778 struct ocontext *fsuse; in ocontext_selinux_fsuse_to_cil() local 2782 for (fsuse = fsuses; fsuse != NULL; fsuse = fsuse->next) { in ocontext_selinux_fsuse_to_cil() 2783 switch (fsuse->v.behavior) { in ocontext_selinux_fsuse_to_cil() 2788 log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in ocontext_selinux_fsuse_to_cil() 2793 cil_printf("(fsuse %s %s ", behavior, fsuse->u.name); in ocontext_selinux_fsuse_to_cil() 2795 context_to_cil(pdb, &fsuse->context[0]); in ocontext_selinux_fsuse_to_cil()
|
/external/selinux/secilc/test/ |
D | integration.cil | 177 (fsuse xattr ext3 system_u_bin_t_l2h)
|
D | policy.cil | 277 (fsuse xattr ext3 system_u_bin_t_l2h)
|