summaryrefslogtreecommitdiffstats
path: root/Documentation/security/IMA-templates.txt
diff options
context:
space:
mode:
authorRoberto Sassu2014-10-13 14:08:41 +0200
committerMimi Zohar2014-10-13 14:39:02 +0200
commit1bd7face74391ddfc568b3e638f156da1ed77aa6 (patch)
tree9bf69f4d988df8c89e7405b6a52c17924536abbb /Documentation/security/IMA-templates.txt
parentima: don't allocate a copy of template_fmt in template_desc_init_fields() (diff)
downloadkernel-qcow2-linux-1bd7face74391ddfc568b3e638f156da1ed77aa6.tar.gz
kernel-qcow2-linux-1bd7face74391ddfc568b3e638f156da1ed77aa6.tar.xz
kernel-qcow2-linux-1bd7face74391ddfc568b3e638f156da1ed77aa6.zip
ima: allocate field pointers array on demand in template_desc_init_fields()
The allocation of a field pointers array is moved at the end of template_desc_init_fields() and done only if the value of the 'fields' and 'num_fields' parameters is not NULL. For just validating a template format string, retrieved template field pointers are placed in a temporary array. Changelog: - v3: - do not check in this patch if 'fields' and 'num_fields' are NULL (suggested by Mimi Zohar) Signed-off-by: Roberto Sassu <roberto.sassu@polito.it> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'Documentation/security/IMA-templates.txt')
0 files changed, 0 insertions, 0 deletions