Lines Matching refs:avrule
3321 avrule_t *avrule; in avrule_read() local
3324 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in avrule_read()
3325 if (!avrule) in avrule_read()
3328 avrule_init(avrule); in avrule_read()
3334 avrule->specified = le32_to_cpu(buf[0]); in avrule_read()
3335 avrule->flags = le32_to_cpu(buf[1]); in avrule_read()
3337 if (type_set_read(&avrule->stypes, fp)) in avrule_read()
3340 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3364 avrule->perms = cur; in avrule_read()
3371 if (avrule->specified & AVRULE_XPERMS) { in avrule_read()
3373 size_t nel = ARRAY_SIZE(avrule->xperms->perms); in avrule_read()
3392 avrule->xperms = calloc(1, sizeof(*avrule->xperms)); in avrule_read()
3393 if (!avrule->xperms) in avrule_read()
3401 avrule->xperms->specified = buf8; in avrule_read()
3407 avrule->xperms->driver = buf8; in avrule_read()
3414 avrule->xperms->perms[i] = le32_to_cpu(buf32[i]); in avrule_read()
3417 return avrule; in avrule_read()
3419 if (avrule) { in avrule_read()
3420 avrule_destroy(avrule); in avrule_read()
3421 free(avrule); in avrule_read()