Home
last modified time | relevance | path

Searched refs:fsuse (Results 1 – 22 of 22) sorted by relevance

/external/selinux/secilc/docs/
Dcil_file_labeling_statements.md104 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 …]
DREADME.md78 * [fsuse](cil_file_labeling_statements.md#fsuse)
/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil19 ;(fsuse xattr ext3 con)
20 ;(fsuse xattr ext3 con_anon_l)
Dmls_policy.cil43 (fsuse xattr ext3 con)
44 (fsuse xattr ext3 con_anon_l)
/external/selinux/libsepol/cil/src/
Dcil_policy.c1674 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 …]
Dcil_reset_ast.c372 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()
Dcil_tree.c1594 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()
Dcil.c271 cil_sort_init(&(*db)->fsuse); in cil_db_init()
324 cil_sort_destroy(&(*db)->fsuse); in cil_db_destroy()
2379 void cil_fsuse_init(struct cil_fsuse **fsuse) in cil_fsuse_init() argument
2381 *fsuse = cil_malloc(sizeof(**fsuse)); in cil_fsuse_init()
2383 (*fsuse)->type = 0; in cil_fsuse_init()
2384 (*fsuse)->fs_str = NULL; in cil_fsuse_init()
2385 (*fsuse)->context_str = NULL; in cil_fsuse_init()
2386 (*fsuse)->context = NULL; in cil_fsuse_init()
Dcil_write_ast.c1022 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()
Dandroid.c589 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()
Dcil_build_ast.c5135 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 …]
Dcil_internal.h300 struct cil_sort *fsuse; member
1042 void cil_fsuse_init(struct cil_fsuse **fsuse);
Dcil_post.c650 db->fsuse->count++; in __cil_post_db_count_helper()
733 struct cil_sort *sort = db->fsuse; in __cil_post_db_array_helper()
2012 struct cil_fsuse *fsuse = node->data; in __cil_post_db_cat_helper() local
2013 rc = __evaluate_levelrange_expression(fsuse->context->range, db); in __cil_post_db_cat_helper()
2402 …rc = __cil_post_process_context_rules(db->fsuse, cil_post_fsuse_compare, cil_post_fsuse_context_co… in cil_post_db()
Dcil_build_ast.h201 void cil_destroy_fsuse(struct cil_fsuse *fsuse);
Dcil_verify.c1252 struct cil_fsuse *fsuse = node->data; in __cil_verify_fsuse() local
1253 struct cil_context *ctx = fsuse->context; in __cil_verify_fsuse()
Dcil_resolve_ast.c2242 struct cil_fsuse *fsuse = current->data; in cil_resolve_fsuse() local
2246 if (fsuse->context_str != NULL) { in cil_resolve_fsuse()
2247 rc = cil_resolve_name(current, fsuse->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_fsuse()
2251 fsuse->context = (struct cil_context*)context_datum; in cil_resolve_fsuse()
2253 rc = cil_resolve_context(current, fsuse->context, extra_args); in cil_resolve_fsuse()
Dcil_binary.c3916 rc = cil_fsuse_to_policydb(pdb, db->fsuse); in __cil_contexts_to_policydb()
/external/selinux/libsepol/src/
Dkernel_to_cil.c2561 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_cil() local
2566 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_cil()
2567 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_cil()
2572 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_cil()
2577 name = fsuse->u.name; in write_selinux_fsuse_rules_to_cil()
2578 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_cil()
Dkernel_to_conf.c2421 struct ocontext *fsuse; in write_selinux_fsuse_rules_to_conf() local
2426 for (fsuse = pdb->ocontexts[5]; fsuse != NULL; fsuse = fsuse->next) { in write_selinux_fsuse_rules_to_conf()
2427 switch (fsuse->v.behavior) { in write_selinux_fsuse_rules_to_conf()
2432 sepol_log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in write_selinux_fsuse_rules_to_conf()
2437 name = fsuse->u.name; in write_selinux_fsuse_rules_to_conf()
2438 ctx = context_to_str(pdb, &fsuse->context[0]); in write_selinux_fsuse_rules_to_conf()
Dmodule_to_cil.c2814 struct ocontext *fsuse; in ocontext_selinux_fsuse_to_cil() local
2818 for (fsuse = fsuses; fsuse != NULL; fsuse = fsuse->next) { in ocontext_selinux_fsuse_to_cil()
2819 switch (fsuse->v.behavior) { in ocontext_selinux_fsuse_to_cil()
2824 log_err("Unknown fsuse behavior: %i", fsuse->v.behavior); in ocontext_selinux_fsuse_to_cil()
2829 cil_printf("(fsuse %s %s ", behavior, fsuse->u.name); in ocontext_selinux_fsuse_to_cil()
2831 context_to_cil(pdb, &fsuse->context[0]); in ocontext_selinux_fsuse_to_cil()
/external/selinux/secilc/test/
Dintegration.cil177 (fsuse xattr ext3 system_u_bin_t_l2h)
Dpolicy.cil277 (fsuse xattr ext3 system_u_bin_t_l2h)