Hi all,
I am wondering of Linux modules.
Would compiling in static in the kernel all my modules and then blocking module loading in my kernel improve security of my host ?
Thanks
echo 1 > /proc/sys/kernel/grsecurity/disable_modules
cormander wrote:Keep the core kernel LKM enabled. There is a grsecurity option to disable loading of kernel modules, and when combined with the grsecurity option to enabled grsecurity SYSCTL options, makes you able to load modules (like from your initrd) until do run this command:
- Code: Select all
echo 1 > /proc/sys/kernel/grsecurity/disable_modules
sysctl -w kernel.grsecurity.disable_modules=1