summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-09-28 17:19:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-30 15:01:51 +0100
commit20d9825ed61bd682ad9a11dc85bc15f767b19eb1 (patch)
tree453f9d9587e93f22bb6c4b601e50961dd3860d92 /meta/classes
parentd73497502425b277284d5db9b1d7db89846cdbbe (diff)
downloadpoky-20d9825ed61bd682ad9a11dc85bc15f767b19eb1.tar.gz
sstate: set mode explicitly when creating directories in sstate-cache
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. (From OE-Core rev: 1b0624dffe1b8496533c86dfed873112c8c0a01b) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 66a96a7603..a8ae75101d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -787,7 +787,7 @@ sstate_create_package () {
787 return 787 return
788 fi 788 fi
789 789
790 mkdir -p `dirname ${SSTATE_PKG}` 790 mkdir --mode=0775 -p `dirname ${SSTATE_PKG}`
791 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX` 791 TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
792 792
793 # Use pigz if available 793 # Use pigz if available