Closed eriktews closed 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.
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
Good catch! I'm not the author of that one, but I'm sure they'd appreciate a patch :-)
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.