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

With release: "error while loading shared libraries: libz.so.1: failed to map segment from shared object" #522

Closed
cosad3s opened this issue Oct 6, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cosad3s
Copy link

cosad3s commented Oct 6, 2022

What happened

I downloaded the last release of kube-hunter: https://github.com/aquasecurity/kube-hunter/releases/tag/v0.6.8.

On launching on my remote machine, I get the error: ./kube-hunter: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Expected behavior

Successfull launch.

Notes

  • Python version: 3.6.8
  • Machine not connected to Internet
  • Red Hat Enterprise Linux release 8.4 - Linux version 4.18.0-372.13.1.el8_6.x86_64
@cosad3s cosad3s added the bug Something isn't working label Oct 6, 2022
@newtondev
Copy link

newtondev commented Oct 6, 2022

To resolve this issue, please try one of the following methods.

Remount /TMP with exec permissions using this command:
sudo mount /tmp -o remount,exec

OR

Set the TMP directory to a different directory where you can add exec permissions:
TMP=/home/<username>/<directory>

OR

sudo mount /tmp -o remount,exec
Put export TMPDIR=$HOME/tmp on the ~/.bashrc file

Possibly SELinux.

@cosad3s
Copy link
Author

cosad3s commented Oct 6, 2022

Perfect! Yes it was because of the noexec on /tmp. export TMPDIR=$HOME/tmp is a perfect workaround :) Thank you very much !

@cosad3s cosad3s closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants