From e718e1dc1781b3bb5cd80233c217aea3b0e46755 Mon Sep 17 00:00:00 2001 From: Magnus Granberg Date: Sat, 7 Oct 2017 16:32:35 +0200 Subject: [PATCH] profiles: add features/hardened for the new 17.0 profile --- profiles/features/hardened/amd64/eapi | 1 + profiles/features/hardened/amd64/make.defaults | 5 +++++ profiles/features/hardened/amd64/no-multilib/eapi | 1 + .../hardened/amd64/no-multilib/make.defaults | 6 ++++++ .../features/hardened/amd64/no-multilib/parent | 1 + profiles/features/hardened/amd64/package.mask | 11 +++++++++++ profiles/features/hardened/amd64/package.use | 12 ++++++++++++ .../features/hardened/amd64/package.use.force | 7 +++++++ profiles/features/hardened/amd64/package.use.mask | 8 ++++++++ profiles/features/hardened/amd64/parent | 1 + profiles/features/hardened/eapi | 1 + profiles/features/hardened/make.defaults | 15 +++++++++++++++ profiles/features/hardened/package.mask | 15 +++++++++++++++ profiles/features/hardened/package.use.force | 7 +++++++ profiles/features/hardened/package.use.mask | 11 +++++++++++ profiles/features/hardened/packages | 6 ++++++ profiles/features/hardened/use.force | 6 ++++++ profiles/features/hardened/use.mask | 13 +++++++++++++ 18 files changed, 127 insertions(+) create mode 100644 profiles/features/hardened/amd64/eapi create mode 100644 profiles/features/hardened/amd64/make.defaults create mode 100644 profiles/features/hardened/amd64/no-multilib/eapi create mode 100644 profiles/features/hardened/amd64/no-multilib/make.defaults create mode 100644 profiles/features/hardened/amd64/no-multilib/parent create mode 100644 profiles/features/hardened/amd64/package.mask create mode 100644 profiles/features/hardened/amd64/package.use create mode 100644 profiles/features/hardened/amd64/package.use.force create mode 100644 profiles/features/hardened/amd64/package.use.mask create mode 100644 profiles/features/hardened/amd64/parent create mode 100644 profiles/features/hardened/eapi create mode 100644 profiles/features/hardened/make.defaults create mode 100644 profiles/features/hardened/package.mask create mode 100644 profiles/features/hardened/package.use.force create mode 100644 profiles/features/hardened/package.use.mask create mode 100644 profiles/features/hardened/packages create mode 100644 profiles/features/hardened/use.force create mode 100644 profiles/features/hardened/use.mask diff --git a/profiles/features/hardened/amd64/eapi b/profiles/features/hardened/amd64/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/hardened/amd64/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/hardened/amd64/make.defaults b/profiles/features/hardened/amd64/make.defaults new file mode 100644 index 000000000000..10d89c63ebf8 --- /dev/null +++ b/profiles/features/hardened/amd64/make.defaults @@ -0,0 +1,5 @@ +# Copyright 1999-2012 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 + +USE="justify -pic" + diff --git a/profiles/features/hardened/amd64/no-multilib/eapi b/profiles/features/hardened/amd64/no-multilib/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/hardened/amd64/no-multilib/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/hardened/amd64/no-multilib/make.defaults b/profiles/features/hardened/amd64/no-multilib/make.defaults new file mode 100644 index 000000000000..1dd0a2a0f7e0 --- /dev/null +++ b/profiles/features/hardened/amd64/no-multilib/make.defaults @@ -0,0 +1,6 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# We don't need to have pic on +USE="-pic" + diff --git a/profiles/features/hardened/amd64/no-multilib/parent b/profiles/features/hardened/amd64/no-multilib/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/features/hardened/amd64/no-multilib/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/features/hardened/amd64/package.mask b/profiles/features/hardened/amd64/package.mask new file mode 100644 index 000000000000..76612099e7c4 --- /dev/null +++ b/profiles/features/hardened/amd64/package.mask @@ -0,0 +1,11 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Cernlib has address space issues on amd64 and package is no +# longer supported by upstream. Thus masking it and its reverse +# dependencies. +# See bug 426764. +sci-physics/cernlib +sci-physics/cernlib-montecarlo +sci-physics/geant:3 +sci-physics/paw diff --git a/profiles/features/hardened/amd64/package.use b/profiles/features/hardened/amd64/package.use new file mode 100644 index 000000000000..0cef7f8d1d92 --- /dev/null +++ b/profiles/features/hardened/amd64/package.use @@ -0,0 +1,12 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Magnus Granberg (14 Jan, 2015) +# We need to have the pic flag on. +# Bugs 490276, 513464, 523736 and 512208. +media-libs/x264 pic +media-video/ffmpeg pic +media-video/libav pic +>=media-libs/mesa-10.1.6 pic +media-libs/libpostproc pic +>=media-libs/xvid-1.3.3 pic diff --git a/profiles/features/hardened/amd64/package.use.force b/profiles/features/hardened/amd64/package.use.force new file mode 100644 index 000000000000..ef833f2d1b51 --- /dev/null +++ b/profiles/features/hardened/amd64/package.use.force @@ -0,0 +1,7 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Magnus Granberg (14 Jan, 2015) +# We need to have the pic flag on. +# Bugs 358929 +app-emulation/open-vm-tools pic diff --git a/profiles/features/hardened/amd64/package.use.mask b/profiles/features/hardened/amd64/package.use.mask new file mode 100644 index 000000000000..50e34f0e46d0 --- /dev/null +++ b/profiles/features/hardened/amd64/package.use.mask @@ -0,0 +1,8 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Cernlib has address space issues on amd64 and package is no +# longer supported by upstream. Thus masking it and its reverse +# dependencies. +# See bugs 426764, 556612. +=sci-physics/geant-4.9.4* geant3 diff --git a/profiles/features/hardened/amd64/parent b/profiles/features/hardened/amd64/parent new file mode 100644 index 000000000000..f3229c5b9876 --- /dev/null +++ b/profiles/features/hardened/amd64/parent @@ -0,0 +1 @@ +.. diff --git a/profiles/features/hardened/eapi b/profiles/features/hardened/eapi new file mode 100644 index 000000000000..7ed6ff82de6b --- /dev/null +++ b/profiles/features/hardened/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/features/hardened/make.defaults b/profiles/features/hardened/make.defaults new file mode 100644 index 000000000000..f753f571b723 --- /dev/null +++ b/profiles/features/hardened/make.defaults @@ -0,0 +1,15 @@ +# Copyright 1999-2014 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 + +# Jorge Manuel B. S. Vicetto (16 Nov 2011) +# Rename STAGE1_USE to BOOTSTRAP_USE and stack it to the parent value +BOOTSTRAP_USE="${BOOTSTRAP_USE} hardened pax_kernel pic xtpax -jit -orc" + +USE="hardened pax_kernel pic urandom xtpax -fortran -jit -orc" + +# Ian Stakenvicius, 2014-09-03 +# Set a variable just to indicate that the current profile is a hardened one +# This variable can be leveraged in ebuilds for pkg_postinst messages that +# indicate said package is, say, configured in a way that defeats the purpose +# of running hardened. +PROFILE_IS_HARDENED=1 diff --git a/profiles/features/hardened/package.mask b/profiles/features/hardened/package.mask new file mode 100644 index 000000000000..af6a869977fc --- /dev/null +++ b/profiles/features/hardened/package.mask @@ -0,0 +1,15 @@ +# Copyright 1999-2017 Gentoo Foundation. +# Distributed under the terms of the GNU General Public License v2 + +# We need newer then glibc 2.24 +