s390/pkey: Introduce pkey kernel module
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 2 Nov 2016 13:37:20 +0000 (14:37 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Feb 2017 09:06:40 +0000 (10:06 +0100)
commite80d4af0a320972aac58e2004d0ba4e44ef4c5c7
tree551dffc1e632d0a2c49a04079be59350e6a7f15d
parenta1d001e26d5386c934345dc91f16b530e352f8d7
s390/pkey: Introduce pkey kernel module

This patch introcudes a new kernel module pkey which is providing
protected key handling and management functions. The pkey API is
available within the kernel for other s390 specific code to create
and manage protected keys. Additionally the functions are exported
to user space via IOCTL calls. The implementation makes extensive
use of functions provided by the zcrypt device driver. For
generating protected keys from secure keys there is also a CEX
coprocessor card needed.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/configs/default_defconfig
arch/s390/configs/performance_defconfig
arch/s390/defconfig
arch/s390/include/asm/pkey.h [new file with mode: 0644]
arch/s390/include/uapi/asm/Kbuild
arch/s390/include/uapi/asm/pkey.h [new file with mode: 0644]
drivers/crypto/Kconfig
drivers/s390/crypto/Makefile
drivers/s390/crypto/pkey_api.c [new file with mode: 0644]