]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
sstate: apply proper umask when fetching from SSTATE_MIRROR
authorRasmus Villemoes <ravi@prevas.dk>
Fri, 6 Jun 2025 09:39:05 +0000 (11:39 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jun 2025 10:00:44 +0000 (11:00 +0100)
commita6038553aaef3b88b834a09018c524c4fa41e625
tree181ee5bcdf278c79e364ea9f5fc97f2651c1c367
parent56abe99a953873853c726ee5a6458c4a65298a9c
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.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/sstate.bbclass