ima: fix get_binary_runtime_size()
authorRoberto Sassu <roberto.sassu@huawei.com>
Tue, 16 May 2017 12:53:47 +0000 (14:53 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 21 Jun 2017 18:37:12 +0000 (14:37 -0400)
commite4586c79d4ba24a02f63a17e49207007c3bbdaea
tree92c100579c956bd745aed150c01200ed2c3f362a
parent28a8dc41279de2a8a635df51ad33d3cee7e0c0d1
ima: fix get_binary_runtime_size()

Remove '+ 1' from 'size += strlen(entry->template_desc->name) + 1;',
as the template name is sent to userspace without the '\0' character.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_queue.c