diff options
author | Sven Vermeulen <swift@gentoo.org> | 2011-12-06 12:45:17 +0000 |
---|---|---|
committer | Sven Vermeulen <swift@gentoo.org> | 2011-12-06 12:45:17 +0000 |
commit | 64667472e3c66dfa8936d3788997114db0d4fa22 (patch) | |
tree | 30ccf919d46b47ef1eca13be19ad97bd94cc4f0c /sec-policy | |
parent | version bump, thanks Pavel (diff) | |
download | gentoo-2-64667472e3c66dfa8936d3788997114db0d4fa22.tar.gz gentoo-2-64667472e3c66dfa8936d3788997114db0d4fa22.tar.bz2 gentoo-2-64667472e3c66dfa8936d3788997114db0d4fa22.zip |
Removing obsolete ebuild
Diffstat (limited to 'sec-policy')
-rw-r--r-- | sec-policy/selinux-base-policy/Manifest | 2 | ||||
-rw-r--r-- | sec-policy/selinux-base-policy/selinux-base-policy-2.20110726-r4.ebuild | 164 |
2 files changed, 0 insertions, 166 deletions
diff --git a/sec-policy/selinux-base-policy/Manifest b/sec-policy/selinux-base-policy/Manifest index 6bf999919b87..e0b261333c09 100644 --- a/sec-policy/selinux-base-policy/Manifest +++ b/sec-policy/selinux-base-policy/Manifest @@ -1,11 +1,9 @@ AUX config 631 RMD160 076ae6441a3a29ead502c8bc4b646546095ad95a SHA1 022e0457876cea7068b46c4f14601278215b1056 SHA256 891ddc7cfd577a8591d65f6cb3398863ec338209b347ce9bfc125817b841860e AUX modules.conf 739 RMD160 b579f8c11e3d284c46f89aa6d3f5adee39bb2404 SHA1 0db31f49a0bafc69be8c99527a1ee7cbe3d9f58f SHA256 72837d02fc5d2bfe3afef1fc6cfb05cdc88d0dae594767aab385aa32262c9996 -DIST patchbundle-selinux-base-policy-2.20110726-r4.tar.bz2 22344 RMD160 b4ecb26fb48b21f21e4836dd560cc39b463f76b7 SHA1 7505a0eb3863f3949224512d7329c185c37883f9 SHA256 62d9a41b087a47a09d1e1e5cee4451b8427b53d63babd7e61c7620aea4cbb009 DIST patchbundle-selinux-base-policy-2.20110726-r5.tar.bz2 23064 RMD160 289c82cd3d5207321afd826bc6b496943f4e0076 SHA1 d5202ce8fb89242c66b9af276a1aef342372e01d SHA256 696090195a0eaf768fa63230c8b2c22ae9d434698302bfd27490d486760e3f81 DIST patchbundle-selinux-base-policy-2.20110726-r6.tar.bz2 23875 RMD160 f39dfcde7ab79bc8c5b5fc9d5744922c1d1fdf94 SHA1 2aa434dc720f70ef7f4b64acc5da6028f853cef5 SHA256 f74b8385520846597532d56d4952fd001fc6cd044a6b876508a398e1cc865619 DIST patchbundle-selinux-base-policy-2.20110726-r7.tar.bz2 24545 RMD160 b85b95f4da29a11cfa7ff0b3209933741b1918be SHA1 b2a99809b5a293c1d6dbff3686b6120a2a779560 SHA256 cd8c9e78dcfdc78a957fe6231667eb7982146ab3523baa8d9a738d7cbee53f65 DIST refpolicy-2.20110726.tar.bz2 588033 RMD160 9803effffe1dbb28d52bee03432e052f4fdc8d3f SHA1 cc27b06c3f541d8f2c57c52804ab6893afcd9db2 SHA256 8159b7535aa0f805510e4e3504b1317d7083b227f0ef3df51c6f002ed70ecedb -EBUILD selinux-base-policy-2.20110726-r4.ebuild 4803 RMD160 bc338f97f88edfb893ebb0dd844b86110762690a SHA1 9a21fb4cfd00c3d2afc536ef623038a56451ab3f SHA256 cfa11c4150752d17523f4e5c4e56c2b6ce03eed59b196763f3a00ad434aa7830 EBUILD selinux-base-policy-2.20110726-r5.ebuild 4803 RMD160 2ef25e94c9675977f6f4e1ee692d72f730c18679 SHA1 c4423bf2b2eb0398d7888af91562bd068c9270e7 SHA256 cba82ab15ccb45e6e38bcd36b71a2ed8e6e11c6a07f6667c4b21de1c616b7650 EBUILD selinux-base-policy-2.20110726-r6.ebuild 4805 RMD160 035d674c9beb0eaa988ca93cb6914ad004201eeb SHA1 2435ab418a33e178196db3a51fcca112a79c62a9 SHA256 a4b2cb368ca76646763965e87a9ffd092a701436befea31b82ba0a8d03eefa0f EBUILD selinux-base-policy-2.20110726-r7.ebuild 4805 RMD160 0f926c26195955ffce1ec46cbda27647ebccc5b3 SHA1 a0e2a3130c8f9413d91f229726e75b8bc1e2bfb6 SHA256 1d0c73d60455157d4b60d689a468e14f6b23f97ff39aea5bce801fdb08fbaaf6 diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-2.20110726-r4.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-2.20110726-r4.ebuild deleted file mode 100644 index efb0a9f5ec31..000000000000 --- a/sec-policy/selinux-base-policy/selinux-base-policy-2.20110726-r4.ebuild +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-2.20110726-r4.ebuild,v 1.3 2011/11/27 18:12:39 swift Exp $ - -EAPI="4" -IUSE="+peer_perms +open_perms +ubac doc" - -inherit eutils - -DESCRIPTION="Gentoo base policy for SELinux" -HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/" -SRC_URI="http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2 - http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${PF}.tar.bz2" -LICENSE="GPL-2" -SLOT="0" - -KEYWORDS="amd64 x86" - -RDEPEND=">=sys-apps/policycoreutils-1.30.30 - >=sys-fs/udev-151" -DEPEND="${RDEPEND} - sys-devel/m4 - >=sys-apps/checkpolicy-1.30.12" - -S=${WORKDIR}/ - -src_prepare() { - # Apply the gentoo patches to the policy. These patches are only necessary - # for base policies, or for interface changes on modules. - EPATCH_MULTI_MSG="Applying SELinux policy updates ... " \ - EPATCH_SUFFIX="patch" \ - EPATCH_SOURCE="${WORKDIR}" \ - EPATCH_FORCE="yes" \ - epatch - - cd "${S}/refpolicy" - # Fix bug 257111 - Correct the initial sid for cron-started jobs in the - # system_r role - sed -i -e 's:system_crond_t:system_cronjob_t:g' \ - "${S}/refpolicy/config/appconfig-standard/default_contexts" - sed -i -e 's|system_r:cronjob_t|system_r:system_cronjob_t|g' \ - "${S}/refpolicy/config/appconfig-mls/default_contexts" - sed -i -e 's|system_r:cronjob_t|system_r:system_cronjob_t|g' \ - "${S}/refpolicy/config/appconfig-mcs/default_contexts" -} - -src_configure() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="targeted strict mls mcs" - - # Update the SELinux refpolicy capabilities based on the users' USE flags. - - if ! use peer_perms; then - sed -i -e '/network_peer_controls/d' \ - "${S}/refpolicy/policy/policy_capabilities" - fi - - if ! use open_perms; then - sed -i -e '/open_perms/d' \ - "${S}/refpolicy/policy/policy_capabilities" - fi - - if ! use ubac; then - sed -i -e '/^UBAC/s/y/n/' "${S}/refpolicy/build.conf" \ - || die "Failed to disable User Based Access Control" - fi - - echo "DISTRO = gentoo" >> "${S}/refpolicy/build.conf" - - # Setup the policies based on the types delivered by the end user. - # These types can be "targeted", "strict", "mcs" and "mls". - for i in ${POLICY_TYPES}; do - cp -a "${S}/refpolicy" "${S}/${i}" - - cd "${S}/${i}"; - make conf || die "Make conf in ${i} failed" - - # Define what we see as "base" and what we want to remain modular. - cp "${FILESDIR}/modules.conf" \ - "${S}/${i}/policy/modules.conf" \ - || die "failed to set up modules.conf" - # In case of "targeted", we add the "unconfined" to the base policy - if [[ "${i}" == "targeted" ]]; - then - echo "unconfined = base" >> "${S}/${i}/policy/modules.conf" - fi - - sed -i -e '/^QUIET/s/n/y/' -e "/^NAME/s/refpolicy/$i/" \ - "${S}/${i}/build.conf" || die "build.conf setup failed." - - if [[ "${i}" == "mls" ]] || [[ "${i}" == "mcs" ]]; - then - # MCS/MLS require additional settings - sed -i -e "/^TYPE/s/standard/${i}/" "${S}/${i}/build.conf" \ - || die "failed to set type to mls" - fi - - if [ "${i}" == "targeted" ]; then - sed -i -e '/root/d' -e 's/user_u/unconfined_u/' \ - "${S}/${i}/config/appconfig-standard/seusers" \ - || die "targeted seusers setup failed." - fi - done -} - -src_compile() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="targeted strict mls mcs" - - for i in ${POLICY_TYPES}; do - cd "${S}/${i}" - make base || die "${i} compile failed" - if use doc; then - make html || die - fi - done -} - -src_install() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="targeted strict mls mcs" - - for i in ${POLICY_TYPES}; do - cd "${S}/${i}" - - make DESTDIR="${D}" install \ - || die "${i} install failed." - - make DESTDIR="${D}" install-headers \ - || die "${i} headers install failed." - - echo "run_init_t" > "${D}/etc/selinux/${i}/contexts/run_init_type" - - echo "textrel_shlib_t" >> "${D}/etc/selinux/${i}/contexts/customizable_types" - - # libsemanage won't make this on its own - keepdir "/etc/selinux/${i}/policy" - - if use doc; then - dohtml doc/html/*; - fi - done - - dodoc doc/Makefile.example doc/example.{te,fc,if} - - insinto /etc/selinux - doins "${FILESDIR}/config" -} - -pkg_preinst() { - has_version "<${CATEGORY}/${PN}-2.20101213-r13" - previous_less_than_r13=$? -} - -pkg_postinst() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="targeted strict mls mcs" - - for i in ${POLICY_TYPES}; do - einfo "Inserting base module into ${i} module store." - - cd "${ROOT}/usr/share/selinux/${i}" - semodule -s "${i}" -b base.pp || die "Could not load in new base policy" - done - elog "Updates on policies might require you to relabel files. If you, after" - elog "installing new SELinux policies, get 'permission denied' errors," - elog "relabelling your system using 'rlpkg -a -r' might resolve the issues." -} |