mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Add --no-reload option to aa-autodep
Besides adding this feature, this also fixes a crash in tools.py __init__(): AttributeError: 'Namespace' object has no attribute 'do_reload' Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
parent
5d5da52a03
commit
b30e85ade2
@ -28,6 +28,7 @@ parser = argparse.ArgumentParser(description=_('Generate a basic AppArmor profil
|
||||
parser.add_argument('--force', action='store_true', default=False, help=_('overwrite existing profile'))
|
||||
parser.add_argument('-d', '--dir', type=str, help=_('path to profiles'))
|
||||
parser.add_argument('program', type=str, nargs='+', help=_('name of program'))
|
||||
parser.add_argument('--no-reload', dest='do_reload', action='store_false', default=True, help=_('Do not reload the profile after modifying it'))
|
||||
args = parser.parse_args()
|
||||
|
||||
tool = apparmor.tools.aa_tools('autodep', args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user