Lines Matching defs:avrule
3515 avrule_t *avrule;
3518 avrule = (avrule_t *) malloc(sizeof(avrule_t));
3519 if (!avrule)
3522 avrule_init(avrule);
3528 avrule->specified = le32_to_cpu(buf[0]);
3529 avrule->flags = le32_to_cpu(buf[1]);
3531 if (type_set_read(&avrule->stypes, fp))
3534 if (type_set_read(&avrule->ttypes, fp))
3558 avrule->perms = cur;
3565 if (avrule->specified & AVRULE_XPERMS) {
3567 size_t nel = ARRAY_SIZE(avrule->xperms->perms);
3586 avrule->xperms = calloc(1, sizeof(*avrule->xperms));
3587 if (!avrule->xperms)
3595 avrule->xperms->specified = buf8;
3601 avrule->xperms->driver = buf8;
3608 avrule->xperms->perms[i] = le32_to_cpu(buf32[i]);
3611 return avrule;
3613 if (avrule) {
3614 avrule_destroy(avrule);
3615 free(avrule);
4483 ERR(fp->handle, "no avrule block in policy");