xmm7360 / xmm7360-usb-modeswitch

Tools for the Fibocom L850-GL / Intel XMM7360 LTE modem
124 stars 21 forks source link

Ues setpci, which is not available with a lockdown kernel #27

Closed eriktews closed 4 years ago

eriktews commented 4 years ago

The current script uses setpci, which doesn't work with a default Debian setup using Secure Boot. The reason for this is that the kernel uses the lockdown feature, which is automatically enabled on a secure boot system. In lockdown mode, setpci cannot be used.

However I don't see a good way how to fix this. The only thing that is allowed is loading signed kernel modules, so when you could re-implement what setpci does in a custom kernel module, then you could circumvent this restriction and use the script on a system with a kernel lockdown mode.

abrasive commented 4 years ago

https://github.com/juhovh/xmm7360_usb

On 3 January 2020 06:36:39 Erik Tews notifications@github.com wrote:

The current script uses setpci, which doesn't work with a default Debian setup using Secure Boot. The reason for this is that the kernel uses the lockdown feature, which is automatically enabled on a secure boot system. In lockdown mode, setpci cannot be used. However I don't see a good way how to fix this. The only thing that is allowed is loading signed kernel modules, so when you could re-implement what setpci does in a custom kernel module, then you could circumvent this restriction and use the script on a system with a kernel lockdown mode. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

eriktews commented 4 years ago

Thanks, the kernel module looks pretty clean. The only exception is maybe this line where you might need some more error checking: https://github.com/juhovh/xmm7360_usb/blob/master/xmm7360_usb.c#L43

abrasive commented 4 years ago

Good catch! I'm not the author of that one, but I'm sure they'd appreciate a patch :-)