diff options
| -rw-r--r-- | meta/classes/sanity.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 08ab1b7393..cc674909ba 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
| @@ -530,6 +530,16 @@ def check_sanity_version_change(status, d): | |||
| 530 | tmpdir = d.getVar('TMPDIR', True) | 530 | tmpdir = d.getVar('TMPDIR', True) |
| 531 | status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) | 531 | status.addresult(check_create_long_filename(tmpdir, "TMPDIR")) |
| 532 | 532 | ||
| 533 | # Some third-party software apparently relies on chmod etc. being suid root (!!) | ||
| 534 | import stat | ||
| 535 | suid_check_bins = "chown chmod mknod".split() | ||
| 536 | for bin_cmd in suid_check_bins: | ||
| 537 | bin_path = bb.utils.which(os.environ["PATH"], bin_cmd) | ||
| 538 | if bin_path: | ||
| 539 | bin_stat = os.stat(bin_path) | ||
| 540 | if bin_stat.st_uid == 0 and bin_stat.st_mode & stat.S_ISUID: | ||
| 541 | status.addresult('%s has the setuid bit set. This interferes with pseudo and may cause other issues that break the build process.\n' % bin_path) | ||
| 542 | |||
| 533 | # Check that we can fetch from various network transports | 543 | # Check that we can fetch from various network transports |
| 534 | netcheck = check_connectivity(d) | 544 | netcheck = check_connectivity(d) |
| 535 | status.addresult(netcheck) | 545 | status.addresult(netcheck) |
