summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2003-07-20 17:29:25 +0000
committerChris PeBenito <pebenito@gentoo.org>2003-07-20 17:29:25 +0000
commitfaa55e3c291641966151846245139745b9bda0e3 (patch)
tree583392797354185c82673fddcefd7b5f2c12aafd /sys-apps
parentAdd NFS4 support (diff)
downloadgentoo-2-faa55e3c291641966151846245139745b9bda0e3.tar.gz
gentoo-2-faa55e3c291641966151846245139745b9bda0e3.tar.bz2
gentoo-2-faa55e3c291641966151846245139745b9bda0e3.zip
new release
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/selinux-base-policy/ChangeLog12
-rw-r--r--sys-apps/selinux-base-policy/Manifest4
-rw-r--r--sys-apps/selinux-base-policy/files/digest-selinux-base-policy-200307201
-rw-r--r--sys-apps/selinux-base-policy/selinux-base-policy-20030720.ebuild62
4 files changed, 77 insertions, 2 deletions
diff --git a/sys-apps/selinux-base-policy/ChangeLog b/sys-apps/selinux-base-policy/ChangeLog
index a52d3ee9a4a5..5f6f1151e3ed 100644
--- a/sys-apps/selinux-base-policy/ChangeLog
+++ b/sys-apps/selinux-base-policy/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for sys-apps/selinux-base-policy
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/selinux-base-policy/ChangeLog,v 1.9 2003/06/07 04:04:35 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/selinux-base-policy/ChangeLog,v 1.10 2003/07/20 17:29:20 pebenito Exp $
+
+*selinux-base-policy-20030720 (20 Jul 2003)
+
+ 20 Jul 2003; Chris PeBenito <pebenito@gentoo.org>
+ selinux-base-policy-20030720.ebuild:
+ Many fixes, including the syslog fix. File contexts have changed, so a relabel
+ is needed. You may encounter problems relabeling /usr/portage, as its file
+ context has changed, as files should not have the same type as a domain.
+ Relabelling in permissive will fix this, or temporarily give portage_t a
+ file_type attribute. Tightened the can_exec_any() macro.
06 Jun 2003; Chris PeBenito <pebenito@gentoo.org>
selinux-base-policy-20030604.ebuild:
diff --git a/sys-apps/selinux-base-policy/Manifest b/sys-apps/selinux-base-policy/Manifest
index 2dd39f77cac9..c79d88c8519b 100644
--- a/sys-apps/selinux-base-policy/Manifest
+++ b/sys-apps/selinux-base-policy/Manifest
@@ -1,4 +1,6 @@
-MD5 a08bb0a276964a585ac08b812f7fd1be ChangeLog 2091
+MD5 6cd9a0839cde25b9b3a5d54ff91d84f9 ChangeLog 2596
MD5 808b5f7f5d6654666e9193672d463229 metadata.xml 473
+MD5 eca4bbf3d791558ffbcaca9807e88e6e selinux-base-policy-20030720.ebuild 2047
MD5 c7756990d5442f1d086a1f09693c6a7e selinux-base-policy-20030604.ebuild 2046
+MD5 d10857a9bb40eeac10d0e5b3e83c27b8 files/digest-selinux-base-policy-20030720 80
MD5 ca4360b2c75e8cc5e4d3f65ac763d5b4 files/digest-selinux-base-policy-20030604 80
diff --git a/sys-apps/selinux-base-policy/files/digest-selinux-base-policy-20030720 b/sys-apps/selinux-base-policy/files/digest-selinux-base-policy-20030720
new file mode 100644
index 000000000000..6fbcadd47fe7
--- /dev/null
+++ b/sys-apps/selinux-base-policy/files/digest-selinux-base-policy-20030720
@@ -0,0 +1 @@
+MD5 ad36c07336d743709e6c52c165a55b96 selinux-base-policy-20030720.tar.bz2 46993
diff --git a/sys-apps/selinux-base-policy/selinux-base-policy-20030720.ebuild b/sys-apps/selinux-base-policy/selinux-base-policy-20030720.ebuild
new file mode 100644
index 000000000000..5561ee9827df
--- /dev/null
+++ b/sys-apps/selinux-base-policy/selinux-base-policy-20030720.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/selinux-base-policy/selinux-base-policy-20030720.ebuild,v 1.1 2003/07/20 17:29:20 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"
+RDEPEND="|| (
+ >=sys-kernel/selinux-sources-2.4.20-r1
+ >=sys-kernel/hardened-sources-2.4.20-r1
+ )
+ sys-devel/m4
+ sys-devel/make"
+DEPEND=""
+S=${WORKDIR}/base-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-x86-1.4/"
+ fi
+}
+
+src_install() {
+ dodir /etc/security/selinux/src
+
+ insinto /etc/security
+ doins ${S}/appconfig/*
+ rm -fR ${S}/appconfig
+
+ mv ${S} ${D}/etc/security/selinux/src/policy
+}
+
+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
+}