mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
utils: remove aa-disable non-functional '-r' option
This patch removes the non-funcional -r option for aa-disable, as well as the test and manpage documentation for it. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
4f8dea0db8
commit
3575ca4ac9
4 changed files with 0 additions and 12 deletions
|
@ -22,7 +22,6 @@ _ = init_translation()
|
|||
|
||||
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()
|
||||
|
||||
|
|
|
@ -35,10 +35,6 @@ B<-d --dir /path/to/profiles>
|
|||
Specifies where to look for the AppArmor security profile set.
|
||||
Defaults to /etc/apparmor.d.
|
||||
|
||||
B<-r --revert>
|
||||
|
||||
Enables the profile and loads it.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
B<aa-disable> is used to I<disable> one or more profiles.
|
||||
|
|
|
@ -33,7 +33,6 @@ class aa_tools:
|
|||
if tool_name in ['audit', 'complain']:
|
||||
self.remove = args.remove
|
||||
elif tool_name == 'disable':
|
||||
self.revert = args.revert
|
||||
self.disabledir = apparmor.profile_dir + '/disable'
|
||||
self.check_disable_dir()
|
||||
elif tool_name == 'autodep':
|
||||
|
|
|
@ -97,12 +97,6 @@ class Test(unittest.TestCase):
|
|||
|
||||
self.assertEqual(os.path.islink('./profiles/disable/%s'%os.path.basename(local_profilename)), True, 'Failed to create a symlink for %s in disable'%local_profilename)
|
||||
|
||||
#Enable the ntpd profile and check if it was correctly re-enabled
|
||||
subprocess.check_output('%s ./../aa-disable -d ./profiles -r %s'%(python_interpreter, test_path), shell=True)
|
||||
|
||||
self.assertEqual(os.path.islink('./profiles/disable/%s'%os.path.basename(local_profilename)), False, 'Failed to remove a symlink for %s from disable'%local_profilename)
|
||||
|
||||
|
||||
def test_autodep(self):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue