Lines Matching refs:avrule
872 static int validate_avrules(sepol_handle_t *handle, const avrule_t *avrule, int conditional, const policydb_t *p, validate_t flavors[])
876 for (; avrule; avrule = avrule->next) {
877 if (validate_type_set(&avrule->stypes, &flavors[SYM_TYPES]))
879 if (validate_type_set(&avrule->ttypes, &flavors[SYM_TYPES]))
882 switch(avrule->specified) {
903 for (classperm = avrule->perms; classperm; classperm = classperm->next) {
906 if ((avrule->specified & AVRULE_TYPE) && validate_simpletype(classperm->data, p, flavors))
910 if (avrule->specified & AVRULE_XPERMS) {
911 if (!avrule->xperms)
913 switch (avrule->xperms->specified) {
920 } else if (avrule->xperms)
923 switch(avrule->flags) {
935 ERR(handle, "Invalid avrule");
1356 ERR(handle, "Invalid avrule block");