diff options
author | Chen Qi <qi.chen@windriver.com> | 2016-02-19 10:38:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-04 17:10:59 +0000 |
commit | f818f7359c1a5db2c5c041c42eecb9f0434d9800 (patch) | |
tree | be0e81c73349e2ed40bcf8733849822ce480eb11 /scripts/lib/devtool/sdk.py | |
parent | 092984669d8590627cfb188a0aa00244e22c4671 (diff) | |
download | openembedded-core-f818f7359c1a5db2c5c041c42eecb9f0434d9800.tar.gz openembedded-core-f818f7359c1a5db2c5c041c42eecb9f0434d9800.tar.bz2 openembedded-core-f818f7359c1a5db2c5c041c42eecb9f0434d9800.zip |
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.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
0 files changed, 0 insertions, 0 deletions