]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: set mode explicitly when creating directories in sstate-cache
authorRoss Burton <ross@burtonini.com>
Mon, 28 Sep 2020 16:19:00 +0000 (17:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Sep 2020 14:01:46 +0000 (15:01 +0100)
When creating directories in the sstate-cache, explicitly set the mode
passed to mkdir to 0775 so that the directories are group writable, as
otherwise they cannot be shared with other users.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 66a96a76032fac31c1eaf6e9a20657e4ab3f8b0e..a8ae75101de47798040966c12c9e90737f4bde14 100644 (file)
@@ -787,7 +787,7 @@ sstate_create_package () {
                return
        fi
 
-       mkdir -p `dirname ${SSTATE_PKG}`
+       mkdir --mode=0775 -p `dirname ${SSTATE_PKG}`
        TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
 
        # Use pigz if available