linux-next/security/integrity/ima
Sascha Hauer f5e1040196 ima: always return negative code for error
integrity_kernel_read() returns the number of bytes read. If this is
a short read then this positive value is returned from
ima_calc_file_hash_atfm(). Currently this is only indirectly called from
ima_calc_file_hash() and this function only tests for the return value
being zero or nonzero and also doesn't forward the return value.
Nevertheless there's no point in returning a positive value as an error,
so translate a short read into -EINVAL.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
2019-08-05 18:40:27 -04:00
..
ima_api.c ima: Store the measurement again when appraising a modsig 2019-08-05 18:40:26 -04:00
ima_appraise.c ima: Collect modsig 2019-08-05 18:40:24 -04:00
ima_crypto.c ima: always return negative code for error 2019-08-05 18:40:27 -04:00
ima_fs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441 2019-06-05 17:37:17 +02:00
ima_init.c Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity 2019-07-08 20:28:59 -07:00
ima_kexec.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
ima_main.c ima: Store the measurement again when appraising a modsig 2019-08-05 18:40:26 -04:00
ima_modsig.c ima: Define ima-modsig template 2019-08-05 18:40:25 -04:00
ima_mok.c Revert "Merge tag 'keys-acl-20190703' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs" 2019-07-10 18:43:43 -07:00
ima_policy.c ima: Define ima-modsig template 2019-08-05 18:40:25 -04:00
ima_queue.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441 2019-06-05 17:37:17 +02:00
ima_template_lib.c ima: Define ima-modsig template 2019-08-05 18:40:25 -04:00
ima_template_lib.h ima: Define ima-modsig template 2019-08-05 18:40:25 -04:00
ima_template.c ima: Store the measurement again when appraising a modsig 2019-08-05 18:40:26 -04:00
ima.h ima: Store the measurement again when appraising a modsig 2019-08-05 18:40:26 -04:00
Kconfig ima: Implement support for module-style appended signatures 2019-08-05 18:40:23 -04:00
Makefile ima: Add modsig appraise_type option for module-style appended signatures 2019-08-05 18:40:21 -04:00