diff mbox series

oe-init-build-env: define umask

Message ID 20250310094753.1985294-1-adrian.freihofer@siemens.com
State New
Headers show
Series oe-init-build-env: define umask | expand

Commit Message

Adrian Freihofer March 10, 2025, 9:47 a.m. UTC
If umask is not suitable for bitbake it terminates with:
  ERROR:  OE-core's config sanity checker detected a potential
    misconfiguration.
    Either fix the cause of this error or at your own risk disable
    the checker (see sanity.conf). Following is the list of potential
    problems / advisories:
    Please use a umask which allows a+rx and u+rwx

Set the umask flags in the oe-init-build-env script to prevent from this
error.

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 oe-init-build-env | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/oe-init-build-env b/oe-init-build-env
index 82382f27078..5d830455f74 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -57,3 +57,5 @@  unset OEROOT
 
 [ -z "$BUILDDIR" ] || cd "$BUILDDIR"
 
+# explicitly set relative umask to deal with security hardening
+umask u+rwx,g+rx,o+rx