[FS#909] runas wrapper executes programs using wrong interpreter

LEDE Bugs lede-bugs at lists.infradead.org
Fri May 4 18:07:06 PDT 2018


The following task has a new comment added:

FS#909 - runas wrapper executes programs using wrong interpreter
User who did this - Kirill Elagin (kirelagin)

----------
> The failing command line looks weird... why two space separated arguments to –library-path

Why two arguments? `--library-path lib/` is the library path and then comes the executable that we run and its arguments. The failing line is exactly the one that existing wrappers use (and they are failing for me).

The change you linked did get included into 17.01.4, right? I am trying to generate a 17.01.4 image and it was failing for me with exactly the same `mksquashfs4` error as in my example (not being able to find `libz.so`). I replaced the failing one with the top one (which skips `lib/runas`) and the image was generated successfully. Well, “successfully” might not be the right word here, because it completely bricked my router and I am still trying to understand what when wrong, because there were no errors from the generation process :(.

Anyway, what I see is that all wrappers in `lede-imagebuilder-17.01.4-ar71xx-generic.Linux-x86_64/staging_dir/host/bin` go through `lib/runas`. I’m sorry if I originally didn’t make it clear enough that I was talking specifically about the image generator all this time.
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=909#comment4695



More information about the lede-bugs mailing list