Message ID | 1573441836-3632-1-git-send-email-nayna@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | powerpc: expose secure variables to the kernel and userspace | expand |
On 11/10/19 7:10 PM, Nayna Jain wrote: Hi Nayna, > In order to verify the OS kernel on PowerNV systems, secure boot requires > X.509 certificates trusted by the platform. These are stored in secure > variables controlled by OPAL, called OPAL secure variables. In order to > enable users to manage the keys, the secure variables need to be exposed > to userspace. Are you planning to split the patches in this patch set into smaller chunks so that it is easier to code review and also perhaps make it easier when merging the changes? Just a suggestion - but if, folks familiar with this code base don't have any objections, please feel free to ignore my comment. Patch #1 1, opal-api.h which adds the #defines OPAL_SECVAR_ and the API signature. 2, secvar.h then adds secvar_operations struct 3, powerpc/kernel for the Interface definitions 4, powernv/opal-secvar.c for the API implementations 5, powernv/opal-call.c for the API calls 6, powernv/opal.c for the secvar init calls. Patch #2 1, Definitions of attribute functions like backend_show, size_show, etc. 2, secvar_sysfs_load 3, secvar_sysfs_init 4, secvar_sysfs_exit thanks, -lakshmi
Lakshmi Ramasubramanian <nramas@linux.microsoft.com> writes: > On 11/10/19 7:10 PM, Nayna Jain wrote: > > Hi Nayna, > >> In order to verify the OS kernel on PowerNV systems, secure boot requires >> X.509 certificates trusted by the platform. These are stored in secure >> variables controlled by OPAL, called OPAL secure variables. In order to >> enable users to manage the keys, the secure variables need to be exposed >> to userspace. > Are you planning to split the patches in this patch set into smaller > chunks so that it is easier to code review and also perhaps make it > easier when merging the changes? I don't think splitting them would add any value. They're already split into the firmware specific bits (patch 1), and the sysfs parts (patch 2), which is sufficient for me. cheers