* Fri Sep 12 2008 Dan Walsh <dwalsh@redhat.com> 2.0.55-9
- Fix semanage help display
This commit is contained in:
parent
8bd2afcec2
commit
77ffddfa2c
@ -92,7 +92,7 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.13 --exclude=gui --exclude=po
|
||||
}
|
||||
diff --exclude-from=exclude --exclude=sepolgen-1.0.13 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/semanage/semanage policycoreutils-2.0.55/semanage/semanage
|
||||
--- nsapolicycoreutils/semanage/semanage 2008-08-28 09:34:24.000000000 -0400
|
||||
+++ policycoreutils-2.0.55/semanage/semanage 2008-09-08 14:46:57.000000000 -0400
|
||||
+++ policycoreutils-2.0.55/semanage/semanage 2008-09-12 11:43:28.000000000 -0400
|
||||
@@ -20,7 +20,7 @@
|
||||
# 02111-1307 USA
|
||||
#
|
||||
@ -107,7 +107,7 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.13 --exclude=gui --exclude=po
|
||||
|
||||
def usage(message = ""):
|
||||
- print _("""
|
||||
+ raise ValueError(_("""
|
||||
+ text = _("""
|
||||
+semanage [ -S store ] -i [ input_file | - ]
|
||||
+
|
||||
semanage {boolean|login|user|port|interface|node|fcontext|translation} -{l|D} [-n]
|
||||
@ -121,15 +121,16 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.13 --exclude=gui --exclude=po
|
||||
-l, --list List the OBJECTS
|
||||
-C, --locallist List OBJECTS local customizations
|
||||
-D, --deleteall Remove all OBJECTS local customizations
|
||||
@@ -91,9 +94,8 @@
|
||||
@@ -90,10 +93,9 @@
|
||||
|
||||
-s, --seuser SELinux User Name
|
||||
-t, --type SELinux Type for the object
|
||||
-r, --range MLS/MCS Security Range (MLS/MCS Systems only)
|
||||
-""")
|
||||
- -r, --range MLS/MCS Security Range (MLS/MCS Systems only)
|
||||
+ -r, --range MLS/MCS Security Range (MLS/MCS Systems only
|
||||
""")
|
||||
- print message
|
||||
- sys.exit(1)
|
||||
+%s
|
||||
+""") % message)
|
||||
+ raise ValueError("%s\n%s" % (text, message))
|
||||
|
||||
def errorExit(error):
|
||||
sys.stderr.write("%s: " % sys.argv[0])
|
||||
@ -204,7 +205,8 @@ diff --exclude-from=exclude --exclude=sepolgen-1.0.13 --exclude=gui --exclude=po
|
||||
+ object = argv[0]
|
||||
option_dict=get_options()
|
||||
if object not in option_dict.keys():
|
||||
usage(_("%s not defined") % object)
|
||||
- usage(_("%s not defined") % object)
|
||||
+ usage(_("Invalid parameter %s not defined") % object)
|
||||
|
||||
- args = sys.argv[2:]
|
||||
+ args = argv[1:]
|
||||
|
@ -6,7 +6,7 @@
|
||||
Summary: SELinux policy core utilities
|
||||
Name: policycoreutils
|
||||
Version: 2.0.55
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Base
|
||||
Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
|
||||
@ -192,6 +192,9 @@ if [ "$1" -ge "1" ]; then
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Fri Sep 12 2008 Dan Walsh <dwalsh@redhat.com> 2.0.55-9
|
||||
- Fix semanage help display
|
||||
|
||||
* Thu Sep 11 2008 Dan Walsh <dwalsh@redhat.com> 2.0.55-8
|
||||
- Only call gen_requires once in sepolgen
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user