diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2011-07-11 01:59:36 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2011-07-11 01:59:36 +0000 |
commit | 227e2b858cc697d92e1aef28b15776a1362b3494 (patch) | |
tree | 291e61f861a57a44a07585a1ed18ba80e749512b /sec-policy | |
parent | Beta bump (diff) | |
download | historical-227e2b858cc697d92e1aef28b15776a1362b3494.tar.gz historical-227e2b858cc697d92e1aef28b15776a1362b3494.tar.bz2 historical-227e2b858cc697d92e1aef28b15776a1362b3494.zip |
Removed all pre 2.20xx base policies
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'sec-policy')
11 files changed, 14 insertions, 624 deletions
diff --git a/sec-policy/selinux-base-policy/ChangeLog b/sec-policy/selinux-base-policy/ChangeLog index 0fc5dc80c979..3cb40ff775f3 100644 --- a/sec-policy/selinux-base-policy/ChangeLog +++ b/sec-policy/selinux-base-policy/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sec-policy/selinux-base-policy # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.79 2011/07/10 02:30:17 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/sec-policy/selinux-base-policy/ChangeLog,v 1.80 2011/07/11 01:59:36 blueness Exp $ + + 11 Jul 2011; Anthony G. Basile <blueness@gentoo.org> + -files/selinux-base-policy-20070329.diff, + -selinux-base-policy-20080525.ebuild, + -selinux-base-policy-20080525-r1.ebuild, -files/modules.conf.strict, + -files/modules.conf.strict.20070928, -files/modules.conf.strict.20080525, + -files/modules.conf.targeted, -files/modules.conf.targeted.20070928, + -files/modules.conf.targeted.20080525: + Removed all pre 2.20xx base policies *selinux-base-policy-2.20101213-r18 (10 Jul 2011) diff --git a/sec-policy/selinux-base-policy/Manifest b/sec-policy/selinux-base-policy/Manifest index 7f749c6cb2de..f81d5b23d6a9 100644 --- a/sec-policy/selinux-base-policy/Manifest +++ b/sec-policy/selinux-base-policy/Manifest @@ -2,15 +2,8 @@ Hash: SHA256 AUX config 447 RMD160 e7c65cdee66dd93597f6608c48ab672327dfaf99 SHA1 32ec28fff992016971ddec982c203a44275552fc SHA256 8192a534941ef95ca93bfff3a0a078407480e52047048daccb5cb7acac1eaddf -AUX modules.conf.strict 652 RMD160 78fc162f0b04e0d13767ae2c96391ad779f006da SHA1 5389ceffa40602679ef48d8bcab6e7227cafae7c SHA256 18f52a3463de7b2f5a7cc80a0b43270f15522c89a8e833b19d842a13655afe8f -AUX modules.conf.strict.20070928 671 RMD160 ca125b4a8846c891a7b58df5cf36d215a6391c6a SHA1 124e3794dcb82b4738a7ee24a5e2107ba56b21d0 SHA256 09173a661f0a9eaab9fca98703fb672b572f203ff987b0917c105e80107a23bf -AUX modules.conf.strict.20080525 716 RMD160 c894c05e6081491bd669f922c36cbd6f553b4181 SHA1 c08145eacc989bd650cbad9c839ee365524f3021 SHA256 49183949ebe78f5d2916bf7617b9fe03ff2edc71fd7d39d76469e73224616c89 AUX modules.conf.strict.20090730 728 RMD160 20c291e9a1ab63c7ffeda41f1b28a1a3d1058a5b SHA1 79f164d12565c3f9cc633fbbfc3469f1337cabc9 SHA256 7deba8527d6002e25d5b307fa085341473add1bc6489902a920096012ba56456 -AUX modules.conf.targeted 670 RMD160 8b36b672f70e932eeaa3288d6251d6ad79be10f3 SHA1 debfb88a6e70da185bc37ba300f08261b0e670ae SHA256 b774c2d7175f2d4f73ac7068b3c62bbaa1b6e5f92294dfdee2afdf0d2ccff8b3 -AUX modules.conf.targeted.20070928 689 RMD160 9f7710a9dd553f92dbc9e294849b74ce91cd31a0 SHA1 aaba67cd4118251516b348dcdd0e281743ec0f5a SHA256 9d19d10ddf79eb641b12668b5633911a2a8d3421a6dcfb19a85bb5b36a53771c -AUX modules.conf.targeted.20080525 734 RMD160 3e467e75a25463b139d26a503c5e54e5a8980084 SHA1 efd642c0a69283ab4174d0d88df27ac015850fd6 SHA256 d24b185ed427f1fd46faf05e597c50e8671b4285600d05074cf10924154a35b9 AUX modules.conf.targeted.20090730 746 RMD160 51929329cb860f5412ea4fda11e1d4bc8eafadae SHA1 80c8ac75f2102968f22f7469142b820a33a0a2c0 SHA256 435cb66eee3c702bd217a66d138d740ceb7f750380fb4681d6eae4b5acacf2c0 -AUX selinux-base-policy-20070329.diff 2822 RMD160 164c86d9eb814ada83499f529445d7360b634988 SHA1 22d4240dd4e8d4018e61e2d0d25c810bc0eeaa2b SHA256 6e45238d3baf2771dddb6d0323d3e012c657458d686564577b043199b0336d59 DIST patchbundle-selinux-base-policy-2.20101213-r16.tar.bz2 13853 RMD160 7cfa1a2af1677bb4609fccc6225e963657892e96 SHA1 2fb4f1ba11e95c5a8bf3f6887fd7eb54e9d7439d SHA256 800004fc009e3e7894c21554119c26ef460ed497cebf792412fbbadab41f96c4 DIST patchbundle-selinux-base-policy-2.20101213-r17.tar.bz2 15055 RMD160 5fbaf0263a6b71d3fab614ef7fc9a1c1a0fb9532 SHA1 57a8df9c04bc17cfb1b1dbd45c18b8a56274d4c7 SHA256 717402987115facee72e7517f866f245987fea2e4312d710b9c62853d779319d DIST patchbundle-selinux-base-policy-2.20101213-r18.tar.bz2 15951 RMD160 ff5f27778184717ccd8eb9ad1ba42c5abf57dd2b SHA1 e6e563d43f4c64dcc9437f9eb227dd62ba674b2a SHA256 4245364ff20f4e0eb69aec6e57276e9f2f2bcbb45b5ecf4484fcb3d11e80da7b @@ -18,21 +11,18 @@ DIST refpolicy-2.20090730.tar.bz2 489840 RMD160 d1d157a5ad243edd5d216504ed697f12 DIST refpolicy-2.20090814.tar.bz2 490191 RMD160 a62b13cac598dcb83e9730d8fc3771f5130a4776 SHA1 b80315c3ea09f1cfac637f09ca3fad1e19674790 SHA256 d7c500e76089240b00a1a53238ccca581ef02cce7812bc68f8d0299b9c261c22 DIST refpolicy-2.20091215.tar.bz2 502893 RMD160 d4951a3d2025630734c4664dca0cc8297a354275 SHA1 3a64189cda00475d60b70ed0876b3e297ad463c6 SHA256 8c264680d130e7d0e0a49ee80d54a3fbdf083bc341c7f7516b5edef34e222ca5 DIST refpolicy-2.20101213.tar.bz2 559450 RMD160 4858f792f4db5b179de6fb8419a626c29d59bdd3 SHA1 0e881e99b8950a358eadc44633551ca10f12eaee SHA256 b691ee8f6066cc19bb0d4384fe3be277d97d22e9d4ac2db0c252065e8c3535de -DIST refpolicy-20080525.tar.bz2 336603 RMD160 c4e846a5506164f8c89994df4bbd05b396f60639 SHA1 7764f2f6c60a530abb461256335b70a288bb65f9 SHA256 122a12924ef7b1348d676214590a0ed92960fbde053ea5a666e5179e0fd66ab2 EBUILD selinux-base-policy-2.20090730.ebuild 2940 RMD160 a4a6c14cda440566a2582c28ccf0e1b5474dbdb1 SHA1 1589347cce96ec35140db6eb6fb25604be63c846 SHA256 d5859b49ffa2e94a453facd23063b099e677418bbdeb7f7663198b261b34d592 EBUILD selinux-base-policy-2.20090814.ebuild 2940 RMD160 07e7a3c2fc462a44d02a2090311a116ec76e47ac SHA1 96662ce3d4751a4d4204e6dfe82e4441de231772 SHA256 aa324229c3858a542fe4826ffb3907ff438d37ff1da23dfc801d663f94dfa865 EBUILD selinux-base-policy-2.20091215.ebuild 3065 RMD160 8477cbb7a0cf627421110ab3204ff16334ff6324 SHA1 16175073dfc79810795bbe3b72f9c096d8a081da SHA256 012ae2d09bab8059244c475ee58c6b59d14a9f78be61ac50079bea9cb3f93f77 EBUILD selinux-base-policy-2.20101213-r16.ebuild 3669 RMD160 c98ef6044636a3a92f8869698fa6a8d4103c3dc1 SHA1 5d4b18ac25c7d95e84a509d800416fbcd493faab SHA256 3e45915e68e76893f4b5d3efd704ac23fd4ca6466aa4d98988cd8a2f2db9822d EBUILD selinux-base-policy-2.20101213-r17.ebuild 3668 RMD160 72e220bc95a2b9f7e244962a96575b18d7281900 SHA1 aa36481a98d6da77d8dca72f197262654060189c SHA256 ed871031168ac7f5d2a0b2ee60ca93dda4ebe080f768afcd3461710462c138c6 EBUILD selinux-base-policy-2.20101213-r18.ebuild 3665 RMD160 e9d05055519957244db6f893a23ce2ff7bcecac8 SHA1 ab2e6969510b7950a63be62404b3e4f5e35f8261 SHA256 d32cb918c05035a5376a8d7e5b8f28bc591d5f6951ad9fdbc475315ab6e0182c -EBUILD selinux-base-policy-20080525-r1.ebuild 3068 RMD160 f667dc4a3825a8f6b4c269e8012a9c8a6f764704 SHA1 232dd533252299a75f137258d2d7b3e239f8ea3f SHA256 14a6d7008cf023642fdd1478b746383abc8a0581e285d72804b4fbc60b5d7623 -EBUILD selinux-base-policy-20080525.ebuild 2985 RMD160 42dc3b88d0f93c777f3e2485bd2c095e2a05a6e9 SHA1 36ec26261df5aef2804b4b79f74a2ff39691d550 SHA256 a0d78a4530639c47314b824e494b9b246a979995337703e1cc31946f82e34cce -MISC ChangeLog 19233 RMD160 c5d4b42bd4a1dfd8646d72dc8b1bbf0c97de4717 SHA1 452f6a985c36b953b22fdb20b73d6c2b7b9e1f64 SHA256 caf21ad1c7fdf429e91703e9ee8e6f58d7f62d02d25c1acfd5c30d44b879af33 +MISC ChangeLog 19671 RMD160 af36ccb84c3108f8ad559501688081176438e9f4 SHA1 3636d5af4ff6493ab1d253642cdd32eb036f448f SHA256 af90241d816096164d98660990e75d2eb733ffb70ea49b9c5bdc2bffc90cf612 MISC metadata.xml 671 RMD160 49dd94bb827c4ab2bb8043739ef7564df4cf1c07 SHA1 a92b8a5ef129707a44fe2ae1913060d02badd566 SHA256 c32ccc54ca7df400974a19ad14c093ea7b777f7a40467bdb672f441314122e55 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEAREIAAYFAk4ZDsMACgkQl5yvQNBFVTWkRACfV1io5MisjL1y0WjfA6dJA0fr -P2wAnjBoEZPHONyOVGX5sRYROo+Sc3NI -=zIF2 +iEYEAREIAAYFAk4aWRgACgkQl5yvQNBFVTWjmwCeOIunKIHh5ckiESCjdaBO7uGp +3EkAn2SkiRDwn/NcDvYRp3VGyrr8LXpb +=UEuu -----END PGP SIGNATURE----- diff --git a/sec-policy/selinux-base-policy/files/modules.conf.strict b/sec-policy/selinux-base-policy/files/modules.conf.strict deleted file mode 100644 index a9c7a9b015e9..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.strict +++ /dev/null @@ -1,44 +0,0 @@ -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -storage = base -su = base -sysnetwork = base -terminal = base -udev = base -userdomain = base -usermanage = base diff --git a/sec-policy/selinux-base-policy/files/modules.conf.strict.20070928 b/sec-policy/selinux-base-policy/files/modules.conf.strict.20070928 deleted file mode 100644 index fb65e0077ca7..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.strict.20070928 +++ /dev/null @@ -1,45 +0,0 @@ -application = base -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -storage = base -su = base -sysnetwork = base -terminal = base -udev = base -userdomain = base -usermanage = base diff --git a/sec-policy/selinux-base-policy/files/modules.conf.strict.20080525 b/sec-policy/selinux-base-policy/files/modules.conf.strict.20080525 deleted file mode 100644 index 11642a928318..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.strict.20080525 +++ /dev/null @@ -1,48 +0,0 @@ -application = base -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -staff = base -storage = base -su = base -sysadm = base -sysnetwork = base -terminal = base -udev = base -userdomain = base -usermanage = base -unprivuser = base diff --git a/sec-policy/selinux-base-policy/files/modules.conf.targeted b/sec-policy/selinux-base-policy/files/modules.conf.targeted deleted file mode 100644 index 90f9ad306a96..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.targeted +++ /dev/null @@ -1,45 +0,0 @@ -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -storage = base -su = base -sysnetwork = base -terminal = base -udev = base -unconfined = base -userdomain = base -usermanage = base diff --git a/sec-policy/selinux-base-policy/files/modules.conf.targeted.20070928 b/sec-policy/selinux-base-policy/files/modules.conf.targeted.20070928 deleted file mode 100644 index 08ba1f782947..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.targeted.20070928 +++ /dev/null @@ -1,46 +0,0 @@ -application = base -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -storage = base -su = base -sysnetwork = base -terminal = base -udev = base -unconfined = base -userdomain = base -usermanage = base diff --git a/sec-policy/selinux-base-policy/files/modules.conf.targeted.20080525 b/sec-policy/selinux-base-policy/files/modules.conf.targeted.20080525 deleted file mode 100644 index 55a9b4a873b2..000000000000 --- a/sec-policy/selinux-base-policy/files/modules.conf.targeted.20080525 +++ /dev/null @@ -1,49 +0,0 @@ -application = base -authlogin = base -bootloader = base -clock = base -consoletype = base -corecommands = base -corenetwork = base -cron = base -devices = base -dmesg = base -domain = base -files = base -filesystem = base -fstools = base -getty = base -hostname = base -hotplug = base -init = base -iptables = base -kernel = base -libraries = base -locallogin = base -logging = base -lvm = base -miscfiles = base -mcs = base -mls = base -modutils = base -mount = base -mta = base -netutils = base -nscd = base -portage = base -raid = base -rsync = base -selinux = base -selinuxutil = base -ssh = base -staff = base -storage = base -su = base -sysadm = base -sysnetwork = base -terminal = base -udev = base -unconfined = base -userdomain = base -usermanage = base -unprivuser = base diff --git a/sec-policy/selinux-base-policy/files/selinux-base-policy-20070329.diff b/sec-policy/selinux-base-policy/files/selinux-base-policy-20070329.diff deleted file mode 100644 index 4a6f55cdc7df..000000000000 --- a/sec-policy/selinux-base-policy/files/selinux-base-policy-20070329.diff +++ /dev/null @@ -1,96 +0,0 @@ -Index: policy/support/loadable_module.spt -=================================================================== ---- policy/support/loadable_module.spt (revision 2248) -+++ policy/support/loadable_module.spt (revision 2249) -@@ -128,10 +128,10 @@ - # This needs to be reworked so expressions - # with parentheses can work. - --define(`delcare_required_symbols',` -+define(`declare_required_symbols',` - ifelse(regexp($1, `\w'), -1, `', `dnl - bool regexp($1, `\(\w+\)', `\1'); --delcare_required_symbols(regexp($1, `\w+\(.*\)', `\1'))dnl -+declare_required_symbols(regexp($1, `\w+\(.*\)', `\1'))dnl - ') dnl - ') - -@@ -140,16 +140,7 @@ - # Tunable declaration - # - define(`gen_tunable',` -- ifdef(`self_contained_policy',` -- bool $1 dflt_or_overr(`$1'_conf,$2); -- ',` -- # loadable module tunable -- # declaration will go here -- # instead of bool when -- # loadable modules support -- # tunables -- bool $1 dflt_or_overr(`$1'_conf,$2); -- ') -+ bool $1 dflt_or_overr(`$1'_conf,$2); - ') - - ############################## -@@ -157,24 +148,12 @@ - # Tunable policy handling - # - define(`tunable_policy',` -- ifdef(`self_contained_policy',` -- if (`$1') { -- $2 -- ifelse(`$3',`',`',`} else { -- $3 -- ')} -- ',` -- # structure for tunables -- # will go here instead of a -- # conditional when loadable -- # modules support tunables -- gen_require(` -- delcare_required_symbols(`$1') -- ') -- if (`$1') { -- $2 -- ifelse(`$3',`',`',`} else { -- $3 -- ')} -+ gen_require(` -+ declare_required_symbols(`$1') - ') -+ if (`$1') { -+ $2 -+ ifelse(`$3',`',`',`} else { -+ $3 -+ ')} - ') -Index: support/comment_move_decl.sed -=================================================================== ---- support/comment_move_decl.sed (revision 2248) -+++ support/comment_move_decl.sed (revision 2249) -@@ -5,9 +5,10 @@ - /require \{/,/} # end require/b nextline - /optional \{/,/} # end optional/b nextline - --/^[[:blank:]]*(attribute|type(alias)?) / s/^/# this line was moved by the build process: &/ -+/^[[:blank:]]*(attribute|type(alias)?) /s/^/# this line was moved by the build process: &/ - /^[[:blank:]]*(port|node|netif|genfs)con /s/^/# this line was moved by the build process: &/ - /^[[:blank:]]*fs_use_(xattr|task|trans) /s/^/# this line was moved by the build process: &/ - /^[[:blank:]]*sid /s/^/# this line was moved by the build process: &/ -+/^[[:blank:]]*bool /s/^/# this line was moved by the build process: &/ - - :nextline -Index: support/get_type_attr_decl.sed -=================================================================== ---- support/get_type_attr_decl.sed (revision 2248) -+++ support/get_type_attr_decl.sed (revision 2249) -@@ -5,7 +5,7 @@ - /require \{/,/} # end require/b nextline - /optional \{/,/} # end optional/b nextline - --/^[[:blank:]]*(attribute|type(alias)?) /{ -+/^[[:blank:]]*(attribute|type(alias)?|bool) /{ - s/^[[:blank:]]+// - p - } diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20080525-r1.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20080525-r1.ebuild deleted file mode 100644 index 167fcccb122f..000000000000 --- a/sec-policy/selinux-base-policy/selinux-base-policy-20080525-r1.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2009 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-20080525-r1.ebuild,v 1.1 2009/09/14 19:28:57 pebenito Exp $ - -IUSE="" - -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" -LICENSE="GPL-2" -SLOT="0" - -KEYWORDS="~amd64 ~x86" - -RDEPEND=">=sys-apps/policycoreutils-1.30.30" -DEPEND="${RDEPEND} - sys-devel/m4 - >=sys-apps/checkpolicy-1.30.12" - -S=${WORKDIR}/ - -src_unpack() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - MOD_CONF_VER="20080525" - - unpack ${A} - -# cd "${S}/refpolicy" -# epatch ${FILESDIR}/${PN}-${PV}.diff - - echo "fs_use_xattr ext4 gen_context(system_u:object_r:fs_t,s0);" \ - >> "${S}/refpolicy/policy/modules/kernel/filesystem.te" - - for i in ${POLICY_TYPES}; do - cp -a "${S}/refpolicy" "${S}/${i}" - - cp "${FILESDIR}/modules.conf.${i}.${MOD_CONF_VER}" \ - "${S}/${i}/policy/modules.conf" \ - || die "failed to set up modules.conf" - sed -i -e '/^QUIET/s/n/y/' -e '/^MONOLITHIC/s/y/n/' \ - -e "/^NAME/s/refpolicy/$i/" "${S}/${i}/build.conf" \ - || die "build.conf setup failed." - - echo "DISTRO = gentoo" >> "${S}/${i}/build.conf" - - 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." - - # add compat - sed -i -e '/user_u/s/user_r/user_r system_r/' "${S}/${i}/policy/users" \ - || die "targeted user compat failed." - fi - done -} - -src_compile() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - for i in ${POLICY_TYPES}; do - cd "${S}/${i}" - - make base || die "${i} compile failed" - done -} - -src_install() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - 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" - done - - dodoc doc/Makefile.example doc/example.{te,fc,if} - - insinto /etc/selinux - doins "${FILESDIR}/config" -} - -pkg_postinst() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - if has "loadpolicy" $FEATURES ; then - for i in ${POLICY_TYPES}; do - einfo "Inserting base module into ${i} module store." - - cd "/usr/share/selinux/${i}" - semodule -s "${i}" -b base.pp - done - else - echo - echo - eerror "Policy has not been loaded. It is strongly suggested" - eerror "that the policy be loaded before continuing!!" - echo - einfo "Automatic policy loading can be enabled by adding" - einfo "\"loadpolicy\" to the FEATURES in make.conf." - echo - echo - ebeep 4 - epause 4 - fi -} diff --git a/sec-policy/selinux-base-policy/selinux-base-policy-20080525.ebuild b/sec-policy/selinux-base-policy/selinux-base-policy-20080525.ebuild deleted file mode 100644 index 1bc47800a03f..000000000000 --- a/sec-policy/selinux-base-policy/selinux-base-policy-20080525.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2009 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-20080525.ebuild,v 1.3 2009/08/14 21:19:21 pebenito Exp $ - -IUSE="" - -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" -LICENSE="GPL-2" -SLOT="0" - -#KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~mips ~alpha" -KEYWORDS="amd64 x86" - -RDEPEND=">=sys-apps/policycoreutils-1.30.30" -DEPEND="${RDEPEND} - sys-devel/m4 - >=sys-apps/checkpolicy-1.30.12" - -S=${WORKDIR}/ - -src_unpack() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - MOD_CONF_VER="20080525" - - unpack ${A} - -# cd "${S}/refpolicy" -# epatch ${FILESDIR}/${PN}-${PV}.diff - - for i in ${POLICY_TYPES}; do - cp -a "${S}/refpolicy" "${S}/${i}" - - cp "${FILESDIR}/modules.conf.${i}.${MOD_CONF_VER}" \ - "${S}/${i}/policy/modules.conf" \ - || die "failed to set up modules.conf" - sed -i -e '/^QUIET/s/n/y/' -e '/^MONOLITHIC/s/y/n/' \ - -e "/^NAME/s/refpolicy/$i/" "${S}/${i}/build.conf" \ - || die "build.conf setup failed." - - echo "DISTRO = gentoo" >> "${S}/${i}/build.conf" - - 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." - - # add compat - sed -i -e '/user_u/s/user_r/user_r system_r/' "${S}/${i}/policy/users" \ - || die "targeted user compat failed." - fi - done -} - -src_compile() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - for i in ${POLICY_TYPES}; do - cd "${S}/${i}" - - make base || die "${i} compile failed" - done -} - -src_install() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - 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" - done - - dodoc doc/Makefile.example doc/example.{te,fc,if} - - insinto /etc/selinux - doins "${FILESDIR}/config" -} - -pkg_postinst() { - [ -z "${POLICY_TYPES}" ] && local POLICY_TYPES="strict targeted" - - if has "loadpolicy" $FEATURES ; then - for i in ${POLICY_TYPES}; do - einfo "Inserting base module into ${i} module store." - - cd "/usr/share/selinux/${i}" - semodule -s "${i}" -b base.pp - done - else - echo - echo - eerror "Policy has not been loaded. It is strongly suggested" - eerror "that the policy be loaded before continuing!!" - echo - einfo "Automatic policy loading can be enabled by adding" - einfo "\"loadpolicy\" to the FEATURES in make.conf." - echo - echo - ebeep 4 - epause 4 - fi -} |