/external/selinux/libsepol/cil/src/ |
cil_find.c | 178 rc = __cil_classperms_list_match_any(cp1, cmp->classperms); 185 rc = __cil_classperms_list_match_any(cp1, cp->classperms); 207 rc = cil_classperms_list_match_any(cmp->classperms, cpl2); 214 rc = cil_classperms_list_match_any(cp->classperms, cpl2); 221 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_list) 225 cil_list_for_each(curr, classperms) { 234 __add_classes_from_classperms_list(cmp->classperms, class_list); 240 __add_classes_from_classperms_list(cp->classperms, class_list); 250 __add_classes_from_classperms_list(cmp->classperms, class_list); 335 if (cil_classperms_list_match_any(avrule->perms.classperms, target->perms.classperms)) [all...] |
cil_reset_ast.c | 37 cil_reset_classperms_list(perm->classperms); 55 cil_reset_classperms_list(cp->classperms); 82 cil_reset_classperms_list(cps->classperms); 87 cil_reset_classperms_list(cm->classperms); 198 cil_reset_classperms_list(rule->perms.classperms); 374 cil_reset_classperms_list(con->classperms);
|
cil_write_ast.c | 14 static int cil_unfill_classperms_list(struct cil_list *classperms, char **out_str, int paren); 774 char *classperms = NULL; local 798 rc = cil_unfill_classperms_list(avrule->perms.classperms, &classperms, 0); 801 fprintf(cil_out, "(%s %s %s %s)\n", rulekind, src, tgt, classperms); 804 free(classperms); 960 static int cil_unfill_classperms_list(struct cil_list *classperms, char **out_str, int paren) { 968 cil_list_for_each(curr, classperms) { 984 cil_log(CIL_ERR, "Unrecognized classperms flavor\n."); 1048 char *classperms = NULL local [all...] |
cil_internal.h | 358 struct cil_list *classperms; /* Only used for map perms */ member in struct:cil_perm 387 struct cil_list *classperms; member in struct:cil_classpermission 392 struct cil_list *classperms; member in struct:cil_classpermissionset 398 struct cil_list *classperms; member in struct:cil_classmapping 592 struct cil_list *classperms; member in union:cil_avrule::__anon29252 825 struct cil_list *classperms; member in struct:cil_constrain
|
cil_verify.c | [all...] |
cil_copy_ast.c | 226 cil_copy_classperms_list(orig->classperms, &new->classperms); 287 cil_copy_classperms_list(orig->classperms, &new->classperms); 303 cil_copy_classperms_list(orig->classperms, &new->classperms); 805 cil_copy_classperms_list(orig->perms.classperms, &new->perms.classperms); [all...] |
cil_policy.c | 653 static void cil_classperms_to_string(struct cil_classperms *classperms, struct cil_list *classperms_strs) 659 len += strlen(DATUM(classperms->class)->fqn) + 1; 660 cil_list_for_each(i1, classperms->perms) { 670 len = strlen(DATUM(classperms->class)->fqn); 671 memcpy(curr, DATUM(classperms->class)->fqn, len); 677 cil_list_for_each(i1, classperms->perms) { 688 static void cil_classperms_to_strings(struct cil_list *classperms, struct cil_list *classperms_strs) 692 cil_list_for_each(i1, classperms) { 701 cil_classperms_to_strings(cmp->classperms, classperms_strs); 707 cil_classperms_to_strings(cp->classperms, classperms_strs) [all...] |
cil_binary.c | 1436 struct cil_list *classperms = cil_avrule->perms.classperms; local [all...] |
cil_resolve_ast.c | 201 rc = cil_resolve_classperms_list(current, cp_set->set->classperms, extra_args); 251 rc = cil_resolve_classperms_list(current, cps->classperms, extra_args); 258 if (cp->classperms == NULL) { 259 cil_list_init(&cp->classperms, CIL_CLASSPERMS); 262 cil_list_for_each(curr, cps->classperms) { 263 cil_list_append(cp->classperms, curr->flavor, curr->data); 338 rc = cil_resolve_classperms_list(current, rule->perms.classperms, extra_args); 759 rc = cil_resolve_classperms_list(current, mapping->classperms, extra_args); 764 if (mp->classperms == NULL) { 765 cil_list_init(&mp->classperms, CIL_CLASSPERMS) [all...] |
cil_tree.c | 662 cil_tree_print_classperms_list(cons->classperms); 957 cil_tree_print_classperms_list(cps->classperms); 978 if (cmp->classperms == NULL) { 985 cil_tree_print_classperms_list(cmp->classperms); 998 cil_tree_print_classperms_list(mapping->classperms); 1180 cil_tree_print_classperms_list(rule->perms.classperms); [all...] |
cil_post.c | [all...] |
cil.c | [all...] |
cil_build_ast.c | 513 cil_list_destroy(&perm->classperms, CIL_FALSE); 759 cil_list_destroy(&cp->classperms, CIL_FALSE); 762 cil_destroy_classperms_list(&cp->classperms); 796 rc = cil_fill_classperms_list(parse_current->next->next, &cps->classperms); 818 cil_destroy_classperms_list(&cps->classperms); 891 rc = cil_fill_classperms_list(parse_current->next->next->next, &mapping->classperms); 913 cil_destroy_classperms_list(&mapping->classperms); [all...] |
/system/sepolicy/tools/sepolicy-analyze/ |
neverallow.c | 190 class_perm_node_t *classperms = NULL, *node = NULL; local 258 node->next = classperms; 259 classperms = node; 266 if (warn && !classperms) 326 for (node = classperms; node; node = node->next) 331 for (node = classperms; node; node = node->next) { 350 for (node = classperms; node; node = node->next) 355 for (node = classperms; node; node = node->next) 360 *perms = classperms;
|
/external/selinux/libsepol/src/ |
module_to_cil.c | 545 static int avrule_to_cil(int indent, struct policydb *pdb, uint32_t type, const char *src, const char *tgt, const struct class_perm_node *classperms) 583 for (classperm = classperms; classperm != NULL; classperm = classperm->next) { 667 static int avrulex_to_cil(int indent, struct policydb *pdb, uint32_t type, const char *src, const char *tgt, const class_perm_node_t *classperms, const av_extended_perms_t *xperms) 692 for (classperm = classperms; classperm != NULL; classperm = classperm->next) { [all...] |