Lines Matching refs:sepol_printf
417 sepol_printf(out, "# handle_unknown %s\n", action); in write_handle_unknown_to_conf()
429 sepol_printf(out, "class %s\n", name); in write_class_decl_rules_to_conf()
473 sepol_printf(out, "sid %s\n", sid); in write_sids_to_conf()
566 sepol_printf(out, "common %s { %s }\n", name, perms); in write_class_and_common_rules_to_conf()
577 sepol_printf(out, "class %s", name); in write_class_and_common_rules_to_conf()
579 sepol_printf(out, " inherits %s", class->comkey); in write_class_and_common_rules_to_conf()
583 sepol_printf(out, " { %s }", perms); in write_class_and_common_rules_to_conf()
586 sepol_printf(out, "\n"); in write_class_and_common_rules_to_conf()
612 sepol_printf(out, "default_user { %s } %s;\n", class_name, dft); in write_default_user_to_conf()
632 sepol_printf(out, "default_role { %s } %s;\n", class_name, dft); in write_default_role_to_conf()
652 sepol_printf(out, "default_type { %s } %s;\n", class_name, dft); in write_default_type_to_conf()
687 sepol_printf(out, "default_range { %s } %s;\n", class_name, dft); in write_default_range_to_conf()
836 sepol_printf(out, "sensitivity %s alias { %s };\n", name, alias); in write_sensitivity_rules_to_conf()
838 sepol_printf(out, "sensitivity %s alias %s;\n", name, alias); in write_sensitivity_rules_to_conf()
841 sepol_printf(out, "sensitivity %s;\n", name); in write_sensitivity_rules_to_conf()
846 sepol_printf(out, "dominance { "); in write_sensitivity_rules_to_conf()
859 sepol_printf(out, "%s ", prev); in write_sensitivity_rules_to_conf()
864 sepol_printf(out, "%s", prev); in write_sensitivity_rules_to_conf()
866 sepol_printf(out, " }\n"); in write_sensitivity_rules_to_conf()
967 sepol_printf(out, "category %s alias { %s };\n", name, alias); in write_category_rules_to_conf()
969 sepol_printf(out, "category %s alias %s;\n", name, alias); in write_category_rules_to_conf()
972 sepol_printf(out, "category %s;\n", name); in write_category_rules_to_conf()
1095 sepol_printf(out, "level %s:%s;\n", name, cats); in write_level_rules_to_conf()
1098 sepol_printf(out, "level %s;\n", name); in write_level_rules_to_conf()
1214 sepol_printf(out, "attribute %s;\n", name); in write_type_attributes_to_conf()
1259 sepol_printf(out, "attribute_role %s;\n", name); in write_role_attributes_to_conf()
1344 sepol_printf(out, "type %s;\n", name); in write_type_decl_rules_to_conf()
1397 sepol_printf(out, "typealias %s %s;\n", type, name); in write_type_alias_rules_to_conf()
1451 sepol_printf(out, "typebounds %s %s;\n", parent, child); in write_type_bounds_rules_to_conf()
1620 sepol_printf(out, "permissive %s;\n", name); in write_type_permissive_rules_to_conf()
2070 sepol_printf(out, "if (%s) {\n", expr); in write_cond_nodes_to_conf()
2080 sepol_printf(out, "} else {\n"); in write_cond_nodes_to_conf()
2086 sepol_printf(out, "}\n"); in write_cond_nodes_to_conf()
2137 sepol_printf(out, "role %s;\n", name); in write_role_decl_rules_to_conf()
2167 sepol_printf(out, "role %s types { %s };\n", name, p1); in write_role_decl_rules_to_conf()
2171 sepol_printf(out, "role %s types { %s };\n", name, types); in write_role_decl_rules_to_conf()
2299 sepol_printf(out, "user %s", name); in write_user_decl_rules_to_conf()
2309 sepol_printf(out, " roles { %s }", roles); in write_user_decl_rules_to_conf()
2311 sepol_printf(out, " roles %s", roles); in write_user_decl_rules_to_conf()
2322 sepol_printf(out, " level %s", level); in write_user_decl_rules_to_conf()
2330 sepol_printf(out, " range %s", range); in write_user_decl_rules_to_conf()
2333 sepol_printf(out, ";\n"); in write_user_decl_rules_to_conf()
2454 sepol_printf(out, "fs_use_%s %s %s;\n", behavior, name, ctx); in write_selinux_fsuse_rules_to_conf()
2554 sepol_printf(out, "portcon %s %s %s\n", protocol, low_high_str, ctx); in write_selinux_port_rules_to_conf()
2589 sepol_printf(out, "netifcon %s %s %s\n", name, ctx1, ctx2); in write_selinux_netif_rules_to_conf()
2630 sepol_printf(out, "nodecon %s %s %s\n", addr, mask, ctx); in write_selinux_node_rules_to_conf()
2671 sepol_printf(out, "nodecon %s %s %s\n", addr, mask, ctx); in write_selinux_node6_rules_to_conf()
2726 sepol_printf(out, "ibpkeycon %s %s %s\n", subnet_prefix_str, in write_selinux_ibpkey_rules_to_conf()
2763 sepol_printf(out, "ibendportcon %s %s %s\n", ibendportcon->u.ibendport.dev_name, port_str, ctx); in write_selinux_ibendport_rules_to_conf()
2806 sepol_printf(out, "pirqcon %s %s\n", pirq_str, ctx); in write_xen_pirq_rules_to_conf()
2849 sepol_printf(out, "ioportcon %s %s\n", low_high_str, ctx); in write_xen_ioport_rules_to_conf()
2892 sepol_printf(out, "iomemcon %s %s\n", low_high_str, ctx); in write_xen_iomem_rules_to_conf()
2927 sepol_printf(out, "pcidevicecon %s %s\n", device_str, ctx); in write_xen_pcidevice_rules_to_conf()
2956 sepol_printf(out, "devicetreecon %s %s\n", name, ctx); in write_xen_devicetree_rules_to_conf()