diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-12-06 16:35:43 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-12-06 16:35:59 +0100 |
commit | ec9a316d0b693f53aeb6b64b2d3e25815c5f7f5e (patch) | |
tree | 6ae6c75b6f818709ba26be4dacc77017f5cbfabc /sys-kernel/genkernel | |
parent | dev-util/catalyst: Stabilize 3.0.8 (diff) | |
download | gentoo-ec9a316d0b693f53aeb6b64b2d3e25815c5f7f5e.tar.gz gentoo-ec9a316d0b693f53aeb6b64b2d3e25815c5f7f5e.tar.bz2 gentoo-ec9a316d0b693f53aeb6b64b2d3e25815c5f7f5e.zip |
sys-kernel/genkernel: Improve SELinux compatibility
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'sys-kernel/genkernel')
-rw-r--r-- | sys-kernel/genkernel/files/genkernel-4.0.0-improve-selinux-compatibility.patch | 54 | ||||
-rw-r--r-- | sys-kernel/genkernel/genkernel-4.0.0-r1.ebuild (renamed from sys-kernel/genkernel/genkernel-4.0.0.ebuild) | 2 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-kernel/genkernel/files/genkernel-4.0.0-improve-selinux-compatibility.patch b/sys-kernel/genkernel/files/genkernel-4.0.0-improve-selinux-compatibility.patch new file mode 100644 index 000000000000..a61ba8a0eefa --- /dev/null +++ b/sys-kernel/genkernel/files/genkernel-4.0.0-improve-selinux-compatibility.patch @@ -0,0 +1,54 @@ +From a611a39cabab9836b51d1fc4326c3747cbdcd29a Mon Sep 17 00:00:00 2001 +From: Mark Wright <gienah@gentoo.org> +Date: Fri, 6 Dec 2019 16:23:51 +0100 +Subject: Improve SELinux compatibility + +Closes: https://bugs.gentoo.org/697074 +Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> +--- + gen_funcs.sh | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/gen_funcs.sh b/gen_funcs.sh +index 107f02b..f5dd0cd 100755 +--- a/gen_funcs.sh ++++ b/gen_funcs.sh +@@ -728,7 +728,7 @@ dropbear_create_key() { + + if isTrue "${SANDBOX}" + then +- envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}'" ) ++ envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}:/proc/thread-self/attr/fscreate'" ) + fi + + # set up worker signal handler +@@ -805,7 +805,7 @@ dropbear_generate_key_info_file() { + + if isTrue "${SANDBOX}" + then +- envvars+=( SANDBOX_WRITE="${LOGFILE}:${TEMP}" ) ++ envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}:/proc/thread-self/attr/fscreate'" ) + fi + + # set up worker signal handler +@@ -1397,7 +1397,7 @@ gkbuild() { + + if isTrue "${SANDBOX}" + then +- envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}'" ) ++ envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}:/proc/thread-self/attr/fscreate'" ) + fi + + # set up gkbuild signal handler +@@ -1452,7 +1452,7 @@ unpack() { + + if isTrue "${SANDBOX}" + then +- envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}'" ) ++ envvars+=( "SANDBOX_WRITE='${LOGFILE}:${TEMP}:/proc/thread-self/attr/fscreate'" ) + fi + + # set up unpack signal handler +-- +cgit v1.2.1 + diff --git a/sys-kernel/genkernel/genkernel-4.0.0.ebuild b/sys-kernel/genkernel/genkernel-4.0.0-r1.ebuild index 6f69a282d077..c84640e954fd 100644 --- a/sys-kernel/genkernel/genkernel-4.0.0.ebuild +++ b/sys-kernel/genkernel/genkernel-4.0.0-r1.ebuild @@ -109,6 +109,8 @@ if [[ ${PV} == 9999* ]]; then DEPEND="${DEPEND} app-text/asciidoc" fi +PATCHES=( "${FILESDIR}"/${P}-improve-selinux-compatibility.patch ) + src_unpack() { if [[ ${PV} == 9999* ]]; then git-r3_src_unpack |