Home | History | Annotate | Download | only in src

Lines Matching defs:avrule

2632 	avrule_t *avrule;
2645 avrule = (avrule_t *) malloc(sizeof(avrule_t));
2646 if (!avrule)
2649 avrule_init(avrule);
2650 avrule->specified = AVRULE_NEVERALLOW;
2651 avrule->line = source_rule->line;
2652 avrule->flags = source_rule->flags;
2653 avrule->source_line = source_rule->source_line;
2655 avrule->source_filename = strdup(source_rule->source_filename);
2656 if (!avrule->source_filename)
2660 if (ebitmap_cpy(&avrule->stypes.types, &stypes))
2663 if (ebitmap_cpy(&avrule->ttypes.types, &ttypes))
2680 if (!avrule->perms)
2681 avrule->perms = new_perm;
2689 /* just prepend the avrule to the first branch; it'll never be
2692 dest_pol->global->branch_list->avrules = avrule;
2694 avrule->next = dest_pol->global->branch_list->avrules;
2695 dest_pol->global->branch_list->avrules = avrule;
2706 ebitmap_destroy(&avrule->stypes.types);
2707 ebitmap_destroy(&avrule->ttypes.types);
2708 cur_perm = avrule->perms;
2714 free(avrule);
2719 * Expands the avrule blocks for a policy. RBAC rules are copied. Neverallow
2797 /* set base top avrule block in case there
2853 * its avrule list to the current decl->avrules list. On the other
2941 * the base passed in should be indexed and avrule blocks should be