Skip to content

Commit 8f44310

Browse files
afreofrpurdie
authored andcommitted
oe-init-build-env: define umask
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> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 5ac1afa commit 8f44310

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oe-init-build-env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ unset OEROOT
5757

5858
[ -z "$BUILDDIR" ] || cd "$BUILDDIR"
5959

60+
# explicitly set relative umask to deal with security hardening
61+
umask u+rwx,g+rx,o+rx

0 commit comments

Comments
 (0)