-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign out of tree modules with modsign feature #82
Comments
While I am waiting your feedback I have the following class in my image layer as a workaround:
|
We haven't tested signing of out of tree modules before. I think it is not supported at the moment. |
I can confirm your that it seems it is not supported (at least with kirkstone branch which is the one I have to use by now). Every module recipe inheriting from 'module' poky's bbclass is not signed by default. There is not very much information about it. I have found the following links:
I think that this feature is something that meta-secure-core/meta-integrity layer should support somewhere in time. IMHO normal kernel module recipes should not need any change and the signing process should be automatic just using 'modsign' feature. My workaround works well but it is assuming that all out of tree modules are in kernel modules 'extra' directory (at least all of them are put there with my different machines). You also need to inherit 'sign-external-modules' in your image recipes to have the post process command working... I don't know what would be the correct thing to do to properly integrating this. |
Hi,
I have successfully integrated 'efi-secure-boot' feature in my images and also was trying to integrate 'modsign' for kernel modules integrity. It works properly for kernel modules which are in-tree but it is not working at all for out of tree modules. All my modules which are out of tree are not signed in the final image. I though that just having modules_install target in out of tree modules' Makefiles would be enough to sign them if CONFIG_MODULE_SIG_ALL is enabled in kernel configuration (which is the defaults when integrating modsign feature) but it looks it is not. Can you please clarify if is this a supported feature for out of tree modules and a possible path to go in order to have this working properly?
Thanks in advance for your time.
The text was updated successfully, but these errors were encountered: