Home | History | Annotate | Download | only in src

Lines Matching defs:avrule

743 static int cil_write_avrule_x(struct cil_avrule *avrule, FILE *cil_out) {
748 switch (avrule->rule_kind) {
762 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind);
767 src = avrule->src_str;
768 tgt = avrule->tgt_str;
770 if (avrule->perms.x.permx_str != NULL) {
771 xperms = strdup(avrule->perms.x.permx_str);
778 rc = cil_unfill_permx(avrule->perms.x.permx, &xperms);
789 static int cil_write_avrule_orig(struct cil_avrule *avrule, FILE *cil_out) {
794 switch (avrule->rule_kind) {
808 cil_log(CIL_ERR, "Unknown AVRULE type: %d\n", avrule->rule_kind);
813 src = avrule->src_str;
814 tgt = avrule->tgt_str;
816 rc = cil_unfill_classperms_list(avrule->perms.classperms, &classperms, 0);
828 struct cil_avrule *avrule = (struct cil_avrule *)node->data;
830 if (avrule->is_extended)
831 rc = cil_write_avrule_x(avrule, cil_out);
833 rc = cil_write_avrule_orig(avrule, cil_out);