diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:20:03 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:20:03 +0000 |
commit | a009c51fcfe32841a42640767392bcaed8b5ce1d (patch) | |
tree | a1d2b0e0d8a86fa3ed34f0b0a0ab213cd1182e93 /sys-libs/libsepol | |
parent | ustr initial commit. (diff) | |
download | historical-a009c51fcfe32841a42640767392bcaed8b5ce1d.tar.gz historical-a009c51fcfe32841a42640767392bcaed8b5ce1d.tar.bz2 historical-a009c51fcfe32841a42640767392bcaed8b5ce1d.zip |
Initial commit of 2.0 libsepol.
Package-Manager: portage-2.2_rc11/cvs/Linux 2.6.24-gentoo-r3 x86_64
Diffstat (limited to 'sys-libs/libsepol')
-rw-r--r-- | sys-libs/libsepol/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libsepol/Manifest | 15 | ||||
-rw-r--r-- | sys-libs/libsepol/files/libsepol-2.0.32-expand_rule.diff | 39 | ||||
-rw-r--r-- | sys-libs/libsepol/libsepol-2.0.32.ebuild | 43 |
4 files changed, 103 insertions, 2 deletions
diff --git a/sys-libs/libsepol/ChangeLog b/sys-libs/libsepol/ChangeLog index 2383fafb8e45..9ddc04e24159 100644 --- a/sys-libs/libsepol/ChangeLog +++ b/sys-libs/libsepol/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/libsepol # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/ChangeLog,v 1.31 2008/09/10 17:34:19 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/ChangeLog,v 1.32 2008/10/03 03:20:02 pebenito Exp $ + +*libsepol-2.0.32 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito <pebenito@gentoo.org> + +files/libsepol-2.0.32-expand_rule.diff, +libsepol-2.0.32.ebuild: + Initial commit of 2.0 libsepol. 10 Sep 2008; Chris PeBenito <pebenito@gentoo.org> libsepol-1.16.11.ebuild: Tests cannot be run in the ebuild, they are supposed to be ran on the full diff --git a/sys-libs/libsepol/Manifest b/sys-libs/libsepol/Manifest index 84933bcde75e..1ee4921fcd8d 100644 --- a/sys-libs/libsepol/Manifest +++ b/sys-libs/libsepol/Manifest @@ -1,5 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX libsepol-1.12.2.diff 981 RMD160 e3213aeafb0b61c32748bb59ca345b3e722f083a SHA1 bef9fe38ef93ed389000e26d6c21a168729bf8b8 SHA256 470c5ee1325d1d632892344f23b76e54f5e67b151e4f73abeceb701b802edeae +AUX libsepol-2.0.32-expand_rule.diff 1330 RMD160 751ee7e7bbb38a2e9b0773fe6e6d858590116e7a SHA1 3fd8b0f339fb90e4f00d2088a0fe252b764a41ac SHA256 2a7577eed0c2ba87936f8851d70b020f0ad0d16c5c66717ce2ec8cde7c2ba56d DIST libsepol-1.16.11.tgz 184630 RMD160 a1c100d99a4c19cf8947264d4865e1752585280b SHA1 5cd4acf9dadad4be43f7f4c688d21b8e10bfe7aa SHA256 9fea2789399f95ada3c2c2b91ade0893d673da72eb0f7f1f2883ea53333b2bec +DIST libsepol-2.0.32.tar.gz 189663 RMD160 7baf263024446f608eecd1ecc4d8106e01765688 SHA1 482b13b721da2954ffeef9f8ed3b2e4ea1953cad SHA256 ed6ca0e33b14fc5ffbf4aa5515131625248f307e7fc837b1e4fb9c717e6b8672 EBUILD libsepol-1.16.11.ebuild 1059 RMD160 b899ce64b78cc7068fe447e5973b80b810143c4b SHA1 dd2a1e9f1c67565c39314d5b427c77ebd04c3e84 SHA256 5fa59197201665121bf734da1974ed0c07da9aedb34aa2e7b6a8456fd7e5a798 -MISC ChangeLog 4314 RMD160 eed2cce63845210634b091d41ab4a1ee341c1445 SHA1 2b127e9c41e722bf3a8b78e88840909e7fb8135c SHA256 8f28f27419aa8185ed7093c667166d53055b76b6b379bb0476457494296137fb +EBUILD libsepol-2.0.32.ebuild 1110 RMD160 5f116f09249a5dea7dae7d2e74310723f9ca597b SHA1 621aa710c099c8ef0deebd3f391dfd689513b523 SHA256 9bb818773259044eb557488ff4f665a459cc45c2f3ac3f571a066f6442578eed +MISC ChangeLog 4501 RMD160 17482bbf0f5dd76690a3a28c031a4adefd170f81 SHA1 e46052447825611dbac7946841c72e086813975f SHA256 a623b185478f1cd773df84e0facd081a0d74142e511ffcfaf302b3ed814a9e6b MISC metadata.xml 300 RMD160 36b5466d0f61dbc147eb3e2ffd94d1a6afed35ac SHA1 e18750d941907a5c15baf781d8e6786961cde972 SHA256 7fe4b477cb4f8b93c9e5bb63336688933259ff619f743fb2647479a59227dc2b +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkjlj2gACgkQXifbxvYVSbS0NACdHAG1bHibXDGlH7CAAjlQda4Z +a1IAoKFq95Pazv7yWDwWCg6TpkQ5WHU4 +=p3dw +-----END PGP SIGNATURE----- diff --git a/sys-libs/libsepol/files/libsepol-2.0.32-expand_rule.diff b/sys-libs/libsepol/files/libsepol-2.0.32-expand_rule.diff new file mode 100644 index 000000000000..a9e1b77d1b19 --- /dev/null +++ b/sys-libs/libsepol/files/libsepol-2.0.32-expand_rule.diff @@ -0,0 +1,39 @@ +diff -purN libsepol-2.0.32.orig/src/expand.c libsepol-2.0.32/src/expand.c +--- libsepol-2.0.32.orig/src/expand.c 2008-08-26 09:40:22.000000000 -0400 ++++ libsepol-2.0.32/src/expand.c 2008-09-19 19:36:39.918510539 -0400 +@@ -1917,6 +1917,35 @@ int expand_convert_type_set(policydb_t * + return 0; + } + ++/* Expand a rule into a given avtab - checking for conflicting type ++ * rules. Return 1 on success, 0 if the rule conflicts with something ++ * (and hence was not added), or -1 on error. */ ++int expand_rule(sepol_handle_t * handle, ++ policydb_t * source_pol, ++ avrule_t * source_rule, avtab_t * dest_avtab, ++ cond_av_list_t ** cond, cond_av_list_t ** other, int enabled) ++{ ++ int retval; ++ ebitmap_t stypes, ttypes; ++ ++ if (source_rule->specified & AVRULE_NEVERALLOW) ++ return 1; ++ ++ ebitmap_init(&stypes); ++ ebitmap_init(&ttypes); ++ ++ if (type_set_expand(&source_rule->stypes, &stypes, source_pol, 1)) ++ return -1; ++ if (type_set_expand(&source_rule->ttypes, &ttypes, source_pol, 1)) ++ return -1; ++ retval = expand_rule_helper(handle, source_pol, NULL, ++ source_rule, dest_avtab, ++ cond, other, enabled, &stypes, &ttypes); ++ ebitmap_destroy(&stypes); ++ ebitmap_destroy(&ttypes); ++ return retval; ++} ++ + int role_set_expand(role_set_t * x, ebitmap_t * r, policydb_t * p, uint32_t * rolemap) + { + unsigned int i; diff --git a/sys-libs/libsepol/libsepol-2.0.32.ebuild b/sys-libs/libsepol/libsepol-2.0.32.ebuild new file mode 100644 index 000000000000..e0f110a415a3 --- /dev/null +++ b/sys-libs/libsepol/libsepol-2.0.32.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsepol/libsepol-2.0.32.ebuild,v 1.1 2008/10/03 03:20:02 pebenito Exp $ + +IUSE="" + +inherit multilib eutils + +BUGFIX_PATCH="${FILESDIR}/libsepol-2.0.32-expand_rule.diff" + +DESCRIPTION="SELinux binary policy representation library" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86" + +DEPEND="virtual/libc" + +# tests are not meant to be run outside of the +# full SELinux userland repo +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + + [ ! -z "$BUGFIX_PATCH" ] && epatch "${BUGFIX_PATCH}" + + # fix up paths for multilib + sed -i -e "/^LIBDIR/s/lib/$(get_libdir)/" src/Makefile \ + || die "Fix for multilib LIBDIR failed." + sed -i -e "/^SHLIBDIR/s/lib/$(get_libdir)/" src/Makefile \ + || die "Fix for multilib SHLIBDIR failed." +} + +src_compile() { + emake || die +} + +src_install() { + make DESTDIR="${D}" install +} |