2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00
Files
apparmor/Tools/aa-complain

16 lines
503 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=_('Switch the given program to complain mode'))
parser.add_argument('-d', '--dir', type=str, help=_('path to profiles'))
parser.add_argument('-r', '--remove', action='store_true', help=_('remove complain mode'))
parser.add_argument('program', type=str, nargs='+', help=_('name of program'))
args = parser.parse_args()
2013-08-31 04:13:05 +05:30
complain = apparmor.tools.aa_tools('complain', args)
print(args)
complain.act()