summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2020-09-28 17:18:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-30 15:03:30 +0100
commitafb863afc342ba09afa280b8b337c078a1d6b287 (patch)
tree86dd101b9c1b701c0fe42ba51997979edf850857 /bitbake
parentf3b0d3eeaefa4ecbc1c31406201ebc03e5bf1588 (diff)
downloadpoky-afb863afc342ba09afa280b8b337c078a1d6b287.tar.gz
poky-afb863afc342ba09afa280b8b337c078a1d6b287.tar.bz2
poky-afb863afc342ba09afa280b8b337c078a1d6b287.zip
bitbake: siggen: use correct umask when writing siginfo
We try to write sstate with group-write permissions so that sstate-cache can be shared between multiple users. However the siginfo files are created in various tasks which may set their own umask (such as do_populate_sysroot, 0022). This results in no group write permission on the intermediate directories, which is fatal when sharing a cache. Fix this by wrapping the siginfo mkdir in a umask change to 0002. (Bitbake rev: 75d9ef04a908e366633b255d23ab3275f6860d3a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/siggen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 1456324a70..86e0e16f39 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -358,7 +358,8 @@ class SignatureGeneratorBasic(SignatureGenerator):
else:
sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid]
- bb.utils.mkdirhier(os.path.dirname(sigfile))
+ with bb.utils.umask(0o002):
+ bb.utils.mkdirhier(os.path.dirname(sigfile))
data = {}
data['task'] = task