Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld.so.preload issue when running x32 apps on x64 host #971

Open
djfd opened this issue Dec 12, 2016 · 5 comments
Open

ld.so.preload issue when running x32 apps on x64 host #971

djfd opened this issue Dec 12, 2016 · 5 comments
Labels
enhancement New feature request

Comments

@djfd
Copy link

djfd commented Dec 12, 2016

Hi,

currently this simply does not work. E.g.

Child process initialized
ERROR: ld.so: object '/usr/lib/firejail/libconnect.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
monitoring pid 3

Could you please change build script to produce required x32 libraries on x64 hosts and also add a piece of logic to startup routine to supply right libraries when starting x32 apps...

thanks

@netblue30 netblue30 added the enhancement New feature request label Dec 13, 2016
@netblue30
Copy link
Owner

You are right, currently the libraries are hardcocde to the original build (64bit in this case). I'll set is as an enhancement, thanks.

@djfd
Copy link
Author

djfd commented Dec 13, 2016

that will not be easy, it seems... there are compiled apps, but also there are various shell scripts launchers and it is impossible to know what binaries they will load...

possible need to supply both x32 and x64 libraries in x64 environments...

@netblue30
Copy link
Owner

I'll try to see how far I can go on this one. Building the libraries is not such a problem. I don't know in this moment how to detect what library should be loaded. I am looking at Wine, it starts up as a 64bit executable and then it switches to 32bit.

@djfd
Copy link
Author

djfd commented Dec 14, 2016

it seems the only way to supply both kinds simultaneously?

eg.one can run
firejail... --shell=none bash -c "xterm-x64 & ; untrusted-x32" ))) I am doing so to check what is going on ))

UPD or maybe to use some launch hooks, if there such kind of things in linux
UPD2 this stackexchang question looks very similar

@rusty-snake
Copy link
Collaborator

still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

No branches or pull requests

3 participants