diff options
author | Ross Burton <ross@burtonini.com> | 2020-09-28 17:18:59 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-12-10 05:55:55 -1000 |
commit | 8c297c4b42e03d1691b5680083b1f2c8ab8ea50f (patch) | |
tree | 740cb06e8cdcae1af112cc61d5a84a2a188001a6 /bitbake/lib | |
parent | 658a3832def72d6fd904d89e368b13942b477cbd (diff) | |
download | poky-8c297c4b42e03d1691b5680083b1f2c8ab8ea50f.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: c0d60794a32e3f8bbfbbd6800d87ef2782aacf2c)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'bitbake/lib')
-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 26fa7f05ce..9d4f67aa90 100644 --- a/bitbake/lib/bb/siggen.py +++ b/bitbake/lib/bb/siggen.py | |||
@@ -318,7 +318,8 @@ class SignatureGeneratorBasic(SignatureGenerator): | |||
318 | else: | 318 | else: |
319 | sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid] | 319 | sigfile = stampbase + "." + task + ".sigbasedata" + "." + self.basehash[tid] |
320 | 320 | ||
321 | bb.utils.mkdirhier(os.path.dirname(sigfile)) | 321 | with bb.utils.umask(0o002): |
322 | bb.utils.mkdirhier(os.path.dirname(sigfile)) | ||
322 | 323 | ||
323 | data = {} | 324 | data = {} |
324 | data['task'] = task | 325 | data['task'] = task |