sys: add sys_load_kernel_init_module boolean (true by default)
sys: add sys_load_kernel_init_module boolean (true by default)

distributions compress their kernel modules by default to save space.

this prevents finit_module() usage and makes kmod fall back to init_module()

init_module() requires a "system module_load" access check on self as opposed to on the kernel module object with finit_module()

since init_module() is most common scenario, set sys_load_kernel_init_module true by default

if you decompress your kernel modules then kmod may be able to use finit_module() automatically and then you can set sys_load_kernel_init_module to false to enforce finer grained access control over who can load what kernel modules

DefenSec/dssp