/external/selinux/libsepol/cil/src/ |
D | cil_find.c | 174 rc = __cil_classperms_list_match_any(cp1, cmp->classperms); in __cil_classperms_list_match_any() 181 rc = __cil_classperms_list_match_any(cp1, cp->classperms); in __cil_classperms_list_match_any() 203 rc = cil_classperms_list_match_any(cmp->classperms, cpl2); in cil_classperms_list_match_any() 210 rc = cil_classperms_list_match_any(cp->classperms, cpl2); in cil_classperms_list_match_any() 217 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_… in __add_classes_from_classperms_list() argument 221 cil_list_for_each(curr, classperms) { in __add_classes_from_classperms_list() 230 __add_classes_from_classperms_list(cmp->classperms, class_list); in __add_classes_from_classperms_list() 236 __add_classes_from_classperms_list(cp->classperms, class_list); in __add_classes_from_classperms_list() 246 __add_classes_from_classperms_list(cmp->classperms, class_list); in __add_classes_from_map_perms() 331 if (cil_classperms_list_match_any(avrule->perms.classperms, target->perms.classperms)) { in cil_find_matching_avrule()
|
D | cil_reset_ast.c | 37 cil_reset_classperms_list(perm->classperms); in cil_reset_perm() 55 cil_reset_classperms_list(cp->classperms); in cil_reset_classpermission() 82 cil_reset_classperms_list(cps->classperms); in cil_reset_classpermissionset() 87 cil_reset_classperms_list(cm->classperms); in cil_reset_classmapping() 198 cil_reset_classperms_list(rule->perms.classperms); in cil_reset_avrule() 374 cil_reset_classperms_list(con->classperms); in cil_reset_constrain()
|
D | cil_internal.h | 350 struct cil_list *classperms; /* Only used for map perms */ member 379 struct cil_list *classperms; member 384 struct cil_list *classperms; member 390 struct cil_list *classperms; member 581 struct cil_list *classperms; member 813 struct cil_list *classperms; member
|
D | cil_policy.c | 505 void cil_constrain_to_policy_helper(FILE **file_arr, char *kind, struct cil_list *classperms, struc… in cil_constrain_to_policy_helper() argument 509 cil_list_for_each(curr, classperms) { in cil_constrain_to_policy_helper() 522 cil_constrain_to_policy_helper(file_arr, kind, cmp->classperms, expr); in cil_constrain_to_policy_helper() 528 cil_constrain_to_policy_helper(file_arr, kind, cp->classperms, expr); in cil_constrain_to_policy_helper() 543 cil_constrain_to_policy_helper(file_arr, kind, cons->classperms, cons->datum_expr); in cil_constrain_to_policy() 546 …nt32_t file_index, const char *kind, const char *src, const char *tgt, struct cil_list *classperms) in cil_avrule_to_policy_helper() argument 550 cil_list_for_each(i, classperms) { in cil_avrule_to_policy_helper() 561 cil_avrule_to_policy_helper(file_arr, file_index, kind, src, tgt, cmp->classperms); in cil_avrule_to_policy_helper() 568 cil_list_for_each(j, cp->classperms) { in cil_avrule_to_policy_helper() 601 …_avrule_to_policy_helper(file_arr, file_index, kind_str, src_str, tgt_str, rule->perms.classperms); in cil_avrule_to_policy()
|
D | cil_verify.c | 1500 static int __cil_verify_classperms(struct cil_list *classperms, struct cil_symtab_datum *orig) in __cil_verify_classperms() argument 1505 cil_list_for_each(curr, classperms) { in __cil_verify_classperms() 1518 rc = __cil_verify_classperms(cmp->classperms, orig); in __cil_verify_classperms() 1531 rc = __cil_verify_classperms(cp->classperms, orig); in __cil_verify_classperms() 1549 if (cp->classperms == NULL) { in __cil_verify_classpermission() 1555 rc = __cil_verify_classperms(cp->classperms, &cp->datum); in __cil_verify_classpermission() 1579 if (cmp->classperms == NULL) { in __verify_map_perm_classperms() 1585 rc = __cil_verify_classperms(cmp->classperms, &cmp->datum); in __verify_map_perm_classperms()
|
D | cil_copy_ast.c | 226 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classmapping() 287 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermission() 303 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermissionset() 805 cil_copy_classperms_list(orig->perms.classperms, &new->perms.classperms); in cil_copy_avrule() 1383 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_constrain()
|
D | cil_binary.c | 1359 … cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, cond_node_t *co… in __cil_avrule_expand() argument 1364 cil_list_for_each(curr, classperms) { in __cil_avrule_expand() 1376 rc = __cil_avrule_expand(pdb, kind, src, tgt, cmp->classperms, cond_node, cond_flavor); in __cil_avrule_expand() 1385 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, cond_node, cond_flavor); in __cil_avrule_expand() 1404 struct cil_list *classperms = cil_avrule->perms.classperms; in __cil_avrule_to_avtab() local 1427 rc = __cil_avrule_expand(pdb, kind, src, src, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab() 1435 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab() 2622 int cil_constrain_expand(policydb_t *pdb, const struct cil_db *db, struct cil_list *classperms, str… in cil_constrain_expand() argument 2627 cil_list_for_each(curr, classperms) { in cil_constrain_expand() 2639 rc = cil_constrain_expand(pdb, db, cmp->classperms, expr); in cil_constrain_expand() [all …]
|
D | cil_tree.c | 576 cil_tree_print_classperms_list(cons->classperms); in cil_tree_print_constrain() 871 cil_tree_print_classperms_list(cps->classperms); in cil_tree_print_node() 892 if (cmp->classperms == NULL) { in cil_tree_print_node() 899 cil_tree_print_classperms_list(cmp->classperms); in cil_tree_print_node() 912 cil_tree_print_classperms_list(mapping->classperms); in cil_tree_print_node() 1094 cil_tree_print_classperms_list(rule->perms.classperms); in cil_tree_print_node()
|
D | cil_post.c | 1763 static int __evaluate_classperms_list(struct cil_list *classperms, struct cil_db *db) in __evaluate_classperms_list() argument 1768 cil_list_for_each(curr, classperms) { in __evaluate_classperms_list() 1780 rc = __evaluate_classperms_list(cmp->classperms, db); in __evaluate_classperms_list() 1789 rc = __evaluate_classperms_list(cp->classperms, db); in __evaluate_classperms_list() 1812 int rc = __evaluate_classperms_list(cmp->classperms, map_args->db); in __evaluate_map_perm_classperms() 1857 rc = __evaluate_classperms_list(cp->classperms, db); in __cil_post_db_classperms_helper() 1865 rc = __evaluate_classperms_list(avrule->perms.classperms, db); in __cil_post_db_classperms_helper() 1874 rc = __evaluate_classperms_list(constrain->classperms, db); in __cil_post_db_classperms_helper()
|
D | cil_resolve_ast.c | 193 rc = cil_resolve_classperms_list(current, cp_set->set->classperms, extra_args); in cil_resolve_classperms_set() 243 rc = cil_resolve_classperms_list(current, cps->classperms, extra_args); in cil_resolve_classpermissionset() 250 if (cp->classperms == NULL) { in cil_resolve_classpermissionset() 251 cil_list_init(&cp->classperms, CIL_CLASSPERMS); in cil_resolve_classpermissionset() 254 cil_list_for_each(curr, cps->classperms) { in cil_resolve_classpermissionset() 255 cil_list_append(cp->classperms, curr->flavor, curr->data); in cil_resolve_classpermissionset() 331 rc = cil_resolve_classperms_list(current, rule->perms.classperms, extra_args); in cil_resolve_avrule() 749 rc = cil_resolve_classperms_list(current, mapping->classperms, extra_args); in cil_resolve_classmapping() 754 if (mp->classperms == NULL) { in cil_resolve_classmapping() 755 cil_list_init(&mp->classperms, CIL_CLASSPERMS); in cil_resolve_classmapping() [all …]
|
D | cil.c | 2306 (*constrain)->classperms = NULL; in cil_constrain_init() 2335 (*perm)->classperms = NULL; in cil_perm_init() 2343 (*cp)->classperms = NULL; in cil_classpermission_init() 2351 (*cps)->classperms = NULL; in cil_classpermissionset_init() 2376 (*mapping)->classperms = NULL; in cil_classmapping_init()
|
D | cil_build_ast.c | 511 cil_list_destroy(&perm->classperms, CIL_FALSE); in cil_destroy_perm() 755 cil_list_destroy(&cp->classperms, CIL_FALSE); in cil_destroy_classpermission() 758 cil_destroy_classperms_list(&cp->classperms); in cil_destroy_classpermission() 792 rc = cil_fill_classperms_list(parse_current->next->next, &cps->classperms); in cil_gen_classpermissionset() 815 cil_destroy_classperms_list(&cps->classperms); in cil_destroy_classpermissionset() 889 rc = cil_fill_classperms_list(parse_current->next->next->next, &mapping->classperms); in cil_gen_classmapping() 912 cil_destroy_classperms_list(&mapping->classperms); in cil_destroy_classmapping() 2034 rc = cil_fill_classperms_list(parse_current->next->next->next, &rule->perms.classperms); in cil_gen_avrule() 2058 cil_destroy_classperms_list(&rule->perms.classperms); in cil_destroy_avrule() 3945 rc = cil_fill_classperms_list(parse_current->next, &cons->classperms); in cil_gen_constrain() [all …]
|
/external/selinux/libsepol/src/ |
D | module_to_cil.c | 541 …db *pdb, uint32_t type, const char *src, const char *tgt, const struct class_perm_node *classperms) in avrule_to_cil() argument 579 for (classperm = classperms; classperm != NULL; classperm = classperm->next) { in avrule_to_cil()
|
/external/selinux/libsepol/ |
D | ChangeLog | 9 * Provide error in CIL if classperms are empty, from Yuli Khodorkovskiy
|