summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sanity.bbclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 2eb744fb7d..34f86180df 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -839,9 +839,12 @@ def check_sanity_everybuild(status, d):
839 else: 839 else:
840 bb.utils.mkdirhier(tmpdir) 840 bb.utils.mkdirhier(tmpdir)
841 # Remove setuid, setgid and sticky bits from TMPDIR 841 # Remove setuid, setgid and sticky bits from TMPDIR
842 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID) 842 try:
843 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID) 843 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISUID)
844 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX) 844 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISGID)
845 os.chmod(tmpdir, os.stat(tmpdir).st_mode & ~ stat.S_ISVTX)
846 except OSError:
847 bb.warn("Unable to chmod TMPDIR: %s" % tmpdir)
845 with open(checkfile, "w") as f: 848 with open(checkfile, "w") as f:
846 f.write(tmpdir) 849 f.write(tmpdir)
847 850