2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00
Files
apparmor/Tools/aa-cleanprof

15 lines
508 B
Plaintext
Raw Normal View History

#!/usr/bin/python
import argparse
2013-08-31 04:13:05 +05:30
import apparmor.tools
parser = argparse.ArgumentParser(description=_('Cleanup the profiles for the given programs'))
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('-s', '--silent', action='store_true', help=_('Silently over-write with a clean profile'))
args = parser.parse_args()
2013-08-31 04:13:05 +05:30
clean = apparmor.tools.aa_tools('cleanprof', args)
clean.act()