policycoreutils: semanage: allow enable/disable under -m

Fix --enable and --disable for modules to only work under -m options.
Without this patch you couldn't do -m and --enable.  We want that to
work.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2012-03-29 12:39:50 -04:00 committed by Eric Paris
parent af1c9091e3
commit 376d4def37
1 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#! /usr/bin/python -Es
# Copyright (C) 2005, 2006, 2007 Red Hat
# Copyright (C) 2005-2012 Red Hat
# see file 'COPYING' for use and warranty information
#
# semanage is a tool for managing SELinux configuration files
@ -282,11 +282,9 @@ Object-specific Options (see above):
equal = a
if o == "--enable":
set_action(o)
enable = True
if o == "--disable":
set_action(o)
disable = True
if o == "-F" or o == "--file":