Improve isELF, gets triggered by ELF anywhere in pathname
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib/oe/package.py: Expose is_elfmeta/ | +54 | 1 reply | |
| 2/5 | package.bbclass: Make use of common is_elf functionmeta/ | +9 | 0 replies | |
| 3/5 | lib/oe/package.py: is_elf: Don't let filename influence filetypemeta/ | +1 | 0 replies | |
| 4/5 | lib/oe/package.py: is_elf: Disallow shell specials to be expandedmeta/ | +1 | 0 replies | |
| 5/5 | lib/oe/package.py: is_elf: Make it less prone to false positivesmeta/ | +5 | 12 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Improve isELF, gets triggered by ELF anywhere in pathname
If the substring "ELF" is found anywhere in the pathname, the isELF function would identify the file as an ELF file. The function could also be used to execute arbitrary shell commands as the user running bitbake, since the file execution allows processing of shell meta characters like variable expansion.
The isELF function has been copied and was until this patchset available from two locations, one in lib/oe/package.py and one in package.bbclass. The two functions had diverged. This is changed so that one common implementation is used.
Olof Johansson (5):
lib/oe/package.py: Expose is_elf
package.bbclass: Make use of common is_elf function lib/oe/package.py: is_elf: Don't let filename influence filetype lib/oe/package.py: is_elf: Disallow shell specials to be expanded lib/oe/package.py: is_elf: Make it less prone to false positives
meta/classes/package.bbclass | 40 +++++--------------- meta/lib/oe/package.py | 88 +++++++++++++++++++++++++++----------------- 2 files changed, 63 insertions(+), 65 deletions(-)
Signature · 1 line
2.11.0