Wind-River / meta-secure-core

MIT License
20 stars 23 forks source link

What for is BOOT_KEYS_DIR directory? #44

Closed Dvergatal closed 7 months ago

Dvergatal commented 7 months ago

Hi all, I'm switching from sample keys to user SIGNING_MODEL and according to meta-signing-key/README.md the vital definitions include:

As I'm not using ima DISTRO_FEATURES yet. I'm also not setting IMA_KEYS_DIR only the UEFI_SB_KEYS_DIR and MOK_SB_KEYS_DIR. Now the issue I have occured is that i'm failling to enroll dbx during Automatic Certificate Provision in addition there is an unknown error during loading of LockDown.efi. So my question is what am I missing? Do I need BOOT_KEYS_DIR as well? And what is it being used for?

Because I haven't found any description about it in the documentation. I've seen in the code of user-key-store.bbclass that LockDown.efi is signed by uks_boot_sign which just calls boot_sign... I thought that BOOT_KEYS_DIR is just for grub password isn't it?

Dvergatal commented 7 months ago

OK I have found it but it was well hidden. The LockDown.efi is providing all the uefi sb materials and it is signed by this gpg key. Everything is now clear to me.