Lines Matching refs:avrule
1620 avrule_t *avrule; in define_compute_type_helper() local
1625 avrule = malloc(sizeof(avrule_t)); in define_compute_type_helper()
1626 if (!avrule) { in define_compute_type_helper()
1630 avrule_init(avrule); in define_compute_type_helper()
1631 avrule->specified = which; in define_compute_type_helper()
1632 avrule->line = policydb_lineno; in define_compute_type_helper()
1633 avrule->source_line = source_lineno; in define_compute_type_helper()
1634 avrule->source_filename = strdup(source_file); in define_compute_type_helper()
1635 if (!avrule->source_filename) { in define_compute_type_helper()
1641 if (set_types(&avrule->stypes, id, &add, 0)) in define_compute_type_helper()
1646 if (set_types(&avrule->ttypes, id, &add, 0)) in define_compute_type_helper()
1682 perm->next = avrule->perms; in define_compute_type_helper()
1683 avrule->perms = perm; in define_compute_type_helper()
1687 *rule = avrule; in define_compute_type_helper()
1691 avrule_destroy(avrule); in define_compute_type_helper()
1692 free(avrule); in define_compute_type_helper()
1699 avrule_t *avrule; in define_compute_type() local
1713 if (define_compute_type_helper(which, &avrule)) in define_compute_type()
1716 append_avrule(avrule); in define_compute_type()
1723 avrule_t *avrule; in define_cond_compute_type() local
1737 if (define_compute_type_helper(which, &avrule)) in define_cond_compute_type()
1740 return avrule; in define_cond_compute_type()
2043 avrule_t *avrule; in define_te_avtab_xperms_helper() local
2047 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in define_te_avtab_xperms_helper()
2048 if (!avrule) { in define_te_avtab_xperms_helper()
2053 avrule_init(avrule); in define_te_avtab_xperms_helper()
2054 avrule->specified = which; in define_te_avtab_xperms_helper()
2055 avrule->line = policydb_lineno; in define_te_avtab_xperms_helper()
2056 avrule->source_line = source_lineno; in define_te_avtab_xperms_helper()
2057 avrule->source_filename = strdup(source_file); in define_te_avtab_xperms_helper()
2058 avrule->xperms = NULL; in define_te_avtab_xperms_helper()
2059 if (!avrule->source_filename) { in define_te_avtab_xperms_helper()
2066 (&avrule->stypes, id, &add, in define_te_avtab_xperms_helper()
2081 avrule->flags |= RULE_SELF; in define_te_avtab_xperms_helper()
2085 (&avrule->ttypes, id, &add, in define_te_avtab_xperms_helper()
2141 avrule->perms = perms; in define_te_avtab_xperms_helper()
2142 *rule = avrule; in define_te_avtab_xperms_helper()
2403 avrule_t *avrule; in define_te_avtab_ioctl() local
2417 avrule = (avrule_t *) calloc(1, sizeof(avrule_t)); in define_te_avtab_ioctl()
2418 if (!avrule) { in define_te_avtab_ioctl()
2422 if (avrule_cpy(avrule, avrule_template)) in define_te_avtab_ioctl()
2424 avrule->xperms = complete_driver; in define_te_avtab_ioctl()
2425 append_avrule(avrule); in define_te_avtab_ioctl()
2446 avrule = (avrule_t *) calloc(1, sizeof(avrule_t)); in define_te_avtab_ioctl()
2447 if (!avrule) { in define_te_avtab_ioctl()
2451 if (avrule_cpy(avrule, avrule_template)) in define_te_avtab_ioctl()
2453 avrule->xperms = xperms; in define_te_avtab_ioctl()
2454 append_avrule(avrule); in define_te_avtab_ioctl()
2504 avrule_t *avrule; in define_te_avtab_helper() local
2509 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in define_te_avtab_helper()
2510 if (!avrule) { in define_te_avtab_helper()
2515 avrule_init(avrule); in define_te_avtab_helper()
2516 avrule->specified = which; in define_te_avtab_helper()
2517 avrule->line = policydb_lineno; in define_te_avtab_helper()
2518 avrule->source_line = source_lineno; in define_te_avtab_helper()
2519 avrule->source_filename = strdup(source_file); in define_te_avtab_helper()
2520 avrule->xperms = NULL; in define_te_avtab_helper()
2521 if (!avrule->source_filename) { in define_te_avtab_helper()
2529 (&avrule->stypes, id, &add, in define_te_avtab_helper()
2544 avrule->flags |= RULE_SELF; in define_te_avtab_helper()
2548 (&avrule->ttypes, id, &add, in define_te_avtab_helper()
2634 avrule->perms = perms; in define_te_avtab_helper()
2635 *rule = avrule; in define_te_avtab_helper()
2639 avrule_destroy(avrule); in define_te_avtab_helper()
2640 free(avrule); in define_te_avtab_helper()
2649 avrule_t *avrule; in define_cond_te_avtab() local
2660 if (define_te_avtab_helper(which, &avrule)) in define_cond_te_avtab()
2663 return avrule; in define_cond_te_avtab()
2669 avrule_t *avrule; in define_te_avtab() local
2680 if (define_te_avtab_helper(which, &avrule)) in define_te_avtab()
2684 append_avrule(avrule); in define_te_avtab()