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

Assertion failed: env_get("LD_PRELOAD") == NULL (run_symlink.c: run_symlink: 81) #6532

Open
elde-n opened this issue Nov 5, 2024 · 2 comments

Comments

@elde-n
Copy link

elde-n commented Nov 5, 2024

Description

Having LD_PRELOAD set while trying to run a symlinked firejail application in /usr/local/bin/ will cause a failed assertion

Steps to Reproduce

Steps to reproduce the behavior

  1. Run in bash as root ln -s /usr/bin/firejail /usr/local/bin/foo
  2. Run in bash LD_PRELOAD=1 foo
  3. See error Assertion failed: env_get("LD_PRELOAD") == NULL (run_symlink.c: run_symlink: 81)

Additional context

It would be nice to have an option to ignore/drop the LD_PRELOAD env instead of asserting

@rusty-snake
Copy link
Collaborator

Which firejail version? Is it reproducible with firejail-git?

@elde-n
Copy link
Author

elde-n commented Nov 5, 2024

I'm on version 0.9.72, it's reproducible with latest commit, this is the line causing the assertion https://github.com/netblue30/firejail/blob/master/src/firejail/run_symlink.c#L81

@kmk3 kmk3 changed the title having LD_PRELOAD set globally causes a failed assertion Assertion failed: env_get("LD_PRELOAD") == NULL (run_symlink.c: run_symlink: 81) Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants