2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00
apparmor/Tools/aa-disable

17 lines
512 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=_('Disable the profile for the given programs'))
parser.add_argument('-d', '--dir', type=str, help=_('path to profiles'))
parser.add_argument('-r', '--revert', action='store_true', help=_('enable the profile for the given programs'))
parser.add_argument('program', type=str, nargs='+', help=_('name of program'))
args = parser.parse_args()
2013-08-31 04:13:05 +05:30
disable = apparmor.tools.aa_tools('disable', args)
disable.act()