diff options
| author | 2021-03-03 11:28:24 +0800 | |
|---|---|---|
| committer | 2021-03-24 07:14:53 -0400 | |
| commit | 7990ccafaa37dc6d8bb095d4d7cd997e8903fd10 (patch) | |
| tree | d361fb8ba519e1d1c2804e6d7d0ff04657a69284 /include/linux/raid/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | ima: without an IMA policy loaded, return quickly (diff) | |
| download | linux-dev-7990ccafaa37dc6d8bb095d4d7cd997e8903fd10.tar.xz linux-dev-7990ccafaa37dc6d8bb095d4d7cd997e8903fd10.zip | |
ima: Fix the error code for restoring the PCR value
In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a
buffer of type u8, which contains the dumped 32-bit pcr value.
Currently, only the least significant byte is used to restore the pcr
value. We should convert hdr[HDR_PCR].data to a pointer of type u32
before fetching the value to restore the correct pcr value.
Fixes: 47fdee60b47f ("ima: use ima_parse_buf() to parse measurements headers")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'include/linux/raid/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
