summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorRoberto Sassu <roberto.sassu@huawei.com>2017-05-16 14:53:42 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2017-06-21 14:37:12 -0400
commit47fdee60b47fc2836b256761ab60ada26788b323 (patch)
treefb700aa9baec452a54fd4a68c7a9f7f9b4ceed70 /security/selinux
parentb17fd9ecf854e8f695e911d3ff9e1fe33bb1c76c (diff)
downloadlinux-47fdee60b47fc2836b256761ab60ada26788b323.tar.gz
linux-47fdee60b47fc2836b256761ab60ada26788b323.tar.bz2
linux-47fdee60b47fc2836b256761ab60ada26788b323.zip
ima: use ima_parse_buf() to parse measurements headers
The binary_hdr_v1 and binary_data_v1 structures defined in ima_restore_measurement_list() have been replaced with an array of four ima_field_data structures where pcr, digest, template name and template data lengths and pointers are stored. The length of pcr and digest in the ima_field_data array and the bits in the bitmap are set before ima_parse_buf() is called. The ENFORCE_FIELDS bit is set for all entries except the last one (there is still data to parse), and ENFORCE_BUFEND is set only for the last entry. Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/selinux')
0 files changed, 0 insertions, 0 deletions