diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2004-07-02 23:45:39 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2004-07-02 23:45:39 +0000 |
commit | 476b6ff54762dd7c085642bb511796a8c571fdb1 (patch) | |
tree | 13e1fd866854cc22a6f7c8d57272dd5b412f6ba5 /sec-policy/selinux-base-policy | |
parent | mask selinux-base-policy-20040702 (diff) | |
download | historical-476b6ff54762dd7c085642bb511796a8c571fdb1.tar.gz historical-476b6ff54762dd7c085642bb511796a8c571fdb1.tar.bz2 historical-476b6ff54762dd7c085642bb511796a8c571fdb1.zip |
updated flask headers
Diffstat (limited to 'sec-policy/selinux-base-policy')
4 files changed, 104 insertions, 5 deletions
diff --git a/sec-policy/selinux-base-policy/ChangeLog b/sec-policy/selinux-base-policy/ChangeLog index 06960dffbb54..0b065a8ce522 100644 --- a/sec-policy/selinux-base-policy/ChangeLog +++ b/sec-policy/selinux-base-policy/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sec-policy/selinux-base-policy # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.27 2004/06/30 00:28:52 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.28 2004/07/02 23:45:39 pebenito Exp $ + +*selinux-base-policy-20040702 (02 Jul 2004) + + 02 Jul 2004; Chris PeBenito <pebenito@gentoo.org> + +selinux-base-policy-20040702.ebuild: + Same as 20040629, except with updated flask headers, which will come out in + 2.6.8. *selinux-base-policy-20040629 (29 Jun 2004) diff --git a/sec-policy/selinux-base-policy/Manifest b/sec-policy/selinux-base-policy/Manifest index 7385e45530a5..063950eca356 100644 --- a/sec-policy/selinux-base-policy/Manifest +++ b/sec-policy/selinux-base-policy/Manifest @@ -4,17 +4,19 @@ Hash: SHA1 MD5 3552d68f16615f11fa6fd0afbdc871be selinux-base-policy-20040604.ebuild 2673 MD5 2e73809684fe415f46227077effb292a selinux-base-policy-20040225.ebuild 2217 MD5 674034903cf497b7f46d20ed62479e1f selinux-base-policy-20040629.ebuild 2676 -MD5 f46fe24a0972386c043945f7391c4ee2 ChangeLog 8051 +MD5 8098f5e2b3f198edf5b82c6e1a4530e5 ChangeLog 8276 MD5 1ec05b5603cc44bc8b406af4f6efd260 selinux-base-policy-20040509.ebuild 2673 MD5 808b5f7f5d6654666e9193672d463229 metadata.xml 473 +MD5 e072d1ac900d493b546adc9c2f755bc5 selinux-base-policy-20040702.ebuild 2676 MD5 7afea4eea1a3c5611ca773551fbd1bb5 files/digest-selinux-base-policy-20040225 80 MD5 0c51e2c101c04d1a58f6da20add86a86 files/digest-selinux-base-policy-20040604 80 MD5 b04dbcde2eb7e0f4177e3076075fe6ca files/digest-selinux-base-policy-20040629 80 +MD5 aa75977434391487a1fe3dfe2394157d files/digest-selinux-base-policy-20040702 80 MD5 0671869ee0d92a38cfabe4491da88e1c files/digest-selinux-base-policy-20040509 80 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) -iD8DBQFA4glQGFJQsIJWJy4RAop3AJ99WlaWmcB2Y2jT+hKVGH2ZJ4gBGgCeL/1t -dX3ZvBpKRGDnI/FDhZXq3c8= -=xNLz +iD8DBQFA5fOvGFJQsIJWJy4RAojnAJ9jHATjEO+y1h7gunzT9ElrWmYn1QCcCFqi +mm80HuVK8C9TnEMm/+cF/gU= +=frQ7 -----END PGP SIGNATURE----- diff --git a/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20040702 b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20040702 new file mode 100644 index 000000000000..073fc386947a --- /dev/null +++ b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20040702 @@ -0,0 +1 @@ +MD5 9d7d602491eda3f344b9b948f28e0f39 selinux-base-policy-20040702.tar.bz2 69967 diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20040702.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20040702.ebuild new file mode 100644 index 000000000000..e376cb88ec0c --- /dev/null +++ b/sec-policy/selinux-base-policy/selinux-base-policy-20040702.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2004 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-20040702.ebuild,v 1.1 2004/07/02 23:45:39 pebenito Exp $ + +IUSE="build" + +DESCRIPTION="Gentoo base policy for SELinux" +HOMEPAGE="http://www.gentoo.org/proj/en/hardened/selinux/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc" +DEPEND="build? ( sys-devel/make + sys-devel/m4 )" +RDEPEND="sys-devel/m4 + sys-devel/make" + +S=${WORKDIR}/base-policy + +[ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy" + +# deprecated policies: +DEPRECATED="domains/program/devfsd.te domains/program/opt.te + file_contexts/program/devfsd.fc file_contexts/program/opt.fc + file_contexts/users.fc" + +src_compile() { + return +} + +src_install() { + if use build; then + # generate a file_contexts + dodir ${POLICYDIR}/file_contexts + einfo "Ignore the checkpolicy error on the next line." + make -C ${S} \ + FC=${D}/${POLICYDIR}/file_contexts/file_contexts \ + ${D}/${POLICYDIR}/file_contexts/file_contexts + + [ ! -f ${D}/${POLICYDIR}/file_contexts/file_contexts ] && \ + die "file_contexts was not generated." + else + # install full policy + dodir /etc/security/selinux/src + + insinto /etc/security + doins ${S}/appconfig/* + + cp -a ${S} ${D}/${POLICYDIR} + rm -fR ${D}/${POLICYDIR}/appconfig + fi +} + +pkg_postinst() { + local isdeprecated + echo + einfo "This is the base policy for SELinux on Gentoo. This policy" + einfo "package only covers the applications in the system profile." + einfo "More policy may need to be added according to your requirements." + echo + eerror "It is STRONGLY suggested that you evaluate and merge the" + eerror "policy changes. If any of the file contexts (*.fc) have" + eerror "changed, you should also relabel." + echo + ewarn "Please check the Changelog, there may be important information." + echo + echo + + einfo "Checking for deprecated policy..." + for i in $DEPRECATED; do + if [ -f "${POLICYDIR}/${i}" ]; then + eerror "${POLICYDIR}/${i}" + isdeprecated="y" + fi + done + [ "${isdeprecated}" ] && \ + eerror "The above policy file(s) should be removed if possible." || \ + einfo "None found." + + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 ; echo -ne "\a" ; sleep 1 + sleep 4 +} |