diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2003-08-18 02:38:32 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2003-08-18 02:38:32 +0000 |
commit | 57991cfbc7eb00c53c146bf202cafea8da7cdc0f (patch) | |
tree | 86b72ef210a2389dee9121a80b5df5f3eee10a3a /sec-policy | |
parent | mask selinux-base-policy (diff) | |
download | gentoo-2-57991cfbc7eb00c53c146bf202cafea8da7cdc0f.tar.gz gentoo-2-57991cfbc7eb00c53c146bf202cafea8da7cdc0f.tar.bz2 gentoo-2-57991cfbc7eb00c53c146bf202cafea8da7cdc0f.zip |
initial commit for new selinux api
Diffstat (limited to 'sec-policy')
4 files changed, 72 insertions, 2 deletions
diff --git a/sec-policy/selinux-base-policy/ChangeLog b/sec-policy/selinux-base-policy/ChangeLog index 628452f48e5b..43daad2f64b5 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-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.5 2003/08/11 01:44:25 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.6 2003/08/18 02:38:28 pebenito Exp $ + +*selinux-base-policy-20030817 (17 Aug 2003) + + 17 Aug 2003; Chris PeBenito <pebenito@gentoo.org> + selinux-base-policy-20030817.ebuild: + Initial commit of new API policy 10 Aug 2003; Chris PeBenito <pebenito@gentoo.org> selinux-base-policy-20030729-r1.ebuild: diff --git a/sec-policy/selinux-base-policy/Manifest b/sec-policy/selinux-base-policy/Manifest index 87d78a190b81..b2cbfd7e68f3 100644 --- a/sec-policy/selinux-base-policy/Manifest +++ b/sec-policy/selinux-base-policy/Manifest @@ -1,4 +1,6 @@ -MD5 73a2c21aa0441bb5625b6fe8d86d125d ChangeLog 3377 +MD5 253ae14f7f5600bf5ac6fdb28f1dfe20 ChangeLog 3549 MD5 808b5f7f5d6654666e9193672d463229 metadata.xml 473 +MD5 b72e6c5b85478448f5bd00662799306c selinux-base-policy-20030817.ebuild 2028 MD5 c656ecb47e08edc4c5bfb0331e1f4919 selinux-base-policy-20030729-r1.ebuild 2101 +MD5 4fa1e35b36f50344f9f7e6de59687a24 files/digest-selinux-base-policy-20030817 80 MD5 4d266a57f64936ce65e5018775edefd8 files/digest-selinux-base-policy-20030729-r1 80 diff --git a/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20030817 b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20030817 new file mode 100644 index 000000000000..3bcd7909c3ae --- /dev/null +++ b/sec-policy/selinux-base-policy/files/digest-selinux-base-policy-20030817 @@ -0,0 +1 @@ +MD5 05a3f5e8d16c656e317e54f8ccd840b2 selinux-base-policy-20030817.tar.bz2 57884 diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild new file mode 100644 index 000000000000..239ce61a9350 --- /dev/null +++ b/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/selinux-base-policy-20030817.ebuild,v 1.1 2003/08/18 02:38:28 pebenito Exp $ + +IUSE="selinux" + +DESCRIPTION="Gentoo base policy for SELinux" +HOMEPAGE="http://www.gentoo.org" +SRC_URI="mirror://gentoo/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +DEPEND="" +RDEPEND="sys-devel/m4 + sys-devel/make" + +S=${WORKDIR}/base-policy + +[ -z ${POLICYDIR} ] && POLICYDIR="/etc/security/selinux/src/policy" + +pkg_setup() { + if [ -z "`use selinux`" ]; then + eerror "selinux is missing from your USE. You seem to be using the" + eerror "incorrect profile. SELinux has a different profile than" + eerror "mainline Gentoo. Make sure the /etc/make.profile symbolic" + eend 1 "link is pointing to /usr/portage/profiles/selinux-${ARCH}-1.4/" + fi +} + +src_install() { + dodir /etc/security/selinux/src + + insinto /etc/security + doins ${S}/appconfig/* + + cp -a ${S} ${D}/${POLICYDIR} + rm -fR ${D}/${POLICYDIR}/appconfig +} + +pkg_postinst() { + 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 -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 8 +} |