Lines Matching refs:cil_log
38 #include "cil_log.h"
188 cil_log(CIL_INFO, "Problem at line %d of %s\n", node->line, node->path);
225 cil_log(CIL_INFO, "Problem at line %d of %s\n", node->line, node->path);
238 cil_log(CIL_INFO, "Problem at line %d of %s\n",node->line, node->path);
321 cil_log(CIL_ERR, "Unknown operator in expression\n");
394 cil_log(CIL_ERR, "Unknown operand in expression\n");
403 cil_log(CIL_ERR, "Unknown flavor in expression\n");
421 cil_log(CIL_INFO, "(");
429 cil_log(CIL_INFO, "%s)", expr_str);
437 cil_log(CIL_INFO, " %s", ((struct cil_perm *)current_perm->data)->datum.name);
439 cil_log(CIL_INFO, " %s", ((struct cil_perm*)current_perm->data)->datum.name);
441 cil_log(CIL_INFO, "\n\n perms list contained unexpected data type: %d\n", current_perm->flavor);
461 cil_log(CIL_INFO, " (");
464 cil_log(CIL_INFO, " %s", (char*)curr->data);
467 cil_log(CIL_INFO, " )");
477 cil_log(CIL_INFO, " class: %s", cp->class_str);
478 cil_log(CIL_INFO, ", perm_strs:");
488 cil_log(CIL_INFO, " %s", cp_set->set_str);
511 cil_log(CIL_INFO, " %s", level->sens->datum.name);
513 cil_log(CIL_INFO, " %s", level->sens_str);
523 cil_log(CIL_INFO, " (");
525 cil_log(CIL_INFO, " (");
527 cil_log(CIL_INFO, " )");
529 cil_log(CIL_INFO, " %s", lvlrange->low_str);
533 cil_log(CIL_INFO, " (");
535 cil_log(CIL_INFO, " )");
537 cil_log(CIL_INFO, " %s", lvlrange->high_str);
539 cil_log(CIL_INFO, " )");
544 cil_log(CIL_INFO, " (");
546 cil_log(CIL_INFO, " %s", context->user->datum.name);
548 cil_log(CIL_INFO, " %s", context->user_str);
552 cil_log(CIL_INFO, " %s", context->role->datum.name);
554 cil_log(CIL_INFO, " %s", context->role_str);
558 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)context->type)->name);
560 cil_log(CIL_INFO, " %s", context->type_str);
566 cil_log(CIL_INFO, " %s", context->range_str);
569 cil_log(CIL_INFO, " )");
580 cil_log(CIL_INFO, "\n");
586 cil_log(CIL_INFO, "FLAVOR: %d", node->flavor);
592 cil_log(CIL_INFO, "BLOCK: %s\n", block->datum.name);
597 cil_log(CIL_INFO, "BLOCKINHERIT: %s\n", inherit->block_str);
602 cil_log(CIL_INFO, "BLOCKABSTRACT: %s\n", abstract->block_str);
607 cil_log(CIL_INFO, "IN: %s\n", in->block_str);
612 cil_log(CIL_INFO, "USER: %s\n", user->datum.name);
617 cil_log(CIL_INFO, "TYPE: %s\n", type->datum.name);
623 cil_log(CIL_INFO, "(TYPEATTRIBUTESET %s ", attr->attr_str);
627 cil_log(CIL_INFO, "\n");
632 cil_log(CIL_INFO, "TYPEATTRIBUTE: %s\n", attr->datum.name);
637 cil_log(CIL_INFO, "ROLE: %s\n", role->datum.name);
642 cil_log(CIL_INFO, "USERROLE:");
647 cil_log(CIL_INFO, " %s", datum->name);
649 cil_log(CIL_INFO, " %s", userrole->user_str);
654 cil_log(CIL_INFO, " %s", datum->name);
656 cil_log(CIL_INFO, " %s", userrole->role_str);
659 cil_log(CIL_INFO, "\n");
664 cil_log(CIL_INFO, "USERLEVEL:");
667 cil_log(CIL_INFO, " %s", usrlvl->user_str);
671 cil_log(CIL_INFO, " (");
673 cil_log(CIL_INFO, " )");
675 cil_log(CIL_INFO, " %s", usrlvl->level_str);
678 cil_log(CIL_INFO, "\n");
683 cil_log(CIL_INFO, "USERRANGE:");
686 cil_log(CIL_INFO, " %s", userrange->user_str);
690 cil_log(CIL_INFO, " (");
692 cil_log(CIL_INFO, " )");
694 cil_log(CIL_INFO, " %s", userrange->range_str);
697 cil_log(CIL_INFO, "\n");
702 cil_log(CIL_INFO, "USERBOUNDS: user: %s, bounds: %s\n", bnds->parent_str, bnds->child_str);
708 cil_log(CIL_INFO, "ROLETYPE:");
712 cil_log(CIL_INFO, " %s", datum->name);
714 cil_log(CIL_INFO, " %s", roletype->role_str);
719 cil_log(CIL_INFO, " %s", datum->name);
721 cil_log(CIL_INFO, " %s", roletype->type_str);
724 cil_log(CIL_INFO, "\n");
729 cil_log(CIL_INFO, "ROLETRANSITION:");
732 cil_log(CIL_INFO, " %s", roletrans->src->datum.name);
734 cil_log(CIL_INFO, " %s", roletrans->src_str);
738 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)roletrans->tgt)->name);
740 cil_log(CIL_INFO, " %s", roletrans->tgt_str);
744 cil_log(CIL_INFO, " %s", roletrans->obj->datum.name);
746 cil_log(CIL_INFO, " %s", roletrans->obj_str);
750 cil_log(CIL_INFO, " %s\n", roletrans->result->datum.name);
752 cil_log(CIL_INFO, " %s\n", roletrans->result_str);
759 cil_log(CIL_INFO, "ROLEALLOW:");
762 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->src)->name);
764 cil_log(CIL_INFO, " %s", roleallow->src_str);
768 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)roleallow->tgt)->name);
770 cil_log(CIL_INFO, " %s", roleallow->tgt_str);
773 cil_log(CIL_INFO, "\n");
779 cil_log(CIL_INFO, "(ROLEATTRIBUTESET %s ", attr->attr_str);
783 cil_log(CIL_INFO, "\n");
788 cil_log(CIL_INFO, "ROLEATTRIBUTE: %s\n", attr->datum.name);
794 cil_log(CIL_INFO, "(USERATTRIBUTESET %s ", attr->attr_str);
798 cil_log(CIL_INFO, "\n");
803 cil_log(CIL_INFO, "USERATTRIBUTE: %s\n", attr->datum.name);
808 cil_log(CIL_INFO, "ROLEBOUNDS: role: %s, bounds: %s\n", bnds->parent_str, bnds->child_str);
813 cil_log(CIL_INFO, "CLASS: %s ", cls->datum.name);
816 cil_log(CIL_INFO, "inherits: %s ", cls->common->datum.name);
818 cil_log(CIL_INFO, "(");
822 cil_log(CIL_INFO, " )");
830 cil_log(CIL_INFO, "CLASSORDER: ()\n");
834 cil_log(CIL_INFO, "CLASSORDER: (");
836 cil_log(CIL_INFO, " %s", (char*)class->data);
838 cil_log(CIL_INFO, " )\n");
843 cil_log(CIL_INFO, "COMMON: %s (", common->datum.name);
847 cil_log(CIL_INFO, " )");
853 cil_log(CIL_INFO, "CLASSCOMMON: class: %s, common: %s\n", clscom->class_str, clscom->common_str);
860 cil_log(CIL_INFO, "CLASSPERMISSION: %s", cp->datum.name);
862 cil_log(CIL_INFO, "\n");
869 cil_log(CIL_INFO, "CLASSPERMISSIONSET: %s", cps->set_str);
873 cil_log(CIL_INFO, "\n");
879 cil_log(CIL_INFO, "MAP_CLASS: %s", cm->datum.name);
881 cil_log(CIL_INFO, " (");
883 cil_log(CIL_INFO, " )\n");
890 cil_log(CIL_INFO, "MAP_PERM: %s", cmp->datum.name);
893 cil_log(CIL_INFO, " perms: ()");
897 cil_log(CIL_INFO, " kernel class perms: (");
901 cil_log(CIL_INFO, " )\n");
908 cil_log(CIL_INFO, "CLASSMAPPING: map class: %s, map perm: %s,", mapping->map_class_str, mapping->map_perm_str);
910 cil_log(CIL_INFO, " (");
914 cil_log(CIL_INFO, " )\n");
919 cil_log(CIL_INFO, "BOOL: %s, value: %d\n", boolean->datum.name, boolean->value);
924 cil_log(CIL_INFO, "TUNABLE: %s, value: %d\n", tunable->datum.name, tunable->value);
930 cil_log(CIL_INFO, "(BOOLEANIF ");
934 cil_log(CIL_INFO, " )\n");
940 cil_log(CIL_INFO, "(TUNABLEIF ");
944 cil_log(CIL_INFO, " )\n");
950 cil_log(CIL_INFO, "true\n");
952 cil_log(CIL_INFO, "false\n");
957 cil_log(CIL_INFO, "all");
960 cil_log(CIL_INFO, "&&");
963 cil_log(CIL_INFO, "|| ");
966 cil_log(CIL_INFO, "!");
969 cil_log(CIL_INFO, "==");
972 cil_log(CIL_INFO, "!=");
976 cil_log(CIL_INFO, "TYPEALIAS: %s\n", alias->datum.name);
981 cil_log(CIL_INFO, "TYPEALIASACTUAL: type: %s, alias: %s\n", aliasactual->alias_str, aliasactual->actual_str);
986 cil_log(CIL_INFO, "TYPEBOUNDS: type: %s, bounds: %s\n", bnds->parent_str, bnds->child_str);
993 cil_log(CIL_INFO, "TYPEPERMISSIVE: %s\n", ((struct cil_symtab_datum *)typeperm->type)->name);
995 cil_log(CIL_INFO, "TYPEPERMISSIVE: %s\n", typeperm->type_str);
1002 cil_log(CIL_INFO, "TYPETRANSITION:");
1005 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->src)->name);
1007 cil_log(CIL_INFO, " %s", nametypetrans->src_str);
1011 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->tgt)->name);
1013 cil_log(CIL_INFO, " %s", nametypetrans->tgt_str);
1017 cil_log(CIL_INFO, " %s", nametypetrans->obj->datum.name);
1019 cil_log(CIL_INFO, " %s", nametypetrans->obj_str);
1022 cil_log(CIL_INFO, " %s\n", nametypetrans->name_str);
1025 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)nametypetrans->result)->name);
1027 cil_log(CIL_INFO, " %s", nametypetrans->result_str);
1034 cil_log(CIL_INFO, "RANGETRANSITION:");
1037 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->src)->name);
1039 cil_log(CIL_INFO, " %s", rangetrans->src_str);
1043 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rangetrans->exec)->name);
1045 cil_log(CIL_INFO, " %s", rangetrans->exec_str);
1049 cil_log(CIL_INFO, " %s", rangetrans->obj->datum.name);
1051 cil_log(CIL_INFO, " %s", rangetrans->obj_str);
1055 cil_log(CIL_INFO, " (");
1057 cil_log(CIL_INFO, " )");
1059 cil_log(CIL_INFO, " %s", rangetrans->range_str);
1062 cil_log(CIL_INFO, "\n");
1069 cil_log(CIL_INFO, "ALLOW:");
1072 cil_log(CIL_INFO, "AUDITALLOW:");
1075 cil_log(CIL_INFO, "DONTAUDIT:");
1078 cil_log(CIL_INFO, "NEVERALLOW:");
1083 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)rule->src)->name);
1085 cil_log(CIL_INFO, " %s", rule->src_str);
1089 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum*)rule->tgt)->name);
1091 cil_log(CIL_INFO, " %s", rule->tgt_str);
1096 cil_log(CIL_INFO, "\n");
1104 cil_log(CIL_INFO, "TYPETRANSITION:");
1107 cil_log(CIL_INFO, "TYPEMEMBER:");
1110 cil_log(CIL_INFO, "TYPECHANGE:");
1115 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rule->src)->name);
1117 cil_log(CIL_INFO, " %s", rule->src_str);
1121 cil_log(CIL_INFO, " %s", ((struct cil_symtab_datum *)rule->tgt)->name);
1123 cil_log(CIL_INFO, " %s", rule->tgt_str);
1127 cil_log(CIL_INFO, " %s", rule->obj->datum.name);
1129 cil_log(CIL_INFO, " %s", rule->obj_str);
1133 cil_log(CIL_INFO, " %s\n", ((struct cil_symtab_datum *)rule->result)->name);
1135 cil_log(CIL_INFO, " %s\n", rule->result_str);
1142 cil_log(CIL_INFO, "SENSITIVITY: %s\n", sens->datum.name);
1147 cil_log(CIL_INFO, "SENSITIVITYALIAS: %s\n", alias->datum.name);
1152 cil_log(CIL_INFO, "SENSITIVITYALIAS: alias: %s, sensitivity: %s\n", aliasactual->alias_str, aliasactual->actual_str);
1158 cil_log(CIL_INFO, "CATEGORY: %s\n", cat->datum.name);
1163 cil_log(CIL_INFO, "CATEGORYALIAS: %s\n", alias->datum.name);
1168 cil_log(CIL_INFO, "CATEGORYALIAS: alias %s, category: %s\n", aliasactual->alias_str, aliasactual->actual_str);
1174 cil_log(CIL_INFO, "CATSET: %s ",catset->datum.name);
1185 cil_log(CIL_INFO, "CATORDER: ()\n");
1189 cil_log(CIL_INFO, "CATORDER: (");
1191 cil_log(CIL_INFO, " %s", (char*)cat->data);
1193 cil_log(CIL_INFO, " )\n");
1199 cil_log(CIL_INFO, "SENSCAT: sens:");
1202 cil_log(CIL_INFO, " %s ", senscat->sens_str);
1204 cil_log(CIL_INFO, " [processed]");
1215 cil_log(CIL_INFO, "SENSITIVITYORDER: (");
1221 cil_log(CIL_INFO, " (");
1223 cil_log(CIL_INFO, " %s", (char*)sub->data);
1225 cil_log(CIL_INFO, " )");
1227 cil_log(CIL_INFO, " %s", (char*)sens->data);
1232 cil_log(CIL_INFO, " )\n");
1237 cil_log(CIL_INFO, "LEVEL %s:", level->datum.name);
1239 cil_log(CIL_INFO, "\n");
1244 cil_log(CIL_INFO, "LEVELRANGE %s:", lvlrange->datum.name);
1246 cil_log(CIL_INFO, "\n");
1251 cil_log(CIL_INFO, "CONSTRAIN: (");
1257 cil_log(CIL_INFO, "MLSCONSTRAIN: (");
1264 cil_log(CIL_INFO, "(VALIDATETRANS ");
1267 cil_log(CIL_INFO, "%s ", vt->class->datum.name);
1269 cil_log(CIL_INFO, "%s ", vt->class_str);
1274 cil_log(CIL_INFO, ")\n");
1280 cil_log(CIL_INFO, "(MLSVALIDATETRANS ");
1283 cil_log(CIL_INFO, "%s ", vt->class->datum.name);
1285 cil_log(CIL_INFO, "%s ", vt->class_str);
1290 cil_log(CIL_INFO, ")\n");
1295 cil_log(CIL_INFO, "CONTEXT %s:", context->datum.name);
1297 cil_log(CIL_INFO, "\n");
1302 cil_log(CIL_INFO, "FILECON:");
1303 cil_log(CIL_INFO, " %s %d", filecon->path_str, filecon->type);
1308 cil_log(CIL_INFO, " %s", filecon->context_str);
1311 cil_log(CIL_INFO, "\n");
1317 cil_log(CIL_INFO, "PORTCON:");
1319 cil_log(CIL_INFO, " udp");
1321 cil_log(CIL_INFO, " tcp");
1323 cil_log(CIL_INFO, " (%d %d)", portcon->port_low, portcon->port_high);
1328 cil_log(CIL_INFO, " %s", portcon->context_str);
1331 cil_log(CIL_INFO, "\n");
1338 cil_log(CIL_INFO, "NODECON:");
1342 cil_log(CIL_INFO, " %s", buf);
1344 cil_log(CIL_INFO, " %s", nodecon->addr_str);
1349 cil_log(CIL_INFO, " %s", buf);
1351 cil_log(CIL_INFO, " %s", nodecon->mask_str);
1357 cil_log(CIL_INFO, " %s", nodecon->context_str);
1360 cil_log(CIL_INFO, "\n");
1365 cil_log(CIL_INFO, "GENFSCON:");
1366 cil_log(CIL_INFO, " %s %s", genfscon->fs_str, genfscon->path_str);
1371 cil_log(CIL_INFO, " %s", genfscon->context_str);
1374 cil_log(CIL_INFO, "\n");
1379 cil_log(CIL_INFO, "NETIFCON %s", netifcon->interface_str);
1384 cil_log(CIL_INFO, " %s", netifcon->if_context_str);
1390 cil_log(CIL_INFO, " %s", netifcon->packet_context_str);
1393 cil_log(CIL_INFO, "\n");
1399 cil_log(CIL_INFO, "PIRQCON %d", pirqcon->pirq);
1403 cil_log(CIL_INFO, " %s", pirqcon->context_str);
1406 cil_log(CIL_INFO, "\n");
1412 cil_log(CIL_INFO, "IOMEMCON ( %"PRId64" %"PRId64" )", iomemcon->iomem_low, iomemcon->iomem_high);
1416 cil_log(CIL_INFO, " %s", iomemcon->context_str);
1419 cil_log(CIL_INFO, "\n");
1425 cil_log(CIL_INFO, "IOPORTCON ( %d %d )", ioportcon->ioport_low, ioportcon->ioport_high);
1429 cil_log(CIL_INFO, " %s", ioportcon->context_str);
1432 cil_log(CIL_INFO, "\n");
1438 cil_log(CIL_INFO, "PCIDEVICECON %d", pcidevicecon->dev);
1442 cil_log(CIL_INFO, " %s", pcidevicecon->context_str);
1445 cil_log(CIL_INFO, "\n");
1451 cil_log(CIL_INFO, "DEVICETREECON %s", devicetreecon->path);
1455 cil_log(CIL_INFO, " %s", devicetreecon->context_str);
1458 cil_log(CIL_INFO, "\n");
1463 cil_log(CIL_INFO, "FSUSE: ");
1466 cil_log(CIL_INFO, "xattr ");
1468 cil_log(CIL_INFO, "task ");
1470 cil_log(CIL_INFO, "trans ");
1472 cil_log(CIL_INFO, "unknown ");
1475 cil_log(CIL_INFO, "%s ", fsuse->fs_str);
1480 cil_log(CIL_INFO, " %s", fsuse->context_str);
1483 cil_log(CIL_INFO, "\n");
1488 cil_log(CIL_INFO, "SID: %s\n", sid->datum.name);
1493 cil_log(CIL_INFO, "SIDCONTEXT: %s", sidcon->sid_str);
1498 cil_log(CIL_INFO, " %s", sidcon->context_str);
1501 cil_log(CIL_INFO, "\n");
1509 cil_log(CIL_INFO, "SIDORDER: ()\n");
1513 cil_log(CIL_INFO, "SIDORDER: (");
1515 cil_log(CIL_INFO, " %s", (char*)sid->data);
1517 cil_log(CIL_INFO, " )\n");
1522 cil_log(CIL_INFO, "POLICYCAP: %s\n", polcap->datum.name);
1527 cil_log(CIL_INFO, "MACRO %s:", macro->datum.name);
1531 cil_log(CIL_INFO, " parameters: (");
1533 cil_log(CIL_INFO, " flavor: %d, string: %s;", ((struct cil_param*)curr_param->data)->flavor, ((struct cil_param*)curr_param->data)->str);
1536 cil_log(CIL_INFO, " )");
1538 cil_log(CIL_INFO, "\n");
1544 cil_log(CIL_INFO, "CALL: macro name:");
1547 cil_log(CIL_INFO, " %s", call->macro->datum.name);
1549 cil_log(CIL_INFO, " %s", call->macro_str);
1553 cil_log(CIL_INFO, ", args: ( ");
1563 case CIL_TYPE: cil_log(CIL_INFO, "type:"); break;
1564 case CIL_USER: cil_log(CIL_INFO, "user:"); break;
1565 case CIL_ROLE: cil_log(CIL_INFO, "role:"); break;
1566 case CIL_SENS: cil_log(CIL_INFO, "sensitivity:"); break;
1567 case CIL_CAT: cil_log(CIL_INFO, "category:"); break;
1568 case CIL_CATSET: cil_log(CIL_INFO, "categoryset:"); break;
1569 case CIL_LEVEL: cil_log(CIL_INFO, "level:"); break;
1570 case CIL_CLASS: cil_log(CIL_INFO, "class:"); break;
1573 cil_log(CIL_INFO, "%s ", ((struct cil_args*)item->data)->arg_str);
1576 cil_log(CIL_INFO, ")");
1579 cil_log(CIL_INFO, "\n");
1584 cil_log(CIL_INFO, "OPTIONAL: %s\n", optional->datum.name);
1592 cil_log(CIL_INFO, "IPADDR %s: %s\n", ipaddr->datum.name, buf);
1597 cil_log(CIL_INFO, "CIL FLAVOR: %d\n", node->flavor);
1614 cil_log(CIL_INFO, "%s", (char*)current->data);
1616 cil_log(CIL_INFO, " %s", (char*)current->data);
1620 cil_log(CIL_INFO, "\t");
1626 cil_log(CIL_INFO, "\n");
1628 cil_log(CIL_INFO, "\t");
1630 cil_log(CIL_INFO, "(");
1642 cil_log(CIL_INFO, ")\n");
1645 cil_log(CIL_INFO, "\t");
1647 cil_log(CIL_INFO, ")\n");
1649 cil_log(CIL_INFO, ")");
1654 cil_log(CIL_INFO, "\n\n");
1659 cil_log(CIL_INFO, "Tree is NULL\n");