Lines Matching refs:sepol_printf

413 	sepol_printf(out, "(handleunknown %s)\n", action);  in write_handle_unknown_to_cil()
459 sepol_printf(out, "(class %s (%s))\n", name, perms); in write_class_decl_rules_to_cil()
462 sepol_printf(out, "(class %s ())\n", name); in write_class_decl_rules_to_cil()
467 sepol_printf(out, "(classorder ("); in write_class_decl_rules_to_cil()
471 sepol_printf(out, "%s ", name); in write_class_decl_rules_to_cil()
476 sepol_printf(out, "%s", name); in write_class_decl_rules_to_cil()
478 sepol_printf(out, "))\n"); in write_class_decl_rules_to_cil()
485 sepol_printf(out, "(classcommon %s %s)\n", name, class->comkey); in write_class_decl_rules_to_cil()
516 sepol_printf(out, "(common %s (%s))\n", name, perms); in write_class_decl_rules_to_cil()
567 sepol_printf(out, "(sid %s)\n", sid); in write_sids_to_cil()
570 sepol_printf(out, "(sidorder ("); in write_sids_to_cil()
578 sepol_printf(out, "%s ", prev); in write_sids_to_cil()
583 sepol_printf(out, "%s", prev); in write_sids_to_cil()
585 sepol_printf(out, "))\n"); in write_sids_to_cil()
633 sepol_printf(out, "(defaultuser %s %s)\n", class_name, dft); in write_default_user_to_cil()
653 sepol_printf(out, "(defaultrole %s %s)\n", class_name, dft); in write_default_role_to_cil()
673 sepol_printf(out, "(defaulttype %s %s)\n", class_name, dft); in write_default_type_to_cil()
705 sepol_printf(out, "(defaultrange %s %s)\n", class_name, dft); in write_default_range_to_cil()
774 sepol_printf(out, "(sensitivity s0)"); in write_default_mls_level()
775 sepol_printf(out, "(sensitivityorder (s0))"); in write_default_mls_level()
776 sepol_printf(out, "(level %s (s0))", DEFAULT_LEVEL); in write_default_mls_level()
816 sepol_printf(out, "(sensitivity %s)\n", name); in write_sensitivity_rules_to_cil()
820 sepol_printf(out, "(sensitivityorder ("); in write_sensitivity_rules_to_cil()
833 sepol_printf(out, "%s ", prev); in write_sensitivity_rules_to_cil()
838 sepol_printf(out, "%s", prev); in write_sensitivity_rules_to_cil()
840 sepol_printf(out, "))\n"); in write_sensitivity_rules_to_cil()
859 sepol_printf(out, "(sensitivityalias %s)\n", name); in write_sensitivity_rules_to_cil()
871 sepol_printf(out, "(sensitivityaliasactual %s %s)\n", name, actual); in write_sensitivity_rules_to_cil()
921 sepol_printf(out, "(category %s)\n", name); in write_category_rules_to_cil()
925 sepol_printf(out, "(categoryorder ("); in write_category_rules_to_cil()
938 sepol_printf(out, "%s ", prev); in write_category_rules_to_cil()
943 sepol_printf(out, "%s", prev); in write_category_rules_to_cil()
945 sepol_printf(out, "))\n"); in write_category_rules_to_cil()
964 sepol_printf(out, "(categoryalias %s)\n", name); in write_category_rules_to_cil()
976 sepol_printf(out, "(categoryaliasactual %s %s)\n", name, actual); in write_category_rules_to_cil()
1105 sepol_printf(out, "(sensitivitycategory %s %s)\n", name, cats); in write_sensitivitycategory_rules_to_cil()
1123 sepol_printf(out, "(mls false)\n"); in write_mls_rules_to_cil()
1129 sepol_printf(out, "(mls true)\n"); in write_mls_rules_to_cil()
1229 sepol_printf(out, "(typeattribute %s)\n", name); in write_type_attributes_to_cil()
1274 sepol_printf(out, "(roleattribute %s)\n", name); in write_role_attributes_to_cil()
1359 sepol_printf(out, "(type %s)\n", name); in write_type_decl_rules_to_cil()
1405 sepol_printf(out, "(typealias %s)\n", name); in write_type_alias_rules_to_cil()
1420 sepol_printf(out, "(typealiasactual %s %s)\n", name, type); in write_type_alias_rules_to_cil()
1474 sepol_printf(out, "(typebounds %s %s)\n", parent, child); in write_type_bounds_rules_to_cil()
1565 sepol_printf(out, "(typepermissive %s)\n", name); in write_type_permissive_rules_to_cil()
2087 sepol_printf(out, "(booleanif %s\n", expr); in write_cond_nodes_to_cil()
2091 sepol_printf(out, "(true\n"); in write_cond_nodes_to_cil()
2097 sepol_printf(out, ")\n"); in write_cond_nodes_to_cil()
2102 sepol_printf(out, "(false\n"); in write_cond_nodes_to_cil()
2108 sepol_printf(out, ")\n"); in write_cond_nodes_to_cil()
2110 sepol_printf(out, ")\n"); in write_cond_nodes_to_cil()
2162 sepol_printf(out, "(role %s)\n", name); in write_role_decl_rules_to_cil()
2178 sepol_printf(out, "(rolebounds %s %s)\n", parent, child); in write_role_decl_rules_to_cil()
2208 sepol_printf(out, "(roletype %s %s)\n", name, type); in write_role_decl_rules_to_cil()
2240 sepol_printf(out, "(roletype %s %s)\n", DEFAULT_OBJECT, name); in write_role_decl_rules_to_cil()
2362 sepol_printf(out, "(user %s)\n", name); in write_user_decl_rules_to_cil()
2400 sepol_printf(out, "(userrole %s %s)\n", name, role); in write_user_decl_rules_to_cil()
2418 sepol_printf(out, "(userlevel %s ", name); in write_user_decl_rules_to_cil()
2426 sepol_printf(out, "%s", level); in write_user_decl_rules_to_cil()
2429 sepol_printf(out, "%s", DEFAULT_LEVEL); in write_user_decl_rules_to_cil()
2431 sepol_printf(out, ")\n"); in write_user_decl_rules_to_cil()
2446 sepol_printf(out, "(userrange %s ", name); in write_user_decl_rules_to_cil()
2453 sepol_printf(out, "%s", range); in write_user_decl_rules_to_cil()
2456 sepol_printf(out, "(%s %s)", DEFAULT_LEVEL, DEFAULT_LEVEL); in write_user_decl_rules_to_cil()
2458 sepol_printf(out, ")\n"); in write_user_decl_rules_to_cil()
2584 sepol_printf(out, "(fsuse %s %s %s)\n", behavior, name, ctx); in write_selinux_fsuse_rules_to_cil()
2684 sepol_printf(out, "(portcon %s %s %s)\n", protocol, low_high_str, ctx); in write_selinux_port_rules_to_cil()
2719 sepol_printf(out, "(netifcon %s %s %s)\n", name, ctx1, ctx2); in write_selinux_netif_rules_to_cil()
2760 sepol_printf(out, "(nodecon (%s) (%s) %s)\n", addr, mask, ctx); in write_selinux_node_rules_to_cil()
2800 sepol_printf(out, "(nodecon (%s) (%s) %s)\n", addr, mask, ctx); in write_selinux_node6_rules_to_cil()
2855 sepol_printf(out, "(ibpkeycon %s %s %s)\n", subnet_prefix_str, low_high_str, ctx); in write_selinux_ibpkey_rules_to_cil()
2891 sepol_printf(out, "(ibendportcon %s %s %s)\n", in write_selinux_ibendport_rules_to_cil()
2932 sepol_printf(out, "(pirqcon %s %s)\n", pirq_str, ctx); in write_xen_pirq_rules_to_cil()
2975 sepol_printf(out, "(ioportcon %s %s)\n", low_high_str, ctx); in write_xen_ioport_rules_to_cil()
3018 sepol_printf(out, "(iomemcon %s %s)\n", low_high_str, ctx); in write_xen_iomem_rules_to_cil()
3053 sepol_printf(out, "(pcidevicecon %s %s)\n", device_str, ctx); in write_xen_pcidevice_rules_to_cil()
3082 sepol_printf(out, "(devicetreecon %s %s)\n", name, ctx); in write_xen_devicetree_rules_to_cil()