This program creates a new kernel module based on original one (motsecurity_sysfs.ko), which overwrites module_hash_verify subroutine with a thing that always return 0. This can be done in more universal and general way, but it seems that i'm too lazy to do it. Usage is quite simple. Compile a program to a binary, called unmagx for example. Then find a place where you can exec a code and run # addr=$(grep module_hash_verify /proc/kallsyms | cut -d ' ' -f 1) # ./unmagx /lib/modules/motsecurity_sysfs.ko ${addr} && (echo something > /sys/security/allowed_mounts && rmmod u) ... gibberish produced by a program ... If everything went ok, you'll be able to load any kernel module from this time till reboot.