Lines Matching defs:avrule
1743 static int avrule_write(policydb_t *p, avrule_t * avrule,
1751 (avrule->specified & AVRULE_TYPE) &&
1752 (avrule->flags & RULE_SELF)) {
1759 buf[items++] = cpu_to_le32(avrule->specified);
1760 buf[items++] = cpu_to_le32(avrule->flags);
1765 if (type_set_write(&avrule->stypes, fp))
1768 if (type_set_write(&avrule->ttypes, fp))
1771 cur = avrule->perms;
1782 cur = avrule->perms;
1794 if (avrule->specified & AVRULE_XPERMS) {
1795 size_t nel = ARRAY_SIZE(avrule->xperms->perms);
1816 buf8 = avrule->xperms->specified;
1820 buf8 = avrule->xperms->driver;
1825 buf32[i] = cpu_to_le32(avrule->xperms->perms[i]);
1838 avrule_t *avrule;
1840 avrule = avrules;
1842 while (avrule) {
1844 avrule = avrule->next;
1851 avrule = avrules;
1852 while (avrule) {
1853 if (avrule_write(p, avrule, fp))
1855 avrule = avrule->next;