2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-23 02:27:12 +00:00
apparmor/Tools/aa-disable

17 lines
500 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()