summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorPhil Blundell <pb@pbcl.net>2013-04-24 13:07:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:45:06 +0100
commit2895bcf95a1ecb7feea1c6b458d8431cbf2c64f0 (patch)
tree43610952eb6d8534e3df38f3ddfa5d25c5c55258 /meta/classes/sstate.bbclass
parent999302e9d87aee2fe5f171995ee33118e8b30f8c (diff)
downloadpoky-2895bcf95a1ecb7feea1c6b458d8431cbf2c64f0.tar.gz
sstate: Set umask to 002 before packaging runs
Otherwise we might end up creating directories under sstate-cache with whatever random umask has been selected for the task that we're trying to package. This would be a bad thing since it might result in losing group write access for newly created dirs, and/or losing group read access for the sstate files themselves. (From OE-Core rev: d8c4f442c41bf3ac5e064630657cd3fa1b5c43b1) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 67ddc466ce..79d38304fd 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -532,7 +532,11 @@ python sstate_task_postfunc () {
532 sstate_install(shared_state, d) 532 sstate_install(shared_state, d)
533 for intercept in shared_state['interceptfuncs']: 533 for intercept in shared_state['interceptfuncs']:
534 bb.build.exec_func(intercept, d) 534 bb.build.exec_func(intercept, d)
535 omask = os.umask(002)
536 if omask != 002:
537 bb.note("Using umask 002 (not %0o) for sstate packaging" % omask)
535 sstate_package(shared_state, d) 538 sstate_package(shared_state, d)
539 os.umask(omask)
536} 540}
537 541
538 542