Blame SOURCES/checkpolicy-rhat.patch

9b478f
diff --git a/checkpolicy/checkmodule.8 b/checkpolicy/checkmodule.8
9b478f
index 40f73c5..2a7ab5c 100644
9b478f
--- a/checkpolicy/checkmodule.8
9b478f
+++ b/checkpolicy/checkmodule.8
9b478f
@@ -3,7 +3,7 @@
9b478f
 checkmodule \- SELinux policy module compiler
9b478f
 .SH SYNOPSIS
9b478f
 .B checkmodule
9b478f
-.I "[-h] [-b] [-m] [-M] [-U handle_unknown ] [-V] [-o output_file] [input_file]"
9b478f
+.I "[\-h] [\-b] [\-m] [\-M] [\-U handle_unknown ] [\-V] [\-o output_file] [input_file]"
9b478f
 .SH "DESCRIPTION"
9b478f
 This manual page describes the
9b478f
 .BR checkmodule
9b478f
@@ -12,7 +12,7 @@ command.
9b478f
 .B checkmodule
9b478f
 is a program that checks and compiles a SELinux security policy module
9b478f
 into a binary representation.  It can generate either a base policy
9b478f
-module (default) or a non-base policy module (-m option); typically,
9b478f
+module (default) or a non-base policy module (\-m option); typically,
9b478f
 you would build a non-base policy module to add to an existing module
9b478f
 store that already has a base module provided by the base policy.  Use
9b478f
 semodule_package to combine this module with its optional file
9b478f
@@ -48,7 +48,7 @@ Specify how the kernel should handle unknown classes or permissions (deny, allow
9b478f
 .SH EXAMPLE
9b478f
 .nf
9b478f
 # Build a MLS/MCS-enabled non-base policy module.
9b478f
-$ checkmodule -M -m httpd.te -o httpd.mod
9b478f
+$ checkmodule \-M \-m httpd.te \-o httpd.mod
9b478f
 .fi
9b478f
 
9b478f
 .SH "SEE ALSO"
9b478f
diff --git a/checkpolicy/checkpolicy.8 b/checkpolicy/checkpolicy.8
9b478f
index 6826938..0086bdc 100644
9b478f
--- a/checkpolicy/checkpolicy.8
9b478f
+++ b/checkpolicy/checkpolicy.8
9b478f
@@ -3,7 +3,7 @@
9b478f
 checkpolicy \- SELinux policy compiler
9b478f
 .SH SYNOPSIS
9b478f
 .B checkpolicy
9b478f
-.I "[-b] [-d] [-M] [-c policyvers] [-o output_file] [input_file]"
9b478f
+.I "[\-b] [\-d] [\-M] [\-c policyvers] [\-o output_file] [input_file]"
9b478f
 .br
9b478f
 .SH "DESCRIPTION"
9b478f
 This manual page describes the
9b478f
@@ -14,7 +14,7 @@ command.
9b478f
 is a program that checks and compiles a SELinux security policy configuration
9b478f
 into a binary representation that can be loaded into the kernel.  If no 
9b478f
 input file name is specified, checkpolicy will attempt to read from
9b478f
-policy.conf or policy, depending on whether the -b flag is specified.
9b478f
+policy.conf or policy, depending on whether the \-b flag is specified.
9b478f
 
9b478f
 .SH OPTIONS
9b478f
 .TP
9b478f
diff --git a/checkpolicy/checkpolicy.c b/checkpolicy/checkpolicy.c
9b478f
index 544f235..292f568 100644
9b478f
--- a/checkpolicy/checkpolicy.c
9b478f
+++ b/checkpolicy/checkpolicy.c
9b478f
@@ -402,7 +402,7 @@ int main(int argc, char **argv)
9b478f
 		{"binary", no_argument, NULL, 'b'},
9b478f
 		{"debug", no_argument, NULL, 'd'},
9b478f
 		{"version", no_argument, NULL, 'V'},
9b478f
-		{"handle-unknown", optional_argument, NULL, 'U'},
9b478f
+		{"handle-unknown", required_argument, NULL, 'U'},
9b478f
 		{"mls", no_argument, NULL, 'M'},
9b478f
 		{"help", no_argument, NULL, 'h'},
9b478f
 		{NULL, 0, NULL, 0}
9b478f
diff --git a/checkpolicy/policy_scan.l b/checkpolicy/policy_scan.l
9b478f
index bba7667..ab046cc 100644
9b478f
--- a/checkpolicy/policy_scan.l
9b478f
+++ b/checkpolicy/policy_scan.l
9b478f
@@ -240,7 +240,7 @@ HIGH				{ return(HIGH); }
9b478f
 low |
9b478f
 LOW				{ return(LOW); }
9b478f
 "/"({alnum}|[_\.\-/])*	        { return(PATH); }
9b478f
-\"({alnum}|[_\.\-\+\~])+\"	{ return(FILENAME); }
9b478f
+\"({alnum}|[_\.\-\+\~\: ])+\"	{ return(FILENAME); }
9b478f
 {letter}({alnum}|[_\-])*([\.]?({alnum}|[_\-]))*	{ return(IDENTIFIER); }
9b478f
 {alnum}*{letter}{alnum}*        { return(FILESYSTEM); }
9b478f
 {digit}+|0x{hexval}+            { return(NUMBER); }
9b478f
diff --git a/checkpolicy/test/Makefile b/checkpolicy/test/Makefile
9b478f
index 0731e89..63b4d24 100644
9b478f
--- a/checkpolicy/test/Makefile
9b478f
+++ b/checkpolicy/test/Makefile
9b478f
@@ -3,7 +3,7 @@
9b478f
 #
9b478f
 PREFIX ?= $(DESTDIR)/usr
9b478f
 BINDIR=$(PREFIX)/bin
9b478f
-LIBDIR=$(PREFIX)/lib
9b478f
+LIBDIR ?= $(PREFIX)/lib
9b478f
 INCLUDEDIR ?= $(PREFIX)/include
9b478f
 
9b478f
 CFLAGS ?= -g -Wall -W -Werror -O2 -pipe