[GH-ISSUE #2375] LD_PRELOAD failed to map segment from shared object #1583

Closed
opened 2026-05-05 08:14:23 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @damluk on GitHub (Jan 28, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2375

Use case:

firejail --env="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4:$HOME/.local/share/spotify/spotifywm.so" spotify
...
ERROR: ld.so: object '/home/damluk/.local/share/spotify/spotifywm.so' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.

This has worked with 0.9.56. If I can trust git bisect, the first bad commit was a7164cb3

Originally created by @damluk on GitHub (Jan 28, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2375 Use case: ``` firejail --env="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4:$HOME/.local/share/spotify/spotifywm.so" spotify ... ERROR: ld.so: object '/home/damluk/.local/share/spotify/spotifywm.so' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored. ``` This has worked with 0.9.56. If I can trust git bisect, the first bad commit was a7164cb3
Author
Owner

@SkewedZeppelin commented on GitHub (Jan 28, 2019):

Can you try using this?

firejail --ignore='noexec ${HOME}' --env="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4:$HOME/.local/share/spotify/spotifywm.so" /usr/bin/spotify
<!-- gh-comment-id:458266051 --> @SkewedZeppelin commented on GitHub (Jan 28, 2019): Can you try using this? ``` firejail --ignore='noexec ${HOME}' --env="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libcurl.so.4:$HOME/.local/share/spotify/spotifywm.so" /usr/bin/spotify ```
Author
Owner

@damluk commented on GitHub (Jan 28, 2019):

The ignore option helped, thanks!

<!-- gh-comment-id:458271433 --> @damluk commented on GitHub (Jan 28, 2019): The ignore option helped, thanks!
Author
Owner

@SkewedZeppelin commented on GitHub (Jan 29, 2019):

as the commit you linked: noexec before 0.9.58 didn't recursively apply to paths, allowing programs in ~ for example to run when they shouldn't of

I suspect we will see more issues like this popping up over the next few weeks.

<!-- gh-comment-id:458379200 --> @SkewedZeppelin commented on GitHub (Jan 29, 2019): as the commit you linked: noexec before 0.9.58 didn't recursively apply to paths, allowing programs in ~ for example to run when they shouldn't of I suspect we will see more issues like this popping up over the next few weeks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1583
No description provided.