From: Dmitry Kasatkin Date: Fri, 15 Aug 2014 10:28:52 +0000 (+0300) Subject: ima: prevent buffer overflow in ima_alloc_tfm() X-Git-Tag: fixes-against-v3.18-rc2~106^2~12^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23c19e2ca736722a9523b64b07cda7efab7b6c57;p=pandora-kernel.git 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 Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed