summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ed65814be2..1ad663a057 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -514,6 +514,7 @@ def check_sanity_version_change(status, d):
514 import xml.parsers.expat 514 import xml.parsers.expat
515 except ImportError: 515 except ImportError:
516 status.addresult('Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n') 516 status.addresult('Your python is not a full install. Please install the module xml.parsers.expat (python-xml on openSUSE and SUSE Linux).\n')
517 import stat
517 518
518 status.addresult(check_make_version(d)) 519 status.addresult(check_make_version(d))
519 status.addresult(check_tar_version(d)) 520 status.addresult(check_tar_version(d))
@@ -566,6 +567,11 @@ def check_sanity_version_change(status, d):
566 # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) 567 # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS)
567 tmpdir = d.getVar('TMPDIR', True) 568 tmpdir = d.getVar('TMPDIR', True)
568 status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) 569 status.addresult(check_create_long_filename(tmpdir, "TMPDIR"))
570 tmpdirmode = os.stat(tmpdir).st_mode
571 if (tmpdirmode & stat.S_ISGID):
572 status.addresult("TMPDIR is setgid, please don't build in a setgid directory")
573 if (tmpdirmode & stat.S_ISUID):
574 status.addresult("TMPDIR is setuid, please don't build in a setuid directory")
569 575
570 # Some third-party software apparently relies on chmod etc. being suid root (!!) 576 # Some third-party software apparently relies on chmod etc. being suid root (!!)
571 import stat 577 import stat