)]}'
{
  "commit": "03449cd9eaa4fa3a7faa4a59474bafe2e90bd143",
  "tree": "f0f8b573553e0ac436b06b3f7853033a46b90a8e",
  "parents": [
    "a2cb9aeb3c9b2475955cec328487484034f414e4"
  ],
  "author": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Tue Apr 27 13:13:08 2010 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Tue Apr 27 16:26:03 2010 -0700"
  },
  "message": "keys: the request_key() syscall should link an existing key to the dest keyring\n\nThe request_key() system call and request_key_and_link() should make a\nlink from an existing key to the destination keyring (if supplied), not\njust from a new key to the destination keyring.\n\nThis can be tested by:\n\n\tring\u003d`keyctl newring fred @s`\n\tkeyctl request2 user debug:a a\n\tkeyctl request user debug:a $ring\n\tkeyctl list $ring\n\nIf it says:\n\n\tkeyring is empty\n\nthen it didn\u0027t work.  If it shows something like:\n\n\t1 key in keyring:\n\t1070462727: --alswrv     0     0 user: debug:a\n\nthen it did.\n\nrequest_key() system call is meant to recursively search all your keyrings for\nthe key you desire, and, optionally, if it doesn\u0027t exist, call out to userspace\nto create one for you.\n\nIf request_key() finds or creates a key, it should, optionally, create a link\nto that key from the destination keyring specified.\n\nTherefore, if, after a successful call to request_key() with a desination\nkeyring specified, you see the destination keyring empty, the code didn\u0027t work\ncorrectly.\n\nIf you see the found key in the keyring, then it did - which is what the patch\nis required for.\n\nSigned-off-by: David Howells \u003cdhowells@redhat.com\u003e\nCc: James Morris \u003cjmorris@namei.org\u003e\nCc: \u003cstable@kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ea97c3120d6624bdae19907e0ba09afecb0bc4dd",
      "old_mode": 33188,
      "old_path": "security/keys/request_key.c",
      "new_id": "d737cea5347cf2f30d9fac3f8141d0e81f05b74e",
      "new_mode": 33188,
      "new_path": "security/keys/request_key.c"
    }
  ]
}
