aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.65k stars 578 forks source link

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

Closed cosad3s closed 1 year ago

cosad3s commented 1 year ago

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

newtondev commented 1 year ago

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 commented 1 year ago

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