]> git.baikalelectronics.ru Git - kernel.git/commit
integrity: define a new function integrity_read_file()
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Wed, 5 Nov 2014 15:01:12 +0000 (17:01 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 18 Nov 2014 04:09:18 +0000 (23:09 -0500)
commitef7c845230abc4a47ffd45f183bb5078e5139c87
tree2dabccd9c08945c45c701bb42c02959644011066
parent294fec4b887e4ee0bdca4f49e72cc82acce2ffa4
integrity: define a new function integrity_read_file()

This patch defines a new function called integrity_read_file()
to read file from the kernel into a buffer. Subsequent patches
will read a file containing the public keys and load them onto
the IMA keyring.

This patch moves and renames ima_kernel_read(), the non-security
checking version of kernel_read(), to integrity_kernel_read().

Changes in v3:
* Patch descriptions improved (Mimi)
* Add missing cast (kbuild test robot)

Changes in v2:
* configuration option removed
* function declared as '__init'

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/iint.c
security/integrity/ima/ima_crypto.c
security/integrity/integrity.h