Lines Matching full:print
35 help="Print extra informational messages")
39 comp.add_argument("--common", action="store_true", help="Print common differences")
40 comp.add_argument("-c", "--class", action="store_true", help="Print class differences",
42 comp.add_argument("-t", "--type", action="store_true", help="Print type differences",
44 comp.add_argument("-a", "--attribute", action="store_true", help="Print type attribute differences")
45 comp.add_argument("-r", "--role", action="store_true", help="Print role differences")
46 comp.add_argument("-u", "--user", action="store_true", help="Print user differences")
47 comp.add_argument("-b", "--bool", action="store_true", help="Print Boolean differences",
49 comp.add_argument("--sensitivity", action="store_true", help="Print MLS sensitivity differences")
50 comp.add_argument("--category", action="store_true", help="Print MLS category differences")
51 comp.add_argument("--level", action="store_true", help="Print MLS level definition differences")
54 terule.add_argument("-A", action="store_true", help="Print allow and allowxperm rule differences")
55 terule.add_argument("--allow", action="store_true", help="Print allow rule differences")
56 terule.add_argument("--neverallow", action="store_true", help="Print neverallow rule differences")
57 terule.add_argument("--auditallow", action="store_true", help="Print auditallow rule differences")
58 terule.add_argument("--dontaudit", action="store_true", help="Print dontaudit rule differences")
59 terule.add_argument("--allowxperm", action="store_true", help="Print allowxperm rule differences")
61 help="Print neverallowxperm rule differences")
63 help="Print auditallowxperm rule differences")
65 help="Print dontauditxperm rule differences")
67 help="Print type_transition rule differences")
68 terule.add_argument("--type_change", action="store_true", help="Print type_change rule differences")
70 help="Print type_member rule differences")
73 rbacrule.add_argument("--role_allow", action="store_true", help="Print role allow rule differences")
75 help="Print role_transition rule differences")
79 help="Print range_transition rule differences")
82 constrain.add_argument("--constrain", action="store_true", help="Print constrain differences")
83 constrain.add_argument("--mlsconstrain", action="store_true", help="Print mlsconstrain differences")
85 help="Print validatetrans differences")
87 help="Print mlsvalidatetrans differences")
90 labeling.add_argument("--initialsid", action="store_true", help="Print initial SID differences")
91 labeling.add_argument("--fs_use", action="store_true", help="Print fs_use_* differences")
92 labeling.add_argument("--genfscon", action="store_true", help="Print genfscon differences")
93 labeling.add_argument("--netifcon", action="store_true", help="Print netifcon differences")
94 labeling.add_argument("--nodecon", action="store_true", help="Print nodecon differences")
95 labeling.add_argument("--portcon", action="store_true", help="Print portcon differences")
98 other.add_argument("--default", action="store_true", help="Print default_* differences")
100 help="Print policy property differences (handle_unknown, version, MLS)")
101 other.add_argument("--polcap", action="store_true", help="Print policy capability differences")
102 other.add_argument("--typebounds", action="store_true", help="Print typebounds differences")
135 print("Policy Properties ({0} Modified)".format(len(diff.modified_properties)))
139 print(" * {0} +{1} -{2}".format(name, added, removed))
141 print()
145 print("Commons ({0} Added, {1} Removed, {2} Modified)".format(
148 print(" Added Commons: {0}".format(len(diff.added_commons)))
150 print(" + {0}".format(c))
152 print(" Removed Commons: {0}".format(len(diff.removed_commons)))
154 print(" - {0}".format(c))
156 print(" Modified Commons: {0}".format(len(diff.modified_commons)))
164 print(" * {0} ({1})".format(name, ", ".join(change)))
166 print(" + {0}".format(p))
168 print(" - {0}".format(p))
169 print()
173 print("Classes ({0} Added, {1} Removed, {2} Modified)".format(
176 print(" Added Classes: {0}".format(len(diff.added_classes)))
178 print(" + {0}".format(c))
180 print(" Removed Classes: {0}".format(len(diff.removed_classes)))
182 print(" - {0}".format(c))
184 print(" Modified Classes: {0}".format(len(diff.modified_classes)))
192 print(" * {0} ({1})".format(name, ", ".join(change)))
194 print(" + {0}".format(p))
196 print(" - {0}".format(p))
197 print()
202 print("Booleans ({0} Added, {1} Removed, {2} Modified)".format(
206 print(" Added Booleans: {0}".format(len(diff.added_booleans)))
208 print(" + {0}".format(a))
210 print(" Removed Booleans: {0}".format(len(diff.removed_booleans)))
212 print(" - {0}".format(a))
214 print(" Modified Booleans: {0}".format(len(diff.modified_booleans)))
216 print(" * {0} (Modified default state)".format(name))
217 print(" + {0}".format(mod.added_state))
218 print(" - {0}".format(mod.removed_state))
220 print()
224 print("Roles ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_roles),
228 print(" Added Roles: {0}".format(len(diff.added_roles)))
230 print(" + {0}".format(r))
232 print(" Removed Roles: {0}".format(len(diff.removed_roles)))
234 print(" - {0}".format(r))
236 print(" Modified Roles: {0}".format(len(diff.modified_roles)))
244 print(" * {0} ({1})".format(name, ", ".join(change)))
246 print(" + {0}".format(t))
248 print(" - {0}".format(t))
249 print()
253 print("Types ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_types),
257 print(" Added Types: {0}".format(len(diff.added_types)))
259 print(" + {0}".format(r))
261 print(" Removed Types: {0}".format(len(diff.removed_types)))
263 print(" - {0}".format(r))
265 print(" Modified Types: {0}".format(len(diff.modified_types)))
282 print(" * {0} ({1})".format(name, ", ".join(change)))
284 print(" Attributes:")
286 print(" + {0}".format(t))
288 print(" - {0}".format(t))
291 print(" Aliases:")
293 print(" + {0}".format(t))
295 print(" - {0}".format(t))
297 print()
302 print("Type Attributes ({0} Added, {1} Removed, {2} Modified)".format(
306 print(" Added Type Attributes: {0}".format(len(diff.added_type_attributes)))
308 print(" + {0}".format(a))
310 print(" Removed Type Attributes: {0}".format(len(diff.removed_type_attributes)))
312 print(" - {0}".format(a))
314 print(" Modified Type Attributes: {0}".format(len(diff.modified_type_attributes)))
322 print(" * {0} ({1})".format(name, ", ".join(change)))
324 print(" + {0}".format(t))
326 print(" - {0}".format(t))
327 print()
331 print("Users ({0} Added, {1} Removed, {2} Modified)".format(len(diff.added_users),
335 print(" Added Users: {0}".format(len(diff.added_users)))
337 print(" + {0}".format(u))
339 print(" Removed Users: {0}".format(len(diff.removed_users)))
341 print(" - {0}".format(u))
343 print(" Modified Users: {0}".format(len(diff.modified_users)))
355 print(" * {0} ({1})".format(name, ", ".join(change)))
357 print(" Roles:")
359 print(" + {0}".format(t))
361 print(" - {0}".format(t))
364 print(" Default level:")
365 print(" + {0}".format(mod.added_level))
366 print(" - {0}".format(mod.removed_level))
369 print(" Range:")
370 print(" + {0}".format(mod.added_range))
371 print(" - {0}".format(mod.removed_range))
372 print()
377 print("Categories ({0} Added, {1} Removed, {2} Modified)".format(
381 print(" Added Categories: {0}".format(len(diff.added_categories)))
383 print(" + {0}".format(c))
385 print(" Removed Categories: {0}".format(len(diff.removed_categories)))
387 print(" - {0}".format(c))
389 print(" Modified Categories: {0}".format(len(diff.modified_categories)))
397 print(" * {0} ({1})".format(name, ", ".join(change)))
398 print(" Aliases:")
400 print(" + {0}".format(a))
402 print(" - {0}".format(a))
404 print()
409 print("Sensitivities ({0} Added, {1} Removed, {2} Modified)".format(
413 print(" Added Sensitivites: {0}".format(len(diff.added_sensitivities)))
415 print(" + {0}".format(s))
417 print(" Removed Sensitivities: {0}".format(len(diff.removed_sensitivities)))
419 print(" - {0}".format(s))
421 print(" Modified Sensitivities: {0}".format(len(diff.modified_sensitivities)))
429 print(" * {0} ({1})".format(name, ", ".join(change)))
430 print(" Aliases:")
432 print(" + {0}".format(a))
434 print(" - {0}".format(a))
436 print()
441 print("Levels ({0} Added, {1} Removed, {2} Modified)".format(
445 print(" Added Levels: {0}".format(len(diff.added_levels)))
447 print(" + {0}".format(l))
449 print(" Removed Levels: {0}".format(len(diff.removed_levels)))
451 print(" - {0}".format(l))
453 print(" Modified Levels: {0}".format(len(diff.modified_levels)))
462 print(" * {0} ({1})".format(level.sensitivity, ", ".join(change)))
464 print(" + {0}".format(c))
466 print(" - {0}".format(c))
467 print()
471 print("Allow Rules ({0} Added, {1} Removed, {2} Modified)".format(
475 print(" Added Allow Rules: {0}".format(len(diff.added_allows)))
477 print(" + {0}".format(r))
480 print(" Removed Allow Rules: {0}".format(len(diff.removed_allows)))
482 print(" - {0}".format(r))
485 print(" Modified Allow Rules: {0}".format(len(diff.modified_allows)))
499 print(" * {0}".format(rule_string))
501 print()
507 print("Allowxperm Rules ({0} Added, {1} Removed, {2} Modified)".format(
512 print(" Added Allowxperm Rules: {0}".format(len(diff.added_allowxperms)))
514 print(" + {0}".format(r))
517 print(" Removed Allowxperm Rules: {0}".format(len(diff.removed_allowxperms)))
519 print(" - {0}".format(r))
522 print(" Modified Allowxperm Rules: {0}".format(len(diff.modified_allowxperms)))
554 print(" * {0.ruletype} {0.source} {0.target}:{0.tclass} {0.xperm_type} "
557 print()
562 print("Neverallow Rules ({0} Added, {1} Removed, {2} Modified)".format(
567 print(" Added Neverallow Rules: {0}".format(len(diff.added_neverallows)))
569 print(" + {0}".format(r))
572 print(" Removed Neverallow Rules: {0}".format(len(diff.removed_neverallows)))
574 print(" - {0}".format(r))
577 print(" Modified Neverallow Rules: {0}".format(len(diff.modified_neverallows)))
591 print(" * {0}".format(rule_string))
593 print()
599 print("Neverallowxperm Rules ({0} Added, {1} Removed, {2} Modified)".format(
604 print(" Added Neverallowxperm Rules: {0}".format(
607 print(" + {0}".format(r))
610 print(" Removed Neverallowxperm Rules: {0}".format(
613 print(" - {0}".format(r))
616 print(" Modified Neverallowxperm Rules: {0}".format(
649 print(" * {0.ruletype} {0.source} {0.target}:{0.tclass} {0.xperm_type} "
652 print()
657 print("Auditallow Rules ({0} Added, {1} Removed, {2} Modified)".format(
662 print(" Added Auditallow Rules: {0}".format(len(diff.added_auditallows)))
664 print(" + {0}".format(r))
667 print(" Removed Auditallow Rules: {0}".format(len(diff.removed_auditallows)))
669 print(" - {0}".format(r))
672 print(" Modified Auditallow Rules: {0}".format(len(diff.modified_auditallows)))
686 print(" * {0}".format(rule_string))
688 print()
694 print("Auditallowxperm Rules ({0} Added, {1} Removed, {2} Modified)".format(
699 print(" Added Auditallowxperm Rules: {0}".format(
702 print(" + {0}".format(r))
705 print(" Removed Auditallowxperm Rules: {0}".format(
708 print(" - {0}".format(r))
711 print(" Modified Auditallowxperm Rules: {0}".format(
744 print(" * {0.ruletype} {0.source} {0.target}:{0.tclass} {0.xperm_type} "
747 print()
752 print("Dontaudit Rules ({0} Added, {1} Removed, {2} Modified)".format(
757 print(" Added Dontaudit Rules: {0}".format(len(diff.added_dontaudits)))
759 print(" + {0}".format(r))
762 print(" Removed Dontaudit Rules: {0}".format(len(diff.removed_dontaudits)))
764 print(" - {0}".format(r))
767 print(" Modified Dontaudit Rules: {0}".format(len(diff.modified_dontaudits)))
781 print(" * {0}".format(rule_string))
783 print()
789 print("Dontauditxperm Rules ({0} Added, {1} Removed, {2} Modified)".format(
794 print(" Added Dontauditxperm Rules: {0}".format(
797 print(" + {0}".format(r))
800 print(" Removed Dontauditxperm Rules: {0}".format(
803 print(" - {0}".format(r))
806 print(" Modified Dontauditxperm Rules: {0}".format(
839 print(" * {0.ruletype} {0.source} {0.target}:{0.tclass} {0.xperm_type} "
842 print()
847 print("Type_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
852 print(" Added Type_transition Rules: {0}".format(
855 print(" + {0}".format(r))
858 print(" Removed Type_transition Rules: {0}".format(
861 print(" - {0}".format(r))
864 print(" Modified Type_transition Rules: {0}".format(
884 print(" * {0}".format(rule_string))
886 print()
891 print("Type_change Rules ({0} Added, {1} Removed, {2} Modified)".format(
896 print(" Added Type_change Rules: {0}".format(len(diff.added_type_changes)))
898 print(" + {0}".format(r))
901 print(" Removed Type_change Rules: {0}".format(len(diff.removed_type_changes)))
903 print(" - {0}".format(r))
906 print(" Modified Type_change Rules: {0}".format(len(diff.modified_type_changes)))
925 print(" * {0}".format(rule_string))
927 print()
932 print("Type_member Rules ({0} Added, {1} Removed, {2} Modified)".format(
937 print(" Added Type_member Rules: {0}".format(len(diff.added_type_members)))
939 print(" + {0}".format(r))
942 print(" Removed Type_member Rules: {0}".format(len(diff.removed_type_members)))
944 print(" - {0}".format(r))
947 print(" Modified Type_member Rules: {0}".format(len(diff.modified_type_members)))
966 print(" * {0}".format(rule_string))
968 print()
972 print("Role allow Rules ({0} Added, {1} Removed)".format(
976 print(" Added Role Allow Rules: {0}".format(
979 print(" + {0}".format(r))
982 print(" Removed Role Allow Rules: {0}".format(
985 print(" - {0}".format(r))
987 print()
992 print("Role_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
997 print(" Added Role_transition Rules: {0}".format(
1000 print(" + {0}".format(r))
1003 print(" Removed Role_transition Rules: {0}".format(
1006 print(" - {0}".format(r))
1009 print(" Modified Role_transition Rules: {0}".format(
1018 print(" * {0}".format(rule_string))
1020 print()
1025 print("Range_transition Rules ({0} Added, {1} Removed, {2} Modified)".format(
1030 print(" Added Range_transition Rules: {0}".format(
1033 print(" + {0}".format(r))
1036 print(" Removed Range_transition Rules: {0}".format(
1039 print(" - {0}".format(r))
1042 print(" Modified Range_transition Rules: {0}".format(
1053 print(" * {0}".format(rule_string))
1055 print()
1059 print("Constraints ({0} Added, {1} Removed)".format(
1063 print(" Added Constraints: {0}".format(
1066 print(" + {0}".format(r))
1069 print(" Removed Constraints: {0}".format(
1072 print(" - {0}".format(r))
1074 print()
1078 print("MLS Constraints ({0} Added, {1} Removed)".format(
1082 print(" Added MLS Constraints: {0}".format(
1085 print(" + {0}".format(r))
1088 print(" Removed MLS Constraints: {0}".format(
1091 print(" - {0}".format(r))
1093 print()
1097 print("Validatetrans ({0} Added, {1} Removed)".format(
1101 print(" Added Validatetrans: {0}".format(
1104 print(" + {0}".format(r))
1107 print(" Removed Validatetrans: {0}".format(
1110 print(" - {0}".format(r))
1112 print()
1116 print("MLS Validatetrans ({0} Added, {1} Removed)".format(
1120 print(" Added MLS Validatetrans: {0}".format(
1123 print(" + {0}".format(r))
1126 print(" Removed MLS Validatetrans: {0}".format(
1129 print(" - {0}".format(r))
1131 print()
1136 print("Initial SIDs ({0} Added, {1} Removed, {2} Modified)".format(
1140 print(" Added Initial SIDs: {0}".format(len(diff.added_initialsids)))
1142 print(" + {0}".format(s.statement()))
1144 print(" Removed Initial SIDs: {0}".format(len(diff.removed_initialsids)))
1146 print(" - {0}".format(s.statement()))
1148 print(" Modified Initial SIDs: {0}".format(len(diff.modified_initialsids)))
1150 print(" * {0} +[{1.added_context}] -[{1.removed_context}];".format(
1153 print()
1158 print("Fs_use ({0} Added, {1} Removed, {2} Modified)".format(
1162 print(" Added Fs_use: {0}".format(len(diff.added_fs_uses)))
1164 print(" + {0}".format(s))
1166 print(" Removed Fs_use: {0}".format(len(diff.removed_fs_uses)))
1168 print(" - {0}".format(s))
1170 print(" Modified Fs_use: {0}".format(len(diff.modified_fs_uses)))
1172 print(" * {0.ruletype} {0.fs} +[{1}] -[{2}];".format(
1175 print()
1180 print("Genfscons ({0} Added, {1} Removed, {2} Modified)".format(
1184 print(" Added Genfscons: {0}".format(len(diff.added_genfscons)))
1186 print(" + {0}".format(s))
1188 print(" Removed Genfscons: {0}".format(len(diff.removed_genfscons)))
1190 print(" - {0}".format(s))
1192 print(" Modified Genfscons: {0}".format(len(diff.modified_genfscons)))
1194 print(" * genfscon {0.fs} {0.path} {0.filetype} +[{1}] -[{2}];".format(
1197 print()
1202 print("Netifcons ({0} Added, {1} Removed, {2} Modified)".format(
1206 print(" Added Netifcons: {0}".format(len(diff.added_netifcons)))
1208 print(" + {0}".format(n))
1210 print(" Removed Netifcons: {0}".format(len(diff.removed_netifcons)))
1212 print(" - {0}".format(n))
1214 print(" Modified Netifcons: {0}".format(len(diff.modified_netifcons)))
1226 print(" * {0.netif} ({1})".format(entry.rule, ", ".join(change)))
1229 print(" Context:")
1230 print(" + {0}".format(entry.added_context))
1231 print(" - {0}".format(entry.removed_context))
1233 print(" Packet Context:")
1234 print(" + {0}".format(entry.added_packet))
1235 print(" - {0}".format(entry.removed_packet))
1237 print()
1242 print("Nodecons ({0} Added, {1} Removed, {2} Modified)".format(
1246 print(" Added Nodecons: {0}".format(len(diff.added_nodecons)))
1248 print(" + {0}".format(n))
1250 print(" Removed Nodecons: {0}".format(len(diff.removed_nodecons)))
1252 print(" - {0}".format(n))
1254 print(" Modified Nodecons: {0}".format(len(diff.modified_nodecons)))
1257 print(" * nodecon {0.address} {0.netmask} +[{1}] -[{2}];".format(
1260 print()
1265 print("Portcons ({0} Added, {1} Removed, {2} Modified)".format(
1269 print(" Added Portcons: {0}".format(len(diff.added_portcons)))
1271 print(" + {0}".format(n))
1273 print(" Removed Portcons: {0}".format(len(diff.removed_portcons)))
1275 print(" - {0}".format(n))
1277 print(" Modified Portcons: {0}".format(len(diff.modified_portcons)))
1282 print(" * portcon {0.protocol} {1} +[{2}] -[{3}];".format(
1285 print(" * portcon {0.protocol} {1}-{2} +[{3}] -[{4}];".format(
1288 print()
1292 print("Policy Capabilities ({0} Added, {1} Removed)".format(
1295 print(" Added Policy Capabilities: {0}".format(len(diff.added_polcaps)))
1297 print(" + {0}".format(n))
1299 print(" Removed Policy Capabilities: {0}".format(len(diff.removed_polcaps)))
1301 print(" - {0}".format(n))
1303 print()
1307 print("Defaults ({0} Added, {1} Removed, {2} Modified)".format(
1310 print(" Added Defaults: {0}".format(len(diff.added_defaults)))
1312 print(" + {0}".format(d))
1314 print(" Removed Defaults: {0}".format(len(diff.removed_defaults)))
1316 print(" - {0}".format(d))
1318 print(" Modified Defaults: {0}".format(len(diff.modified_defaults)))
1334 print(line)
1336 print()
1340 print("Typebounds ({0} Added, {1} Removed, {2} Modified)".format(
1344 print(" Added Typebounds: {0}".format(len(diff.added_typebounds)))
1346 print(" + {0}".format(d))
1348 print(" Removed Typebounds: {0}".format(len(diff.removed_typebounds)))
1350 print(" - {0}".format(d))
1352 print(" Modified Typebounds: {0}".format(len(diff.modified_typebounds)))
1355 print(" * {0.ruletype} +{1} -{2} {0.child};".format(
1358 print()
1364 print(err)