diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2004-11-24 01:26:55 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2004-11-24 01:26:55 +0000 |
commit | 07e48278e0cd7058b8842251b74ddaf3ef31d096 (patch) | |
tree | cfa51db5946acf3f7107ed59de3ed8d2893d9d0e /sec-policy | |
parent | restructure make.defaults and add hardened/pie-ssp x86 subprofile (diff) | |
download | gentoo-2-07e48278e0cd7058b8842251b74ddaf3ef31d096.tar.gz gentoo-2-07e48278e0cd7058b8842251b74ddaf3ef31d096.tar.bz2 gentoo-2-07e48278e0cd7058b8842251b74ddaf3ef31d096.zip |
new release
Diffstat (limited to 'sec-policy')
3 files changed, 95 insertions, 1 deletions
diff --git a/sec-policy/selinux-base-policy/ChangeLog b/sec-policy/selinux-base-policy/ChangeLog index 4d05150905c4..a83d02d1a3a9 100644 --- a/sec-policy/selinux-base-policy/ChangeLog +++ b/sec-policy/selinux-base-policy/ChangeLog @@ -1,6 +1,12 @@ # 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.31 2004/10/23 13:16:50 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.32 2004/11/24 01:26:55 pebenito Exp $ + +*selinux-base-policy-20041123 (23 Nov 2004) + + 23 Nov 2004; Chris PeBenito <pebenito@gentoo.org> + +selinux-base-policy-20041123.ebuild: + New release with 1.18 merge. *selinux-base-policy-20041023 (23 Oct 2004) diff --git a/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20041123 b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20041123 new file mode 100644 index 000000000000..d0498fa3a4d4 --- /dev/null +++ b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20041123 @@ -0,0 +1 @@ +MD5 f9b1e8059056a5f554739344a1a30ec5 selinux-base-policy-20041123.tar.bz2 71871 diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20041123.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20041123.ebuild new file mode 100644 index 000000000000..e000fb74ae29 --- /dev/null +++ b/sec-policy/selinux-base-policy/selinux-base-policy-20041123.ebuild @@ -0,0 +1,87 @@ +# 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-20041123.ebuild,v 1.1 2004/11/24 01:26:55 pebenito Exp $ + +IUSE="build" + +inherit eutils + +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 ~amd64" +#KEYWORDS="x86 ppc sparc amd64" +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 domains/program/inetd.te + domains/program/tcpd.te file_contexts/program/inetd.fc + file_contexts/program/tcpd.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." + + ebeep 4 + epause 4 +} |