paultag / go-modprobe

load and unload kernel modules
MIT License
33 stars 7 forks source link

Name() is broken for compressed modules #6

Open stv0g opened 2 years ago

stv0g commented 2 years ago

Some distros deliver LZMA-compressed kernel modules which the current elf parser does not handle and silently discards.

sweetbbak commented 8 months ago

sent a PR https://github.com/paultag/go-modprobe/pull/9 the only thing that sucks is that its considerably slower than native modprobe. I read the source code for modprobe and I don't think they read every kernel module and instead use "modules.dep.bin"

but for now, it works. Im doing more testing