diff options
author | Ross Burton <ross@burtonini.com> | 2020-09-28 17:18:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-30 15:03:30 +0100 |
commit | afb863afc342ba09afa280b8b337c078a1d6b287 (patch) | |
tree | 86dd101b9c1b701c0fe42ba51997979edf850857 /bitbake/lib/bb | |
parent | f3b0d3eeaefa4ecbc1c31406201ebc03e5bf1588 (diff) | |
download | poky-afb863afc342ba09afa280b8b337c078a1d6b287.tar.gz |
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/lib/bb')
-rw-r--r-- | bitbake/lib/bb/siggen.py | 3 |
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): | |||
358 | else: | 358 | else: |
359 | sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid] | 359 | sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid] |
360 | 360 | ||
361 | bb.utils.mkdirhier(os.path.dirname(sigfile)) | 361 | with bb.utils.umask(0o002): |
362 | bb.utils.mkdirhier(os.path.dirname(sigfile)) | ||
362 | 363 | ||
363 | data = {} | 364 | data = {} |
364 | data['task'] = task | 365 | data['task'] = task |