I need to register a specific kernel module (https://github.com/504ensicsLabs/LiME) in Ubuntu 18.04
sudo insmod /path/to/lime.ko path=~/dump.raw format=raw
from a python script.
I tried using
os.system() ; subprocess.run()/call()/Popen() - shell=True/False .
I explicitely imported the .bashrc environment and it all failed with unknown symbol in module error while it works from the command line.
The python script runs with root privileges.
What can be the point I am missing ? What can be the difference between subprocess and the direct shell ? Is it linked to the special nature of the module I try to install ?
The error is
insmod: error inserting 'path/to/lime.ko': Unknown symbol in module