diff options
author | Joshua Brindle <method@gentoo.org> | 2004-09-09 16:31:40 +0000 |
---|---|---|
committer | Joshua Brindle <method@gentoo.org> | 2004-09-09 16:31:40 +0000 |
commit | 547b0e5791da369a9c65ce4b62a0618adf7a9e98 (patch) | |
tree | d1eb6c344586b5a6e3403e67a361455fb2bd98a6 /sys-apps/checkpolicy | |
parent | 3.3.0 is x86 stable (Manifest recommit) (diff) | |
download | gentoo-2-547b0e5791da369a9c65ce4b62a0618adf7a9e98.tar.gz gentoo-2-547b0e5791da369a9c65ce4b62a0618adf7a9e98.tar.bz2 gentoo-2-547b0e5791da369a9c65ce4b62a0618adf7a9e98.zip |
no netlink warn bpatch
Diffstat (limited to 'sys-apps/checkpolicy')
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-1.16.ebuild | 5 | ||||
-rw-r--r-- | sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff | 23 |
2 files changed, 27 insertions, 1 deletions
diff --git a/sys-apps/checkpolicy/checkpolicy-1.16.ebuild b/sys-apps/checkpolicy/checkpolicy-1.16.ebuild index 994cbc6642ac..4ea4bd96e535 100644 --- a/sys-apps/checkpolicy/checkpolicy-1.16.ebuild +++ b/sys-apps/checkpolicy/checkpolicy-1.16.ebuild @@ -1,9 +1,11 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-1.16.ebuild,v 1.1 2004/09/08 00:42:16 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-1.16.ebuild,v 1.2 2004/09/09 16:31:40 method Exp $ IUSE="" +inherit eutils + DESCRIPTION="SELinux policy compiler" HOMEPAGE="http://www.nsa.gov/selinux" SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz" @@ -20,6 +22,7 @@ RDEPEND="sec-policy/selinux-base-policy" src_unpack() { unpack ${A} sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" -e 's/$(LIBS)/$(LIBS) $(LDFLAGS)/' ${S}/Makefile + epatch ${FILESDIR}/checkpolicy-1.16-no-netlink-warn.diff } src_compile() { diff --git a/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff b/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff new file mode 100644 index 000000000000..f536c10f17e6 --- /dev/null +++ b/sys-apps/checkpolicy/files/checkpolicy-1.16-no-netlink-warn.diff @@ -0,0 +1,23 @@ +diff -ur checkpolicy-1.16/policy_parse.y checkpolicy-1.16-old/policy_parse.y +--- checkpolicy-1.16/policy_parse.y 2004-08-13 15:07:52.000000000 -0500 ++++ checkpolicy-1.16-old/policy_parse.y 2004-09-09 11:00:11.081574240 -0500 +@@ -2583,9 +2583,6 @@ + if (policyvers < POLICYDB_VERSION_NLCLASS && + (cladatum->value >= SECCLASS_NETLINK_ROUTE_SOCKET && + cladatum->value <= SECCLASS_NETLINK_DNRT_SOCKET)) { +- sprintf(errormsg, "remapping class %s to netlink_socket " +- "for policy version %d", id, policyvers); +- yywarn(errormsg); + classvalue = SECCLASS_NETLINK_SOCKET; + suppress = 1; + } else +@@ -2761,9 +2758,6 @@ + if (policyvers < POLICYDB_VERSION_NLCLASS && + (cladatum->value >= SECCLASS_NETLINK_ROUTE_SOCKET && + cladatum->value <= SECCLASS_NETLINK_DNRT_SOCKET)) { +- sprintf(errormsg, "remapping class %s to netlink_socket " +- "for policy version %d", id, policyvers); +- yywarn(errormsg); + classvalue = SECCLASS_NETLINK_SOCKET; + suppress = 1; + } else |