[apparmor] [patch] Add --no-reload option to aa-autodep
Christian Boltz
apparmor at cboltz.de
Mon Jul 13 23:04:24 UTC 2015
Hello,
this patch adds the --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'
[ 75-autodep-add-no-reload.diff ]
--- utils/aa-autodep 2015-06-25 21:32:37.394832859 +0200
+++ ./utils/aa-autodep 2015-07-14 00:58:42.094254178 +0200
@@ -28,6 +28,7 @@
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)
Regards,
Christian Boltz
--
<tyhicks> bah, shouldn't have said that "I was done"
[from #apparmor]
More information about the AppArmor
mailing list