Skip to content

Improve isELF, gets triggered by ELF anywhere in pathname

Olof Johansson openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/oe/package.py: Expose is_elfmeta/lib/oe/package.py+54 -341 reply
2/5package.bbclass: Make use of common is_elf functionmeta/classes/package.bbclass+9 -310 replies
3/5lib/oe/package.py: is_elf: Don't let filename influence filetypemeta/lib/oe/package.py+1 -10 replies
4/5lib/oe/package.py: is_elf: Disallow shell specials to be expandedmeta/lib/oe/package.py+1 -10 replies
5/5lib/oe/package.py: is_elf: Make it less prone to false positivesmeta/lib/oe/package.py+5 -512 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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