Home | History | Annotate | Download | only in bin

Lines Matching refs:format

99                         format='%(asctime)s|%(levelname)s|%(name)s|%(message)s')
101 logging.basicConfig(level=logging.INFO, format='%(message)s')
103 logging.basicConfig(level=logging.WARNING, format='%(message)s')
111 print("Policy Properties ({0} Modified)".format(len(diff.modified_properties)))
115 print(" * {0} +{1} -{2}".format(name, added, removed))
121 print("Commons ({0} Added, {1} Removed, {2} Modified)".format(
124 print(" Added Commons: {0}".format(len(diff.added_commons)))
126 print(" + {0}".format(c))
128 print(" Removed Commons: {0}".format(len(diff.removed_commons)))
130 print(" - {0}".format(c))
132 print(" Modified Commons: {0}".format(len(diff.modified_commons)))
136 change.append("{0} Added permissions".format(len(mod.added_perms)))
138 change.append("{0} Removed permissions".format(len(mod.removed_perms)))
140 print(" * {0} ({1})".format(name, ", ".join(change)))
142 print(" + {0}".format(p))
144 print(" - {0}".format(p))
149 print("Classes ({0} Added, {1} Removed, {2} Modified)".format(
152 print(" Added Classes: {0}".format(len(diff.added_classes)))
154 print(" + {0}".format(c))
156 print(" Removed Classes: {0}".format(len(diff.removed_classes)))
158 print(" - {0}".format(c))
160 print(" Modified Classes: {0}".format(len(diff.modified_classes)))
164 change.append("{0} Added permissions".format(len(mod.added_perms)))
166 change.append("{0} Removed permissions".format(len(mod.removed_perms)))
168 print(" * {0} ({1})".format(name, ", ".join(change)))
170 print(" + {0}".format(p))
172 print(" - {0}".format(p))
178 print("Booleans ({0} Added, {1} Removed, {2} Modified)".format(
182 print(" Added Booleans: {0}".format(len(diff.added_booleans)))
184 print(" + {0}".format(a))
186 print(" Removed Booleans: {0}".format(len(diff.removed_booleans)))
188 print(" - {0}".format(a))
190 print(" Modified Booleans: {0}".format(len(diff.modified_booleans)))
192 print(" * {0} (Modified default state)".format(name))
193 print(" + {0}".format(mod.added_state))
194 print(" - {0}".format(mod.removed_state))
200 print("Roles ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_roles),
204 print(" Added Roles: {0}".format(len(diff.added_roles)))
206 print(" + {0}".format(r))
208 print(" Removed Roles: {0}".format(len(diff.removed_roles)))
210 print(" - {0}".format(r))
212 print(" Modified Roles: {0}".format(len(diff.modified_roles)))
216 change.append("{0} Added types".format(len(mod.added_types)))
218 change.append("{0} Removed types".format(len(mod.removed_types)))
220 print(" * {0} ({1})".format(name, ", ".join(change)))
222 print(" + {0}".format(t))
224 print(" - {0}".format(t))
229 print("Types ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_types),
233 print(" Added Types: {0}".format(len(diff.added_types)))
235 print(" + {0}".format(r))
237 print(" Removed Types: {0}".format(len(diff.removed_types)))
239 print(" - {0}".format(r))
241 print(" Modified Types: {0}".format(len(diff.modified_types)))
245 change.append("{0} Added attributes".format(len(mod.added_attributes)))
247 change.append("{0} Removed attributes".format(len(mod.removed_attributes)))
249 change.append("{0} Added aliases".format(len(mod.added_aliases)))
251 change.append("{0} Removed aliases".format(len(mod.removed_aliases)))
258 print(" * {0} ({1})".format(name, ", ".join(change)))
262 print(" + {0}".format(t))
264 print(" - {0}".format(t))
269 print(" + {0}".format(t))
271 print(" - {0}".format(t))
278 print("Type Attributes ({0} Added, {1} Removed, {2} Modified)".format(
282 print(" Added Type Attributes: {0}".format(len(diff.added_type_attributes)))
284 print(" + {0}".format(a))
286 print(" Removed Type Attributes: {0}".format(len(diff.removed_type_attributes)))
288 print(" - {0}".format(a))
290 print(" Modified Type Attributes: {0}".format(len(diff.modified_type_attributes)))
294 change.append("{0} Added types".format(len(mod.added_types)))
296 change.append("{0} Removed types".format(len(mod.removed_types)))
298 print(" * {0} ({1})".format(name, ", ".join(change)))
300 print(" + {0}".format(t))
302 print(" - {0}".format(t))
307 print("Users ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_users),
311 print(" Added Users: {0}".format(len(diff.added_users)))
313 print(" + {0}".format(u))
315 print(" Removed Users: {0}".format(len(diff.removed_users)))
317 print(" - {0}".format(u))
319 print(" Modified Users: {0}".format(len(diff.modified_users)))
323 change.append("{0} Added roles".format(len(mod.added_roles)))
325 change.append("{0} Removed roles".format(len(mod.removed_roles)))
331 print(" * {0} ({1})".format(name, ", ".join(change)))
335 print(" + {0}".format(t))
337 print(" - {0}".format(t))
341 print(" + {0}".format(mod.added_level))
342 print(" - {0}".format(mod.removed_level))
346 print(" + {0}".format(mod.added_range))
347 print(" - {0}".format(mod.removed_range))
353 print("Categories ({0} Added, {1} Removed, {2} Modified)".format(
357 print(" Added Categories: {0}".format(len(diff.added_categories)))
359 print(" + {0}".format(c))
361 print(" Removed Categories: {0}".format(len(diff.removed_categories)))
363 print(" - {0}".format(c))
365 print(" Modified Categories: {0}".format(len(diff.modified_categories)))
369 change.append("{0} Added Aliases".format(len(mod.added_aliases)))
371 change.append("{0} Removed Aliases".format(len(mod.removed_aliases)))
373 print(" * {0} ({1})".format(name, ", ".join(change)))
376 print(" + {0}".format(a))
378 print(" - {0}".format(a))
385 print("Sensitivities ({0} Added, {1} Removed, {2} Modified)".format(
389 print(" Added Sensitivites: {0}".format(len(diff.added_sensitivities)))
391 print(" + {0}".format(s))
393 print(" Removed Sensitivities: {0}".format(len(diff.removed_sensitivities)))
395 print(" - {0}".format(s))
397 print(" Modified Sensitivities: {0}".format(len(diff.modified_sensitivities)))
401 change.append("{0} Added Aliases".format(len(mod.added_aliases)))
403 change.append("{0} Removed Aliases".format(len(mod.removed_aliases)))
405 print(" * {0} ({1})".format(name, ", ".join(change)))
408 print(" + {0}".format(a))
410 print(" - {0}".format(a))
417 print("Levels ({0} Added, {1} Removed, {2} Modified)".format(
421 print(" Added Levels: {0}".format(len(diff.added_levels)))
423 print(" + {0}".format(l))
425 print(" Removed Levels: {0}".format(len(diff.removed_levels)))
427 print(" - {0}".format(l))
429 print(" Modified Levels: {0}".format(len(diff.modified_levels)))
434 change.append("{0} Added Categories".format(len(added_categories)))
436 change.append("{0} Removed Categories".format(len(removed_categories)))
438 print(" * {0} ({1})".format(level.sensitivity, ", ".join(change)))
440 print(" + {0}".format(c))
442 print(" - {0}".format(c))
447 print("Allow Rules ({0} Added, {1} Removed, {2} Modified)".format(
451 print(" Added Allow Rules: {0}".format(len(diff.added_allows)))
453 print(" + {0}".format(r))
456 print(" Removed Allow Rules: {0}".format(len(diff.removed_allows)))
458 print(" - {0}".format(r))
461 print(" Modified Allow Rules: {0}".format(len(diff.modified_allows)))
468 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {{ {1} }};".format(
472 rule_string += " [ {0} ]".format(rule.conditional)
475 print(" * {0}".format(rule_string))
482 print("Neverallow Rules ({0} Added, {1} Removed, {2} Modified)".format(
487 print(" Added Neverallow Rules: {0}".format(len(diff.added_neverallows)))
489 print(" + {0}".format(r))
492 print(" Removed Neverallow Rules: {0}".format(len(diff.removed_neverallows)))
494 print(" - {0}".format(r))
497 print(" Modified Neverallow Rules: {0}".format(len(diff.modified_neverallows)))
504 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {{ {1} }};".format(
508 rule_string += " [ {0} ]".format(rule.conditional)
511 print(" * {0}".format(rule_string))
518 print("Auditallow Rules ({0} Added, {1} Removed, {2} Modified)".format(
523 print(" Added Auditallow Rules: {0}".format(len(diff.added_auditallows)))
525 print(" + {0}".format(r))
528 print(" Removed Auditallow Rules: {0}".format(len(diff.removed_auditallows)))
530 print(" - {0}".format(r))
533 print(" Modified Auditallow Rules: {0}".format(len(diff.modified_auditallows)))
540 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {{ {1} }};".format(
544 rule_string += " [ {0} ]".format(rule.conditional)
547 print(" * {0}".format(rule_string))
554 print("Dontaudit Rules ({0} Added, {1} Removed, {2} Modified)".format(
559 print(" Added Dontaudit Rules: {0}".format(len(diff.added_dontaudits)))
561 print(" + {0}".format(r))
564 print(" Removed Dontaudit Rules: {0}".format(len(diff.removed_dontaudits)))
566 print(" - {0}".format(r))
569 print(" Modified Dontaudit Rules: {0}".format(len(diff.modified_dontaudits)))
576 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} {{ {1} }};".format(
580 rule_string += " [ {0} ]".format(rule.conditional)
583 print(" * {0}".format(rule_string))
590 print("Type_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
595 print(" Added Type_transition Rules: {0}".format(
598 print(" + {0}".format(r))
601 print(" Removed Type_transition Rules: {0}".format(
604 print(" - {0}".format(r))
607 print(" Modified Type_transition Rules: {0}".format(
612 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} +{1} -{2}".format(
616 rule_string += " {0}".format(rule.filename)
623 rule_string += " [ {0} ]".format(rule.conditional)
627 print(" * {0}".format(rule_string))
634 print("Type_change Rules ({0} Added, {1} Removed, {2} Modified)".format(
639 print(" Added Type_change Rules: {0}".format(len(diff.added_type_changes)))
641 print(" + {0}".format(r))
644 print(" Removed Type_change Rules: {0}".format(len(diff.removed_type_changes)))
646 print(" - {0}".format(r))
649 print(" Modified Type_change Rules: {0}".format(len(diff.modified_type_changes)))
653 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} +{1} -{2}".format(
657 rule_string += " {0}".format(rule.filename)
664 rule_string += " [ {0} ]".format(rule.conditional)
668 print(" * {0}".format(rule_string))
675 print("Type_member Rules ({0} Added, {1} Removed, {2} Modified)".format(
680 print(" Added Type_member Rules: {0}".format(len(diff.added_type_members)))
682 print(" + {0}".format(r))
685 print(" Removed Type_member Rules: {0}".format(len(diff.removed_type_members)))
687 print(" - {0}".format(r))
690 print(" Modified Type_member Rules: {0}".format(len(diff.modified_type_members)))
694 rule_string = "{0.ruletype} {0.source} {0.target}:{0.tclass} +{1} -{2}".format(
698 rule_string += " {0}".format(rule.filename)
705 rule_string += " [ {0} ]".format(rule.conditional)
709 print(" * {0}".format(rule_string))
715 print("Role allow Rules ({0} Added, {1} Removed)".format(
719 print(" Added Role allow Rules: {0}".format(
722 print(" + {0}".format(r))
725 print(" Removed Role allow Rules: {0}".format(
728 print(" - {0}".format(r))
735 print("Role_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
740 print(" Added Role_transition Rules: {0}".format(
743 print(" + {0}".format(r))
746 print(" Removed Role_transition Rules: {0}".format(
749 print(" - {0}".format(r))
752 print(" Modified Role_transition Rules: {0}".format(
758 "{0.ruletype} {0.source} {0.target}:{0.tclass} +{1} -{2}".format(
761 print(" * {0}".format(rule_string))
768 print("Range_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
773 print(" Added Range_transition Rules: {0}".format(
776 print(" + {0}".format(r))
779 print(" Removed Range_transition Rules: {0}".format(
782 print(" - {0}".format(r))
785 print(" Modified Range_transition Rules: {0}".format(
793 "{0.ruletype} {0.source} {0.target}:{0.tclass} +[{1}] -[{2}]".format(
796 print(" * {0}".format(rule_string))
803 print("Initial SIDs ({0} Added, {1} Removed, {2} Modified)".format(
807 print(" Added Initial SIDs: {0}".format(len(diff.added_initialsids)))
809 print(" + {0}".format(s.statement()))
811 print(" Removed Initial SIDs: {0}".format(len(diff.removed_initialsids)))
813 print(" - {0}".format(s.statement()))
815 print(" Modified Initial SIDs: {0}".format(len(diff.modified_initialsids)))
817 print(" * {0} +[{1.added_context}] -[{1.removed_context}];".format(
825 print("Fs_use ({0} Added, {1} Removed, {2} Modified)".format(
829 print(" Added Fs_use: {0}".format(len(diff.added_fs_uses)))
831 print(" + {0}".format(s))
833 print(" Removed Fs_use: {0}".format(len(diff.removed_fs_uses)))
835 print(" - {0}".format(s))
837 print(" Modified Fs_use: {0}".format(len(diff.modified_fs_uses)))
839 print(" * {0.ruletype} {0.fs} +[{1}] -[{2}];".format(
847 print("Genfscons ({0} Added, {1} Removed, {2} Modified)".format(
851 print(" Added Genfscons: {0}".format(len(diff.added_genfscons)))
853 print(" + {0}".format(s))
855 print(" Removed Genfscons: {0}".format(len(diff.removed_genfscons)))
857 print(" - {0}".format(s))
859 print(" Modified Genfscons: {0}".format(len(diff.modified_genfscons)))
861 print(" * genfscon {0.fs} {0.path} {0.filetype} +[{1}] -[{2}];".format(
869 print("Netifcons ({0} Added, {1} Removed, {2} Modified)".format(
873 print(" Added Netifcons: {0}".format(len(diff.added_netifcons)))
875 print(" + {0}".format(n))
877 print(" Removed Netifcons: {0}".format(len(diff.removed_netifcons)))
879 print(" - {0}".format(n))
881 print(" Modified Netifcons: {0}".format(len(diff.modified_netifcons)))
893 print(" * {0.netif} ({1})".format(entry.rule, ", ".join(change)))
897 print(" + {0}".format(entry.added_context))
898 print(" - {0}".format(entry.removed_context))
901 print(" + {0}".format(entry.added_packet))
902 print(" - {0}".format(entry.removed_packet))
909 print("Nodecons ({0} Added, {1} Removed, {2} Modified)".format(
913 format(len(diff.added_nodecons)))
915 print(" + {0}".format(n))
917 print(" Removed Nodecons: {0}".format(len(diff.removed_nodecons)))
919 print(" - {0}".format(n))
921 print(" Modified Nodecons: {0}".format(len(diff.modified_nodecons)))
924 print(" * nodecon {0.address} {0.netmask} +[{1}] -[{2}];".format(
932 print("Portcons ({0} Added, {1} Removed, {2} Modified)".format(
936 print(" Added Portcons: {0}".format(len(diff.added_portcons)))
938 print(" + {0}".format(n))
940 print(" Removed Portcons: {0}".format(len(diff.removed_portcons)))
942 print(" - {0}".format(n))
944 print(" Modified Portcons: {0}".format(len(diff.modified_portcons)))
949 print(" * portcon {0.protocol} {1} +[{2}] -[{3}];".format(
952 print(" * portcon {0.protocol} {1}-{2} +[{3}] -[{4}];".format(
959 print("Policy Capabilities ({0} Added, {1} Removed)".format(
962 print(" Added Policy Capabilities: {0}".format(len(diff.added_polcaps)))
964 print(" + {0}".format(n))
966 print(" Removed Policy Capabilities: {0}".format(len(diff.removed_polcaps)))
968 print(" - {0}".format(n))
974 print("Defaults ({0} Added, {1} Removed, {2} Modified)".format(
977 print(" Added Defaults: {0}".format(len(diff.added_defaults)))
979 print(" + {0}".format(d))
981 print(" Removed Defaults: {0}".format(len(diff.removed_defaults)))
983 print(" - {0}".format(d))
985 print(" Modified Defaults: {0}".format(len(diff.modified_defaults)))
988 line = " * {0.ruletype} {0.tclass} ".format(default)
990 line += "+{0} -{1}".format(added_default, removed_default)
995 line += " +{0} -{1};".format(added_range, removed_range)
998 line += " {0};".format(default.default_range)