]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sstate: apply proper umask when fetching from SSTATE_MIRROR
authorRasmus Villemoes <ravi@prevas.dk>
Fri, 27 Jun 2025 07:41:31 +0000 (09:41 +0200)
committerSteve Sakoman <steve@sakoman.com>
Mon, 30 Jun 2025 16:11:01 +0000 (09:11 -0700)
commite56aa6c62e41667d0eeec5a862b7004d21b4da48
treee8516b3a557dcda65f4771f96c18eada29cb60b8
parentcfc49bbb21bade1d6c5ea96759dabf0dac25f79b
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>
(cherry picked from commit a6038553aaef3b88b834a09018c524c4fa41e625)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-global/sstate.bbclass