2
# ----------------------------------------------------------------------
3
# Copyright (C) 2013 Kshitij Gupta <kgupta8592@gmail.com>
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of version 2 of the GNU General Public
7
# License as published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# ----------------------------------------------------------------------
19
# setup module translations
20
from apparmor.translations import init_translation
21
_ = init_translation()
23
parser = argparse.ArgumentParser(description=_('Cleanup the profiles for the given programs'))
24
parser.add_argument('-d', '--dir', type=str, help=_('path to profiles'))
25
parser.add_argument('program', type=str, nargs='+', help=_('name of program'))
26
parser.add_argument('-s', '--silent', action='store_true', help=_('Silently overwrite with a clean profile'))
27
args = parser.parse_args()
29
clean = apparmor.tools.aa_tools('cleanprof', args)