powerpc: expose secure variables to userspace via sysfs
PowerNV secure variables, which store the keys used for OS kernel verification, are managed by the firmware. These secure variables need to be accessed by the userspace for addition/deletion of the certificates. This patch adds the sysfs interface to expose secure variables for PowerNV secureboot. The users shall use this interface for manipulating the keys stored in the secure variables. Signed-off-by:Nayna Jain <nayna@linux.ibm.com> Reviewed-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Eric Richter <erichte@linux.ibm.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1573441836-3632-3-git-send-email-nayna@linux.ibm.com
Showing
- Documentation/ABI/testing/sysfs-secvar 46 additions, 0 deletionsDocumentation/ABI/testing/sysfs-secvar
- arch/powerpc/Kconfig 11 additions, 0 deletionsarch/powerpc/Kconfig
- arch/powerpc/kernel/Makefile 1 addition, 0 deletionsarch/powerpc/kernel/Makefile
- arch/powerpc/kernel/secvar-sysfs.c 248 additions, 0 deletionsarch/powerpc/kernel/secvar-sysfs.c
Loading
Please register or sign in to comment