From cd61c1a6c5c4b27cfda837ec955a97c95dfa20c3 Mon Sep 17 00:00:00 2001 From: Alex Franco Date: Fri, 28 Aug 2015 17:34:04 -0500 Subject: Fix mode +st on TMPDIR when creating it A sanity check fails when TMPDIR has setuid, setgid set. It was proposed to fix this on TMPDIR creation instead of failing with a sanity test only. This patch handles removal of those special bits (and additonally, the sticky bit) from BUILDDIR and TMPDIR when these directories are created. [YOCTO #7669] (From OE-Core rev: 8236d57439640a185c0226312cd4903a3ce2f53b) Signed-off-by: Alex Franco Signed-off-by: Richard Purdie --- scripts/oe-setup-builddir | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/oe-setup-builddir') diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index add0b50e25..f5b7e4e2d0 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir @@ -24,6 +24,7 @@ if [ -z "$BUILDDIR" ]; then fi mkdir -p "$BUILDDIR/conf" +chmod -R -st "$BUILDDIR" if [ ! -d "$BUILDDIR" ]; then echo >&2 "Error: The builddir ($BUILDDIR) does not exist!" -- cgit v1.2.3-54-g00ecf