diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 425d5127ec..e3444d1ba5 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -195,6 +195,17 @@ def check_sanity_tmpdir_change(tmpdir, data): | |||
195 | 195 | ||
196 | # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) | 196 | # Check that TMPDIR isn't on a filesystem with limited filename length (eg. eCryptFS) |
197 | testmsg = check_create_long_filename(tmpdir, "TMPDIR") | 197 | testmsg = check_create_long_filename(tmpdir, "TMPDIR") |
198 | |||
199 | # Some third-party software apparently relies on chmod etc. being suid root (!!) | ||
200 | import stat | ||
201 | suid_check_bins = "chown chmod mknod".split() | ||
202 | for bin_cmd in suid_check_bins: | ||
203 | bin_path = bb.utils.which(os.environ["PATH"], bin_cmd) | ||
204 | if bin_path: | ||
205 | bin_stat = os.stat(bin_path) | ||
206 | if bin_stat.st_uid == 0 and bin_stat.st_mode & stat.S_ISUID: | ||
207 | testmsg = testmsg + '%s has the setuid bit set. This interferes with pseudo and may cause other issues that break the build process.\n' % bin_path | ||
208 | |||
198 | # Check that we can fetch from various network transports | 209 | # Check that we can fetch from various network transports |
199 | errmsg = check_connectivity(data) | 210 | errmsg = check_connectivity(data) |
200 | testmsg = testmsg + check_connectivity(data) | 211 | testmsg = testmsg + check_connectivity(data) |