Lines Matching refs:avrule
1677 static int avrule_write(policydb_t *p, avrule_t * avrule, in avrule_write() argument
1685 buf[items++] = cpu_to_le32(avrule->specified); in avrule_write()
1686 buf[items++] = cpu_to_le32(avrule->flags); in avrule_write()
1691 if (type_set_write(&avrule->stypes, fp)) in avrule_write()
1694 if (type_set_write(&avrule->ttypes, fp)) in avrule_write()
1697 cur = avrule->perms; in avrule_write()
1708 cur = avrule->perms; in avrule_write()
1720 if (avrule->specified & AVRULE_XPERMS) { in avrule_write()
1721 size_t nel = ARRAY_SIZE(avrule->xperms->perms); in avrule_write()
1742 buf8 = avrule->xperms->specified; in avrule_write()
1746 buf8 = avrule->xperms->driver; in avrule_write()
1751 buf32[i] = cpu_to_le32(avrule->xperms->perms[i]); in avrule_write()
1764 avrule_t *avrule; in avrule_write_list() local
1766 avrule = avrules; in avrule_write_list()
1768 while (avrule) { in avrule_write_list()
1770 avrule = avrule->next; in avrule_write_list()
1777 avrule = avrules; in avrule_write_list()
1778 while (avrule) { in avrule_write_list()
1779 if (avrule_write(p, avrule, fp)) in avrule_write_list()
1781 avrule = avrule->next; in avrule_write_list()