commit:     a611a39cabab9836b51d1fc4326c3747cbdcd29a
Author:     Mark Wright <gienah <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 15:23:51 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 15:25:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=a611a39c

Improve SELinux compatibility

Closes: https://bugs.gentoo.org/697074
Signed-off-by: Thomas Deutschmann <whissi <AT> 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

Reply via email to