Compare commits

...

3 Commits
master ... f13

Author SHA1 Message Date
Fedora Release Engineering ee6c1a1085 dist-git conversion 2010-07-28 11:39:05 +00:00
Daniel J Walsh 4bf944c0b8 - Latest update from NSA
Update checkmodule man page and usage by Daniel Walsh and Steve Lawrence
- Allow policy version to be one number
2010-06-16 12:12:01 +00:00
Jesse Keating 81ebd52854 Initialize branch F-13 for checkpolicy 2010-02-17 01:02:17 +00:00
5 changed files with 23 additions and 36 deletions

View File

@ -73,3 +73,4 @@ checkpolicy-2.0.18.tgz
checkpolicy-2.0.19.tgz
checkpolicy-2.0.20.tgz
checkpolicy-2.0.21.tgz
checkpolicy-2.0.22.tgz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: checkpolicy
# $Id: Makefile,v 1.2 2007/10/15 18:39:30 notting Exp $
NAME := checkpolicy
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,13 +1,12 @@
diff --exclude-from=exclude -N -u -r nsacheckpolicy/module_compiler.c checkpolicy-2.0.18/module_compiler.c
--- nsacheckpolicy/module_compiler.c 2008-10-14 13:57:54.000000000 -0400
+++ checkpolicy-2.0.18/module_compiler.c 2008-10-28 10:10:03.000000000 -0400
@@ -904,8 +904,7 @@
return -1;
}
case -2:{
- yyerror("duplicate declaration of type/attribute");
- return -1;
+ return 0;
}
case -1:{
yyerror("could not require type/attribute here");
diff --exclude-from=exclude -N -u -r nsacheckpolicy/policy_parse.y checkpolicy-2.0.22/policy_parse.y
--- nsacheckpolicy/policy_parse.y 2010-05-19 14:45:51.000000000 -0400
+++ checkpolicy-2.0.22/policy_parse.y 2010-06-16 08:08:37.000000000 -0400
@@ -755,6 +755,8 @@
;
version_identifier : VERSION_IDENTIFIER
{ if (insert_id(yytext,0)) return -1; }
+ | number
+ { if (insert_id(yytext,0)) return -1; }
| ipv4_addr_def /* version can look like ipv4 address */
;
avrules_block : avrule_decls avrule_user_defs

View File

@ -1,7 +1,7 @@
%define libsepolver 2.0.39-1
Summary: SELinux policy compiler
Name: checkpolicy
Version: 2.0.21
Version: 2.0.22
Release: 1%{?dist}
License: GPLv2
Group: Development/System
@ -55,6 +55,14 @@ rm -rf ${RPM_BUILD_ROOT}
%{_bindir}/sedispol
%changelog
* Mon Jun 16 2010 Dan Walsh <dwalsh@redhat.com> - 2.0.22-1
- Latest update from NSA
* Update checkmodule man page and usage by Daniel Walsh and Steve Lawrence
- Allow policy version to be one number
* Mon May 3 2010 Dan Walsh <dwalsh@redhat.com> - 2.0.21-2
- Fix checkmodule man page and usage statements
* Tue Nov 1 2009 Dan Walsh <dwalsh@redhat.com> - 2.0.21-1
- Latest update from NSA
* Add support for building Xen policies from Paul Nuzzi.

View File

@ -1 +1 @@
c95a8fd53be09715f6652cc93fcd646d checkpolicy-2.0.21.tgz
b144f4049d87a32027e29d11a144427b checkpolicy-2.0.22.tgz