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:
parent
af1c9091e3
commit
376d4def37
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue