]> git.baikalelectronics.ru Git - kernel.git/commit
evm: prevent passing integrity check if xattr read fails
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 15 Aug 2014 10:49:22 +0000 (13:49 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 8 Sep 2014 21:36:10 +0000 (17:36 -0400)
commit39a58f38e478841bd1edbdda99df3dde960e76f5
tree83a155c205d0bab7821b2a23ffbe2741c3c19cc4
parent2abe4ef04154057bcc2fd4c30782c88a1da2c314
evm: prevent passing integrity check if xattr read fails

This patch fixes a bug, where evm_verify_hmac() returns INTEGRITY_PASS
if inode->i_op->getxattr() returns an error in evm_find_protected_xattrs.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
security/integrity/evm/evm_main.c