linux/security/integrity/evm
Colin Ian King 825b8650dc EVM: fix memory leak of temporary buffer 'temp'
The allocation of 'temp' is not kfree'd and hence there is a memory
leak on each call of evm_read_xattrs.  Fix this by kfree'ing it
after copying data from it back to the user space buffer 'buf'.

Detected by CoverityScan, CID#1469386 ("Resource Leak")

Fixes: fa516b66a1 ("EVM: Allow runtime modification of the set of verified xattrs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
2018-05-31 10:13:22 -04:00
..
evm_crypto.c EVM: Allow runtime modification of the set of verified xattrs 2018-05-18 15:34:45 -04:00
evm_main.c EVM: Allow runtime modification of the set of verified xattrs 2018-05-18 15:34:45 -04:00
evm_posix_acl.c ima: fix script messages 2013-10-25 13:17:19 -04:00
evm_secfs.c EVM: fix memory leak of temporary buffer 'temp' 2018-05-31 10:13:22 -04:00
evm.h EVM: turn evm_config_xattrnames into a list 2018-05-18 15:34:36 -04:00
Kconfig EVM: Allow runtime modification of the set of verified xattrs 2018-05-18 15:34:45 -04:00
Makefile evm: posix acls modify i_mode 2011-09-14 15:24:51 -04:00