Home
last modified time | relevance | path

Searched refs:classperms (Results 1 – 13 of 13) sorted by relevance

/third_party/selinux/libsepol/cil/src/
Dcil_find.c179 rc = __cil_classperms_list_match_any(cp1, cmp->classperms); in __cil_classperms_list_match_any()
186 rc = __cil_classperms_list_match_any(cp1, cp->classperms); in __cil_classperms_list_match_any()
208 rc = cil_classperms_list_match_any(cmp->classperms, cpl2); in cil_classperms_list_match_any()
215 rc = cil_classperms_list_match_any(cp->classperms, cpl2); in cil_classperms_list_match_any()
222 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_… in __add_classes_from_classperms_list() argument
226 cil_list_for_each(curr, classperms) { in __add_classes_from_classperms_list()
235 __add_classes_from_classperms_list(cmp->classperms, class_list); in __add_classes_from_classperms_list()
241 __add_classes_from_classperms_list(cp->classperms, class_list); in __add_classes_from_classperms_list()
251 __add_classes_from_classperms_list(cmp->classperms, class_list); in __add_classes_from_map_perms()
336 if (cil_classperms_list_match_any(avrule->perms.classperms, target->perms.classperms)) { in cil_find_matching_avrule()
Dcil_reset_ast.c39 cil_list_destroy(&perm->classperms, CIL_FALSE); in cil_reset_perm()
58 cil_list_destroy(&cp->classperms, CIL_FALSE); in cil_reset_classpermission()
68 cil_reset_classperms_list(cp_set->set->classperms); in cil_reset_classperms_set()
93 cil_reset_classperms_list(cps->classperms); in cil_reset_classpermissionset()
98 cil_reset_classperms_list(cm->classperms); in cil_reset_classmapping()
218 cil_reset_classperms_list(rule->perms.classperms); in cil_reset_avrule()
454 cil_reset_classperms_list(con->classperms); in cil_reset_constrain()
Dcil_internal.h374 struct cil_list *classperms; /* Only used for map perms */ member
403 struct cil_list *classperms; member
408 struct cil_list *classperms; member
414 struct cil_list *classperms; member
617 struct cil_list *classperms; member
865 struct cil_list *classperms; member
Dcil_policy.c650 static void cil_classperms_to_string(struct cil_classperms *classperms, struct cil_list *classperms… in cil_classperms_to_string() argument
656 len += strlen(DATUM(classperms->class)->fqn) + 1; in cil_classperms_to_string()
657 cil_list_for_each(i1, classperms->perms) { in cil_classperms_to_string()
667 len = strlen(DATUM(classperms->class)->fqn); in cil_classperms_to_string()
668 memcpy(curr, DATUM(classperms->class)->fqn, len); in cil_classperms_to_string()
674 cil_list_for_each(i1, classperms->perms) { in cil_classperms_to_string()
685 static void cil_classperms_to_strings(struct cil_list *classperms, struct cil_list *classperms_strs) in cil_classperms_to_strings() argument
689 cil_list_for_each(i1, classperms) { in cil_classperms_to_strings()
698 cil_classperms_to_strings(cmp->classperms, classperms_strs); in cil_classperms_to_strings()
704 cil_classperms_to_strings(cp->classperms, classperms_strs); in cil_classperms_to_strings()
[all …]
Dcil_binary.c1350 … cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, cond_node_t *co… in __cil_avrule_expand() argument
1355 cil_list_for_each(curr, classperms) { in __cil_avrule_expand()
1367 rc = __cil_avrule_expand(pdb, kind, src, tgt, cmp->classperms, cond_node, cond_flavor); in __cil_avrule_expand()
1376 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, cond_node, cond_flavor); in __cil_avrule_expand()
1411 struct cil_list *classperms = cil_avrule->perms.classperms; in __cil_avrule_to_avtab() local
1433 rc = __cil_avrule_expand(pdb, kind, src, src, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1444 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1465 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1484 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1500 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
[all …]
Dcil_verify.c1701 static int __cil_verify_classperms(struct cil_list *classperms, in __cil_verify_classperms() argument
1711 if (classperms == NULL) { in __cil_verify_classperms()
1736 cil_list_for_each(curr, classperms) { in __cil_verify_classperms()
1744 …rc = __cil_verify_classperms(cmp->classperms, orig, &cp->class->datum, &cmp->datum, CIL_MAP_PERM, … in __cil_verify_classperms()
1759 …rc = __cil_verify_classperms(cmp->classperms, orig, &cp->class->datum, &cmp->datum, CIL_MAP_PERM, … in __cil_verify_classperms()
1773 …rc = __cil_verify_classperms(cp->classperms, orig, NULL, &cp->datum, CIL_CLASSPERMISSION, steps, l… in __cil_verify_classperms()
1790 …return __cil_verify_classperms(cp->classperms, &cp->datum, NULL, &cp->datum, CIL_CLASSPERMISSION, … in __cil_verify_classpermission()
1805 …rc = __cil_verify_classperms(cmp->classperms, &cmp->datum, &map_args->class->datum, &cmp->datum, C… in __verify_map_perm_classperms()
Dcil_copy_ast.c235 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classmapping()
296 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermission()
312 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermissionset()
820 cil_copy_classperms_list(orig->perms.classperms, &new->perms.classperms); in cil_copy_avrule()
1443 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_constrain()
Dcil_write_ast.c290 write_classperms_list(out,cp->classperms); in write_classperms_list()
387 write_classperms_list(out, cons->classperms); in write_constrain()
463 write_classperms_list(out, cp->classperms); in write_call_args()
794 write_classperms_list(out, cps->classperms); in cil_write_ast_node()
808 write_classperms_list(out, mapping->classperms); in cil_write_ast_node()
1121 write_classperms_list(out, rule->perms.classperms); in cil_write_ast_node()
Dcil_post.c2129 static int __evaluate_classperms_list(struct cil_list *classperms, struct cil_db *db) in __evaluate_classperms_list() argument
2134 cil_list_for_each(curr, classperms) { in __evaluate_classperms_list()
2150 rc = __evaluate_classperms_list(cmp->classperms, db); in __evaluate_classperms_list()
2159 rc = __evaluate_classperms_list(cp->classperms, db); in __evaluate_classperms_list()
2182 int rc = __evaluate_classperms_list(cmp->classperms, map_args->db); in __evaluate_map_perm_classperms()
2227 rc = __evaluate_classperms_list(cp->classperms, db); in __cil_post_db_classperms_helper()
2235 rc = __evaluate_classperms_list(avrule->perms.classperms, db); in __cil_post_db_classperms_helper()
2244 rc = __evaluate_classperms_list(constrain->classperms, db); in __cil_post_db_classperms_helper()
Dcil_resolve_ast.c206 rc = cil_resolve_classperms_list(current, cp_set->set->classperms, extra_args); in cil_resolve_classperms_set()
256 rc = cil_resolve_classperms_list(current, cps->classperms, extra_args); in cil_resolve_classpermissionset()
263 if (cp->classperms == NULL) { in cil_resolve_classpermissionset()
264 cil_list_init(&cp->classperms, CIL_CLASSPERMS); in cil_resolve_classpermissionset()
267 cil_list_for_each(curr, cps->classperms) { in cil_resolve_classpermissionset()
268 cil_list_append(cp->classperms, curr->flavor, curr->data); in cil_resolve_classpermissionset()
348 rc = cil_resolve_classperms_list(current, rule->perms.classperms, extra_args); in cil_resolve_avrule()
810 rc = cil_resolve_classperms_list(current, mapping->classperms, extra_args); in cil_resolve_classmapping()
815 if (mp->classperms == NULL) { in cil_resolve_classmapping()
816 cil_list_init(&mp->classperms, CIL_CLASSPERMS); in cil_resolve_classmapping()
[all …]
Dcil.c2640 (*constrain)->classperms = NULL; in cil_constrain_init()
2669 (*perm)->classperms = NULL; in cil_perm_init()
2677 (*cp)->classperms = NULL; in cil_classpermission_init()
2685 (*cps)->classperms = NULL; in cil_classpermissionset_init()
2710 (*mapping)->classperms = NULL; in cil_classmapping_init()
Dcil_build_ast.c618 cil_list_destroy(&perm->classperms, CIL_FALSE); in cil_destroy_perm()
855 cil_list_destroy(&cp->classperms, CIL_FALSE); in cil_destroy_classpermission()
858 cil_destroy_classperms_list(&cp->classperms); in cil_destroy_classpermission()
892 rc = cil_fill_classperms_list(parse_current->next->next, &cps->classperms); in cil_gen_classpermissionset()
914 cil_destroy_classperms_list(&cps->classperms); in cil_destroy_classpermissionset()
987 rc = cil_fill_classperms_list(parse_current->next->next->next, &mapping->classperms); in cil_gen_classmapping()
1009 cil_destroy_classperms_list(&mapping->classperms); in cil_destroy_classmapping()
2111 rc = cil_fill_classperms_list(parse_current->next->next->next, &rule->perms.classperms); in cil_gen_avrule()
2134 cil_destroy_classperms_list(&rule->perms.classperms); in cil_destroy_avrule()
4009 rc = cil_fill_classperms_list(parse_current->next, &cons->classperms); in cil_gen_constrain()
[all …]
/third_party/selinux/libsepol/src/
Dmodule_to_cil.c561 …db *pdb, uint32_t type, const char *src, const char *tgt, const struct class_perm_node *classperms) in avrule_to_cil() argument
599 for (classperm = classperms; classperm != NULL; classperm = classperm->next) { in avrule_to_cil()
683 …t32_t type, const char *src, const char *tgt, const class_perm_node_t *classperms, const av_extend… in avrulex_to_cil() argument
708 for (classperm = classperms; classperm != NULL; classperm = classperm->next) { in avrulex_to_cil()