fishinabarrel / linux-kernel-module-rust

Framework for writing Linux kernel modules in safe Rust
GNU General Public License v2.0
1.33k stars 120 forks source link

Enable module signing in tests #272

Closed adamrk closed 4 years ago

adamrk commented 4 years ago

Added the option to sign the kernel modules when testing so that the tests can pass when running locally on a machine with UEFI secure boot enabled. Not sure if this is too specific of a use case or not...

alex commented 4 years ago

Oooh, how fun!

@ojeda do we have a plan for how to do tests in Rust-for-Linux? I'm trying to decide if we should just merge this as-is or do we need a plan for how to do signing with upstream?

ojeda commented 4 years ago

No plan so far -- we probably want to take a look into how to best integrate with the existing kernel testing infrastructure.

Concerning signing for Rust for Linux, I don't think anything is needed. For this repo, though, since it is intended for out-of-tree modules, this could make it easier to test on distro kernels. On the other hand, I assume this would only be used by newcomers to kernel development, and as such I'd really recommend them to get accustomed into building their own kernels and the kernel development process in general. Further, testing on one's live machine should be avoided unless one has a need for it :-)

adamrk commented 4 years ago

Yeah, that makes sense.