diff options
author | Rasmus Villemoes <ravi@prevas.dk> | 2025-06-27 09:41:31 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-07-04 07:50:16 -0700 |
commit | 344bc2f1c273f0c776468c8ac61dfaa06bdd8853 (patch) | |
tree | 52cefed6452b30a5d1b9d450f94d6fce98384361 /scripts/lib/checklayer/context.py | |
parent | 7a6580f84a3be37d2b6af34c1ce99da32af4505b (diff) | |
download | poky-344bc2f1c273f0c776468c8ac61dfaa06bdd8853.tar.gz |
sstate: apply proper umask when fetching from SSTATE_MIRROR
Currently, files and directories created under ${SSTATE_DIR} when
fetching from an sstate mirror are not created with group write,
unlike when the sstate artifacts are generated locally. That's
inconsistent, and problematic when the local sstate dir is shared
among multiple users.
Wrap the fetching in a bb.utils.umask() context manager, and for simplicity
move the mkdir of SSTATE_DIR inside that.
(From OE-Core rev: e56aa6c62e41667d0eeec5a862b7004d21b4da48)
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a6038553aaef3b88b834a09018c524c4fa41e625)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/checklayer/context.py')
0 files changed, 0 insertions, 0 deletions