)]}'
{
  "commit": "a7ed7c60e14df5b986f93549717235b882643e7e",
  "tree": "7e615a0664541d91f99c5875164b335b74fd8d8d",
  "parents": [
    "09ae6345721afbb7cf3e0920209b140cbe7bff0d"
  ],
  "author": {
    "name": "Roberto Sassu",
    "email": "roberto.sassu@polito.it",
    "time": "Mon Dec 02 19:40:34 2013 +0100"
  },
  "committer": {
    "name": "Mimi Zohar",
    "email": "zohar@linux.vnet.ibm.com",
    "time": "Mon Dec 02 20:46:56 2013 -0500"
  },
  "message": "ima: properly free ima_template_entry structures\n\nThe new templates management mechanism records information associated\nto an event into an array of \u0027ima_field_data\u0027 structures and makes it\navailable through the \u0027template_data\u0027 field of the \u0027ima_template_entry\u0027\nstructure (the element of the measurements list created by IMA).\n\nSince \u0027ima_field_data\u0027 contains dynamically allocated data (which length\nvaries depending on the data associated to a selected template field),\nit is not enough to just free the memory reserved for a\n\u0027ima_template_entry\u0027 structure if something goes wrong.\n\nThis patch creates the new function ima_free_template_entry() which\nwalks the array of \u0027ima_field_data\u0027 structures, frees the memory\nreferenced by the \u0027data\u0027 pointer and finally the space reserved for\nthe \u0027ima_template_entry\u0027 structure. Further, it replaces existing kfree()\nthat have a pointer to an \u0027ima_template_entry\u0027 structure as argument\nwith calls to the new function.\n\nFixes: a71dc65: ima: switch to new template management mechanism\nSigned-off-by: Roberto Sassu \u003croberto.sassu@polito.it\u003e\nSigned-off-by: Mimi Zohar \u003czohar@us.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9636e17c9f5d709ae735d60bccddd3d2bc481470",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima.h",
      "new_id": "0356e1d437ca31cde30910567128168dbfd0a5ca",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima.h"
    },
    {
      "type": "modify",
      "old_id": "80374842fe0bb4cfef8a7dec8144eeff5278d408",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima_api.c",
      "new_id": "c38bbce8c6a629e246d8f6bef7557e224707d88b",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima_api.c"
    },
    {
      "type": "modify",
      "old_id": "76b8e2c4fd38f641de017bd45dcacf225b1b21dc",
      "old_mode": 33188,
      "old_path": "security/integrity/ima/ima_init.c",
      "new_id": "37122768554a9e69d4866f9c9a72864f157afef3",
      "new_mode": 33188,
      "new_path": "security/integrity/ima/ima_init.c"
    }
  ]
}
