Open kitakar5525 opened 5 years ago
I tried loading gzip compressed module on a working chromeos:
gzip mwifiex_pcie.ko
)sudo depmod
sudo modprobe -r mwifiex_pcie
)sudo modprobe mwifiex_pcie
)And the following is the message on dmesg:
kern :notice: [ 1273.001299] LoadPin: kernel-module old-api-denied obj=<unknown> pid=11317 cmdline="modprobe mwifiex_pcie"
If I disable enforcing loadpin (sudo echo 0 | sudo tee /proc/sys/kernel/loadpin/enforce
), it loaded:
LoadPin: kernel-module old-api-pinning-ignored obj=<unknown> pid=22313 cmdline="modprobe mwifiex_pcie"
Related code: https://github.com/torvalds/linux/blob/caffb99b6929f41a69edbb5aef3a359bf45f3315/security/loadpin/loadpin.c#L131-L140
Further search revealed that currently the LoadPin module can't handle compressed modules...
I can compress the modules:
but Chromium OS will not load the compressed modules (fail to boot).