)]}'
{
  "commit": "9e0bd4cba4460bff64fb07cfb07849cdfd4d325a",
  "tree": "feebec6167012e461d286c02ae45348ad0b2d3a1",
  "parents": [
    "dce3a3d2ee038d230323fe06b061dbaace6b8f94"
  ],
  "author": {
    "name": "Dan Carpenter",
    "email": "error27@gmail.com",
    "time": "Sat Jun 12 20:50:35 2010 +0200"
  },
  "committer": {
    "name": "James Morris",
    "email": "jmorris@namei.org",
    "time": "Mon Aug 02 15:35:01 2010 +1000"
  },
  "message": "selinux: cleanup return codes in avtab_read_item()\n\nThe avtab_read_item() function tends to return -1 as a default error\ncode which is wrong (-1 means -EPERM).  I modified it to return\nappropriate error codes which is -EINVAL or the error code from\nnext_entry() or insertf().\n\nnext_entry() returns -EINVAL.\ninsertf() is a function pointer to either avtab_insert() or\ncond_insertf().\navtab_insert() returns -EINVAL, -ENOMEM, and -EEXIST.\ncond_insertf() currently returns -1, but I will fix it in a later patch.\n\nThere is code in avtab_read() which translates the -1 returns from\navtab_read_item() to -EINVAL. The translation is no longer needed, so I\nremoved it.\n\nSigned-off-by: Dan Carpenter \u003cerror27@gmail.com\u003e\nAcked-by:  Stephen D. Smalley \u003csds@tycho.nsa.gov\u003e\nSigned-off-by: James Morris \u003cjmorris@namei.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1215b8e47dba669a6d86519b342de621b2efbfd2",
      "old_mode": 33188,
      "old_path": "security/selinux/ss/avtab.c",
      "new_id": "929480c6c4306e874eff82db107045b944cdd33b",
      "new_mode": 33188,
      "new_path": "security/selinux/ss/avtab.c"
    }
  ]
}
