Lines Matching refs:cil_printf
96 static void cil_printf(const char *fmt, ...) { in cil_printf() function
531 cil_printf("(%s ", pdb->p_sens_val_to_name[level->sens - sens_offset]); in semantic_level_to_cil()
534 cil_printf("("); in semantic_level_to_cil()
539 cil_printf("%s", pdb->p_cat_val_to_name[cat->low - 1]); in semantic_level_to_cil()
541 …cil_printf("range %s %s", pdb->p_cat_val_to_name[cat->low - 1], pdb->p_cat_val_to_name[cat->high -… in semantic_level_to_cil()
545 cil_printf(" "); in semantic_level_to_cil()
550 cil_printf(")"); in semantic_level_to_cil()
553 cil_printf(")"); in semantic_level_to_cil()
652 cil_printf(" "); in xperms_to_cil()
660 cil_printf("(range 0x%hx 0x%hx)", low_value, value); in xperms_to_cil()
663 cil_printf("0x%hx", value); in xperms_to_cil()
669 cil_printf("(range 0x%hx 0x%hx)", low_value, (uint16_t) (value|0xff)); in xperms_to_cil()
672 cil_printf("(range 0x%hx 0x%hx)", value, (uint16_t) (value|0xff)); in xperms_to_cil()
707 cil_printf("(%s %s %s (%s %s (", rule, src, tgt, in avrulex_to_cil()
710 cil_printf(")))\n"); in avrulex_to_cil()
739 cil_printf("%s ", val_to_name[i]); in ebitmap_to_cil()
849 cil_printf("(%sattributeset %s ", kind, attr_name); in cil_print_attr_strs()
852 cil_printf("(all)"); in cil_print_attr_strs()
856 cil_printf("(not "); in cil_print_attr_strs()
860 cil_printf("(and "); in cil_print_attr_strs()
864 cil_printf("("); in cil_print_attr_strs()
869 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
871 cil_printf(") "); in cil_print_attr_strs()
875 cil_printf("(not ("); in cil_print_attr_strs()
881 cil_printf("%s ", val_to_name[i]); in cil_print_attr_strs()
884 cil_printf("))"); in cil_print_attr_strs()
888 cil_printf(")"); in cil_print_attr_strs()
892 cil_printf(")"); in cil_print_attr_strs()
895 cil_printf(")\n"); in cil_print_attr_strs()
1577 …cil_printf("(rangetransition %s %s %s ", stypes[stype], ttypes[ttype], pdb->p_class_val_to_name[i]… in range_trans_to_cil()
1579 cil_printf("("); in range_trans_to_cil()
1586 cil_printf(" "); in range_trans_to_cil()
1593 cil_printf("))\n"); in range_trans_to_cil()
1707 cil_printf("(common %s (", key); in common_to_cil()
1709 cil_printf("%s ", arr.perms[i].name); in common_to_cil()
1711 cil_printf("))\n"); in common_to_cil()
2001 cil_printf("(class %s (", key); in class_to_cil()
2003 cil_printf("%s ", arr.perms[i].name); in class_to_cil()
2005 cil_printf("))\n"); in class_to_cil()
2095 cil_printf("(classorder ("); in class_order_to_cil()
2101 cil_printf("%s ", pdb->sym_val_to_name[SYM_CLASSES][i]); in class_order_to_cil()
2104 cil_printf("))\n"); in class_order_to_cil()
2201 cil_printf("(roleattributeset %s (", key); in role_to_cil()
2206 cil_printf("%s ", pdb->p_role_val_to_name[i]); in role_to_cil()
2208 cil_printf("))\n"); in role_to_cil()
2287 cil_printf("(expandtypeattribute (%s) ", key); in type_to_cil()
2289 cil_printf("true"); in type_to_cil()
2291 cil_printf("false"); in type_to_cil()
2293 cil_printf(")\n"); in type_to_cil()
2298 cil_printf("(typeattributeset %s (", key); in type_to_cil()
2300 cil_printf("))\n"); in type_to_cil()
2348 cil_printf("(userlevel %s ", key); in user_to_cil()
2352 cil_printf(DEFAULT_LEVEL); in user_to_cil()
2354 cil_printf(")\n"); in user_to_cil()
2357 cil_printf("(userrange %s (", key); in user_to_cil()
2360 cil_printf(" "); in user_to_cil()
2363 cil_printf(DEFAULT_LEVEL " " DEFAULT_LEVEL); in user_to_cil()
2365 cil_printf("))\n"); in user_to_cil()
2404 cil_printf("(sensitivitycategory %s (", key); in sens_to_cil()
2406 cil_printf("))\n"); in sens_to_cil()
2422 cil_printf("(sensitivityorder ("); in sens_order_to_cil()
2428 cil_printf("%s ", pdb->p_sens_val_to_name[i]); in sens_order_to_cil()
2431 cil_printf("))\n"); in sens_order_to_cil()
2466 cil_printf("(categoryorder ("); in cat_order_to_cil()
2472 cil_printf("%s ", pdb->p_cat_val_to_name[i]); in cat_order_to_cil()
2475 cil_printf("))\n"); in cat_order_to_cil()
2515 cil_printf("(%s", pdb->p_sens_val_to_name[level->sens - 1]); in level_to_cil()
2518 cil_printf("("); in level_to_cil()
2520 cil_printf(")"); in level_to_cil()
2523 cil_printf(")"); in level_to_cil()
2530 cil_printf("(%s %s %s (", in context_to_cil()
2537 cil_printf(" "); in context_to_cil()
2540 cil_printf(DEFAULT_LEVEL); in context_to_cil()
2541 cil_printf(" "); in context_to_cil()
2542 cil_printf(DEFAULT_LEVEL); in context_to_cil()
2545 cil_printf("))"); in context_to_cil()
2577 cil_printf("(sidcontext %s ", sid); in ocontext_isid_to_cil()
2579 cil_printf(")\n"); in ocontext_isid_to_cil()
2595 cil_printf("(sidorder ("); in ocontext_isid_to_cil()
2597 cil_printf("%s ", item->sid_key); in ocontext_isid_to_cil()
2599 cil_printf("))\n"); in ocontext_isid_to_cil()
2663 cil_printf("(portcon %s %i ", protocol, low); in ocontext_selinux_port_to_cil()
2665 cil_printf("(portcon %s (%i %i) ", protocol, low, high); in ocontext_selinux_port_to_cil()
2670 cil_printf(")\n"); in ocontext_selinux_port_to_cil()
2703 cil_printf("(ibpkeycon %s %i ", subnet_prefix_str, low); in ocontext_selinux_ibpkey_to_cil()
2705 cil_printf("(ibpkeycon %s (%i %i) ", subnet_prefix_str, low, in ocontext_selinux_ibpkey_to_cil()
2710 cil_printf(")\n"); in ocontext_selinux_ibpkey_to_cil()
2722 cil_printf("(netifcon %s ", netif->u.name); in ocontext_selinux_netif_to_cil()
2725 cil_printf(" "); in ocontext_selinux_netif_to_cil()
2727 cil_printf(")\n"); in ocontext_selinux_netif_to_cil()
2753 cil_printf("(nodecon (%s) (%s) ", addr, mask); in ocontext_selinux_node_to_cil()
2757 cil_printf(")\n"); in ocontext_selinux_node_to_cil()
2785 cil_printf("(nodecon (%s) (%s) ", addr, mask); in ocontext_selinux_node6_to_cil()
2789 cil_printf(")\n"); in ocontext_selinux_node6_to_cil()
2802 cil_printf("(ibendportcon %s %u ", ibendport->u.ibendport.dev_name, ibendport->u.ibendport.port); in ocontext_selinux_ibendport_to_cil()
2805 cil_printf(")\n"); in ocontext_selinux_ibendport_to_cil()
2829 cil_printf("(fsuse %s %s ", behavior, fsuse->u.name); in ocontext_selinux_fsuse_to_cil()
2833 cil_printf(")\n"); in ocontext_selinux_fsuse_to_cil()
2863 cil_printf("(pirqcon %i ", pirq->u.pirq); in ocontext_xen_pirq_to_cil()
2865 cil_printf(")\n"); in ocontext_xen_pirq_to_cil()
2882 cil_printf("(ioportcon 0x%x ", low); in ocontext_xen_ioport_to_cil()
2884 cil_printf("(ioportcon (0x%x 0x%x) ", low, high); in ocontext_xen_ioport_to_cil()
2889 cil_printf(")\n"); in ocontext_xen_ioport_to_cil()
2906 cil_printf("(iomemcon 0x%"PRIx64" ", low); in ocontext_xen_iomem_to_cil()
2908 cil_printf("(iomemcon (0x%"PRIx64" 0x%"PRIx64") ", low, high); in ocontext_xen_iomem_to_cil()
2913 cil_printf(")\n"); in ocontext_xen_iomem_to_cil()
2924 cil_printf("(pcidevicecon 0x%lx ", (unsigned long)pcid->u.device); in ocontext_xen_pcidevice_to_cil()
2926 cil_printf(")\n"); in ocontext_xen_pcidevice_to_cil()
2993 cil_printf("(genfscon %s %s ", genfs->fstype, ocon->u.name); in genfscon_to_cil()
2995 cil_printf(")\n"); in genfscon_to_cil()
3019 cil_printf("(%s", sens); in level_string_to_cil()
3022 cil_printf("("); in level_string_to_cil()
3027 cil_printf("%s ", token); in level_string_to_cil()
3030 cil_printf("(range %s %s) ", token, ranged + 1); in level_string_to_cil()
3034 cil_printf(")"); in level_string_to_cil()
3037 cil_printf(")"); in level_string_to_cil()
3062 cil_printf(" "); in level_range_string_to_cil()
3084 cil_printf("(%s %s %s (", user, role, type); in context_string_to_cil()
3087 cil_printf(DEFAULT_LEVEL); in context_string_to_cil()
3088 cil_printf(" "); in context_string_to_cil()
3089 cil_printf(DEFAULT_LEVEL); in context_string_to_cil()
3094 cil_printf("))"); in context_string_to_cil()
3146 cil_printf("(selinuxuserdefault %s (", seuser); in seusers_to_cil()
3148 cil_printf("(selinuxuser %s %s (", user, seuser); in seusers_to_cil()
3153 cil_printf("systemlow systemlow"); in seusers_to_cil()
3160 cil_printf("))\n"); in seusers_to_cil()
3170 cil_printf("Failed to read seusers\n"); in seusers_to_cil()
3254 cil_printf("Failed to read user_extra\n"); in user_extra_to_cil()
3332 cil_printf("(filecon \"%s\" %s ", regex, cilmode); in file_contexts_to_cil()
3335 cil_printf("()"); in file_contexts_to_cil()
3340 cil_printf(")\n"); in file_contexts_to_cil()
3350 cil_printf("Failed to read file_contexts_to_cil\n"); in file_contexts_to_cil()