A Linux Kernel Module (LKM LSM) that demonstrates how to make an LKM non-removable and discusses the complexity of enforcing user creation policies at the kernel level. This module is designed to restrict user creation, allowing only the user operator to be created.
make insmod lms_operator_lkm.ko- Attempting to remove with
rmmodwill fail.