Lines Matching refs:avrule
3303 avrule_t *avrule; in avrule_read() local
3306 avrule = (avrule_t *) malloc(sizeof(avrule_t)); in avrule_read()
3307 if (!avrule) in avrule_read()
3310 avrule_init(avrule); in avrule_read()
3316 avrule->specified = le32_to_cpu(buf[0]); in avrule_read()
3317 avrule->flags = le32_to_cpu(buf[1]); in avrule_read()
3319 if (type_set_read(&avrule->stypes, fp)) in avrule_read()
3322 if (type_set_read(&avrule->ttypes, fp)) in avrule_read()
3346 avrule->perms = cur; in avrule_read()
3353 if (avrule->specified & AVRULE_XPERMS) { in avrule_read()
3355 size_t nel = ARRAY_SIZE(avrule->xperms->perms); in avrule_read()
3374 avrule->xperms = calloc(1, sizeof(*avrule->xperms)); in avrule_read()
3375 if (!avrule->xperms) in avrule_read()
3383 avrule->xperms->specified = buf8; in avrule_read()
3389 avrule->xperms->driver = buf8; in avrule_read()
3396 avrule->xperms->perms[i] = le32_to_cpu(buf32[i]); in avrule_read()
3399 return avrule; in avrule_read()
3401 if (avrule) { in avrule_read()
3402 avrule_destroy(avrule); in avrule_read()
3403 free(avrule); in avrule_read()