diff --git a/utils/aa-disable.pod b/utils/aa-disable.pod index ae47c2d9d..f36d7ad05 100644 --- a/utils/aa-disable.pod +++ b/utils/aa-disable.pod @@ -43,8 +43,6 @@ profile from being loaded on AppArmor startup. The I and I utilities may be used to to change this behavior. -The I<--revert> option can be used to enable the profile. - =head1 BUGS If you find any bugs, please report them at diff --git a/utils/aa-enforce b/utils/aa-enforce index a540d9b5b..e5195b705 100755 --- a/utils/aa-enforce +++ b/utils/aa-enforce @@ -22,11 +22,12 @@ _ = init_translation() parser = argparse.ArgumentParser(description=_('Switch the given program to enforce mode')) parser.add_argument('-d', '--dir', type=str, help=_('path to profiles')) -parser.add_argument('-r', '--remove', action='store_true', help=_('switch to complain mode')) parser.add_argument('program', type=str, nargs='+', help=_('name of program')) args = parser.parse_args() -# Flipping the remove flag since complain = !enforce -args.remove = not args.remove +# Set the remove flag since complain = !enforce +# XXX remove this entirely once conversion to individual cmd methods +# on the Tool class are implemented +args.remove = True enforce = apparmor.tools.aa_tools('complain', args) diff --git a/utils/aa-enforce.pod b/utils/aa-enforce.pod index 53aef579b..fdd12a81d 100644 --- a/utils/aa-enforce.pod +++ b/utils/aa-enforce.pod @@ -36,10 +36,6 @@ B<-d --dir / path/to/profiles> Specifies where to look for the AppArmor security profile set. Defaults to /etc/apparmor.d. -B<-r --remove> - - Removes the enforce mode for the profile. - =head1 DESCRIPTION B is used to set one or more profiles to I mode. @@ -49,9 +45,6 @@ unloads and disables a profile. The default mode for a security policy is enforce and the I utility must be run to change this behavior. -The I<--remove> option can be used to remove the enforce mode for the profile, -setting it to complain mode. - =head1 BUGS If you find any bugs, please report them at diff --git a/utils/test/minitools_test.py b/utils/test/minitools_test.py index 3e1d3fb5f..1855eec1a 100755 --- a/utils/test/minitools_test.py +++ b/utils/test/minitools_test.py @@ -77,11 +77,6 @@ class Test(unittest.TestCase): def test_enforce(self): #Set ntpd profile to complain mode and check if it was correctly set - subprocess.check_output('%s ./../aa-enforce -d ./profiles -r %s'%(python_interpreter, test_path), shell=True) - - self.assertEqual(os.path.islink('./profiles/force-complain/%s'%os.path.basename(local_profilename)), True, 'Failed to create a symlink for %s in force-complain'%local_profilename) - self.assertEqual(apparmor.get_profile_flags(local_profilename, test_path), 'complain', 'Complain flag could not be set in profile %s'%local_profilename) - #Set ntpd profile to enforce mode and check if it was correctly set subprocess.check_output('%s ./../aa-enforce -d ./profiles %s'%(python_interpreter, test_path), shell=True)