summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/buildoptions.py
diff options
context:
space:
mode:
authorChen Qi <qi.chen@windriver.com>2016-02-19 10:38:39 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 00:11:37 +0000
commit4284fdfe5e8cb17fdc75ce6759f27db3bce2b96c (patch)
treeea15d613cbaaea8a7af3769e3096529cc350fcff /meta/lib/oeqa/selftest/buildoptions.py
parent5cd71fe432c9bdfd3ff519543e96e8caa2b7cf6c (diff)
downloadpoky-4284fdfe5e8cb17fdc75ce6759f27db3bce2b96c.tar.gz
insane.bbclass: make the checking stricter for unsafe references in scripts
Previously, the checking for unsafe references is not strict enough. It only checks whether '/usr/' is in the script. As a result, any script containing statements like below will match this check. PATH="/bin:/sbin:/usr/bin:/usr/sbin" However, as we can see, this is actually not an unsafe reference. What we really want to check is something like '/usr/bin/tail', so we should make the checking stricter. This patch solves the QA warning in gzip and nfs-utils. (From OE-Core rev: f818f7359c1a5db2c5c041c42eecb9f0434d9800) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/buildoptions.py')
0 files changed, 0 insertions, 0 deletions