mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
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 <alejandro.franco@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
79de172a93
commit
cd61c1a6c5
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user