)]}'
{
  "commit": "1ea973df6e2166d1a576cabe5d08925d3261ff9d",
  "tree": "7e17b50d0a5cb7c630bd404c4a51727042f71438",
  "parents": [
    "6d94809af6b0830c4dfcad661535a5939bcb8a7d"
  ],
  "author": {
    "name": "Roberto Sassu",
    "email": "roberto.sassu@huawei.com",
    "time": "Wed Mar 25 11:53:50 2020 +0100"
  },
  "committer": {
    "name": "Mimi Zohar",
    "email": "zohar@linux.ibm.com",
    "time": "Sun Apr 19 22:03:39 2020 -0400"
  },
  "message": "ima: Calculate and extend PCR with digests in ima_template_entry\n\nThis patch modifies ima_calc_field_array_hash() to calculate a template\ndigest for each allocated PCR bank and SHA1. It also passes the tpm_digest\narray of the template entry to ima_pcr_extend() or in case of a violation,\nthe pre-initialized digests array filled with 0xff.\n\nPadding with zeros is still done if the mapping between TPM algorithm ID\nand crypto ID is unknown.\n\nThis patch calculates again the template digest when a measurement list is\nrestored. Copying only the SHA1 digest (due to the limitation of the\ncurrent measurement list format) is not sufficient, as hash collision\ndetection will be done on the digest calculated with the IMA default hash\nalgorithm.\n\nSigned-off-by: Roberto Sassu \u003croberto.sassu@huawei.com\u003e\nSigned-off-by: Mimi Zohar \u003czohar@linux.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ab1c05ad13148289a5727612965f86f64e959be0",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima_crypto.c",
      "new_id": "a94972d3f929ad853d4a4a95c3bff50d34798b5e",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima_crypto.c"
    },
    {
      "type": "modify",
      "old_id": "49db71c200b45bf917751dde12b169ae12985229",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima_queue.c",
      "new_id": "82a9ca43b98971f18f0e1eba16e403d2f5c729a9",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima_queue.c"
    },
    {
      "type": "modify",
      "old_id": "de84252e65e98d1c4cb8be30148b0234775335e9",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima_template.c",
      "new_id": "5a2def40a733702cf60bd2bdb970df5c1d7902fd",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima_template.c"
    }
  ]
}
