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

Error: too long environment variables in vifm's subshell #3383

Closed
jose1711 opened this issue Apr 25, 2020 · 3 comments
Closed

Error: too long environment variables in vifm's subshell #3383

jose1711 opened this issue Apr 25, 2020 · 3 comments

Comments

@jose1711
Copy link
Contributor

Describe the bug
I am getting Error: too long environment variables error in console for commands run inside vifm's subshell. Here's one example:

wget https://some_url
Error: too long environment variables

Behavior change on disabling firejail
when wget is run w/ absolute path (hence without firejail) it runs normally.

To Reproduce

  1. run vifm
  2. Esc :shell
  3. wget
  4. observe the error

Expected behavior
It would be great if jailed programs work inside vifm session.

Desktop:

  • Arch Linux, 64bit, current
firejail version 0.9.63

Compile time support:
   - AppArmor support is enabled
   - AppImage support is enabled
   - chroot support is enabled
   - file and directory whitelisting support is enabled
   - file transfer support is enabled
   - firetunnel support is enabled
   - networking support is enabled
   - overlayfs support is enabled
   - private-home support is enabled
   - seccomp-bpf support is enabled
   - user namespace support is enabled
   - X11 sandboxing support is enabled

 firejail-git r6104.17b717ed-1
@rusty-snake
Copy link
Collaborator

FYI: #3325

@matu3ba
Copy link
Contributor

matu3ba commented Apr 25, 2020

FYI: #3325

Either making size of environment variables bigger on risk of stack smashing (I am unsure what is the minimum size for that though),
or clean up your env.

@jose1711
Copy link
Contributor Author

Thanks for pointing this out.
inside vifm

$ env | awk -F= '(length-length($1)) > 4096 {print $1" variable has "(length-length($1))" chars!"}' 
PROMPT variable has 5953 chars!

in "normal" shell session:

PROMPT is not exported

On my system it's caused by a specific combination of oh-my-zsh and vifm customization so I changed it in the configuration. Thank you, closing.

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

3 participants