android_kernel_sony_sdm845/security/integrity/ima
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Roberto Sassu ff0ad9d345 ima: Don't ignore errors from crypto_shash_update()
commit 60386b854008adc951c470067f90a2d85b5d520f upstream.

Errors returned by crypto_shash_update() are not checked in
ima_calc_boot_aggregate_tfm() and thus can be overwritten at the next
iteration of the loop. This patch adds a check after calling
crypto_shash_update() and returns immediately if the result is not zero.

Cc: stable@vger.kernel.org
Fixes: 3323eec921 ("integrity: IMA as an integrity service provider")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-29 09:05:32 +01:00
..
ima.h ima: Fix ima digest hash table key calculation 2020-06-20 10:24:19 +02:00
ima_api.c ima: always measure and audit files in policy 2018-12-01 09:44:26 +01:00
ima_appraise.c ima: re-introduce own integrity cache lock 2018-12-01 09:44:26 +01:00
ima_crypto.c ima: Don't ignore errors from crypto_shash_update() 2020-10-29 09:05:32 +01:00
ima_fs.c ima: Fix return value of ima_write_policy() 2020-05-27 16:41:40 +02:00
ima_init.c ima: include pcr for each measurement log entry 2016-06-30 01:14:21 -04:00
ima_main.c ima: re-introduce own integrity cache lock 2018-12-01 09:44:26 +01:00
ima_mok.c IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00
ima_policy.c ima: Directly assign the ima_default_policy pointer to ima_rules 2020-06-20 10:24:19 +02:00
ima_queue.c ima: extend the measurement entry specific pcr 2016-06-30 01:14:22 -04:00
ima_template.c ima: separate 'security.ima' reading functionality from collect 2016-02-18 17:13:32 -05:00
ima_template_lib.c ima: separate 'security.ima' reading functionality from collect 2016-02-18 17:13:32 -05:00
ima_template_lib.h ima: wrap event related data to the new ima_event_data structure 2015-05-21 13:59:28 -04:00
Kconfig IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00
Makefile IMA: Use the the system trusted keyrings instead of .ima_mok 2016-04-11 22:49:15 +01:00