commit | 23c19e2ca736722a9523b64b07cda7efab7b6c57 | [log] [tgz] |
---|---|---|
author | Dmitry Kasatkin <d.kasatkin@samsung.com> | Fri Aug 15 13:28:52 2014 +0300 |
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | Tue Sep 02 17:03:36 2014 -0400 |
tree | cb0501321b7221aed0bafe9b3b016ba033053a3d | |
parent | 9a8d289fbcb7dfd1fc74959e9930b406e76b2002 [diff] |
ima: prevent buffer overflow in ima_alloc_tfm() This patch fixes the case where the file's signature/hash xattr contains an invalid hash algorithm. Although we can not verify the xattr, we still need to measure the file. Use the default IMA hash algorithm. Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>