Home | History | Annotate | Download | only in semanage

Lines Matching refs:action

79 class CheckRole(argparse.Action):
103 class SetExportFile(argparse.Action):
116 class SetImportFile(argparse.Action):
159 # {action:[conflict_opts,require_opts]}
180 # {action:[conflict_opts,require_opts]}
183 handle_opts(args, login_args, args.action)
187 if args.action is "add":
189 if args.action is "modify":
191 if args.action is "delete":
193 if args.action is "list":
195 if args.action is "deleteall":
197 if args.action is "extract":
211 parser.add_argument('-n', '--noheading', action='store_false', default=True, help=_("Do not print heading when listing %s object types") % name)
215 parser.add_argument('-N', '--noreload', action='store_true', default=False, help=_('Do not reload policy after commit'))
219 parser.add_argument('-C', '--locallist', action='store_true', default=False, help=_("List %s local customizations") % name)
223 parser.add_argument('-a', '--add', dest='action', action='store_const', const='add', help=_("Add a record of the %s object type") % name)
261 parser.add_argument('-m', '--modify', dest='action', action='store_const', const='modify', help=_("Modify a record of the %s object type") % name)
265 parser.add_argument('-l', '--list', dest='action', action='store_const', const='list', help=_("List records of the %s object type") % name)
269 parser.add_argument('-d', '--delete', dest='action', action='store_const', const='delete', help=_("Delete a record of the %s object type") % name)
273 parser.add_argument('-E', '--extract', dest='action', action='store_const', const='extract', help=_("Extract customizable commands, for use within a transaction"))
277 parser.add_argument('-D', '--deleteall', dest='action', action='store_const', const='deleteall', help=_('Remove all %s objects local customizations') % name)
313 if args.action and args.equal:
316 handle_opts(args, fcontext_args, args.action)
320 if args.action is "add":
325 if args.action is "modify":
330 if args.action is "delete":
335 if args.action is "list":
337 if args.action is "deleteall":
339 if args.action is "extract":
384 handle_opts(args, user_args, args.action)
388 if args.action is "add":
390 if args.action is "modify":
392 if args.action is "delete":
394 if args.action is "list":
396 if args.action is "deleteall":
398 if args.action is "extract":
422 action=CheckRole,
434 handle_opts(args, port_args, args.action)
438 if args.action is "add":
440 if args.action is "modify":
442 if args.action is "delete":
444 if args.action is "list":
446 if args.action is "deleteall":
448 if args.action is "extract":
479 handle_opts(args, ibpkey_args, args.action)
483 if args.action is "add":
485 if args.action is "modify":
487 if args.action is "delete":
489 if args.action is "list":
491 if args.action is "deleteall":
493 if args.action is "extract":
522 handle_opts(args, ibendport_args, args.action)
526 if args.action is "add":
528 if args.action is "modify":
530 if args.action is "delete":
532 if args.action is "list":
534 if args.action is "deleteall":
536 if args.action is "extract":
565 handle_opts(args, interface_args, args.action)
569 if args.action is "add":
571 if args.action is "modify":
573 if args.action is "delete":
575 if args.action is "list":
577 if args.action is "deleteall":
579 if args.action is "extract":
607 if args.action == "add":
609 if args.action == "enable":
611 if args.action == "disable":
613 if args.action == "remove":
615 if args.action is "deleteall":
617 if args.action == "list":
619 if args.action is "extract":
637 mgroup.add_argument('-r', '--remove', dest='action', action='store_const', const='remove', help=_("Remove a module"))
638 mgroup.add_argument('-d', '--disable', dest='action', action='store_const', const='disable', help=_("Disable a module"))
639 mgroup.add_argument('-e', '--enable', dest='action', action='store_const', const='enable', help=_("Enable a module"))
646 handle_opts(args, node_args, args.action)
650 if args.action is "add":
652 if args.action is "modify":
654 if args.action is "delete":
656 if args.action is "list":
658 if args.action is "deleteall":
660 if args.action is "extract":
692 handle_opts(args, boolean_args, args.action)
696 if args.action is "modify":
699 if args.action is "list":
701 if args.action is "deleteall":
703 if args.action is "extract":
725 booleanGroup.add_argument('-1', '--on', dest='state', action='store_const', const='on', help=_('Enable the boolean'))
726 booleanGroup.add_argument('-0', '--off', dest='state', action='store_const', const='off', help=_('Disable the boolean'))
734 if args.action is "list":
737 if args.action is "add":
739 if args.action is "delete":
767 OBJECT.toggle(args.action)
774 dontauditParser.add_argument('action', choices=["on", "off"])
793 exportParser.add_argument('-f', '--output_file', dest='output_file', action=SetExportFile, help=_('Output file'))
874 importParser.add_argument('-f', '--input_file', dest='input_file', action=SetImportFile, help=_('Input file'))