)]}'
{
  "commit": "5bfc701a74a45444a84974be0933eb8950f7877f",
  "tree": "8cf05fe723cb9badb539d3429ce158908d0d0d5a",
  "parents": [
    "088dca0eebbfaa055d3d1ee3ba3262ef8c2088fb"
  ],
  "author": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Thu Aug 15 17:27:19 2019 +0100"
  },
  "committer": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Fri Jan 31 16:15:44 2020 +0000"
  },
  "message": "Add a keyctl command for granting a permit on a key\n\nAdd a keyctl command to allow permits to be granted or removed on a key for\na specific subject.  The kernel maintains the ACL internally from these\nalterations, but the ACL isn\u0027t directly accessible.\n\nThe command looks like:\n\n\tkeyctl grant \u003ckeyid\u003e \u003csubject\u003e \u003cpermits\u003e\n\nwhere subject can currently be one of\n\n\tpos\t- Permits available to a possessor of the key\n\town\t- Permits available to key\u0027s owner\n\tgrp\t- Permits available to key\u0027s group ID\n\tall\t- Permits available to everyone\n\nand permits can be any combination of the following letters:\n\n\tv\t- Permit the subject to view the key\u0027s attributes\n\tr\t- Permit the subject to read the key\u0027s payload\n\tw\t- Permit the subject to change the key\u0027s payload\n\ts\t- Permit the subject to find the key in a search\n\tl\t- Permit the subject to create a link to the key\n\tI\t- Permit the subject to invalidate the key\n\tR\t- Permit the subject to revoke the key\n\tS\t- Permit the subject to change the key\u0027s security\n\tj\t- Permit the subject to join the session keyring\n\tc\t- Permit the subject to clear the keyring\n\nFor example:\n\n\t$ keyctl grant @s own j\n\nwill grant the key\u0027s owner a permit to join the key as its session keyring,\nbut will remove all other permits for the owner directly, such as view,\nread, etc..\n\nSigned-off-by: David Howells \u003cdhowells@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f5fa3ebc1c24f423e8781e16ba9bf6b62e309c7e",
      "old_mode": 33188,
      "old_path": "keyctl.c",
      "new_id": "5ae50b61315bbff2b12374ee6ac992bcb4c0ff8e",
      "new_mode": 33188,
      "new_path": "keyctl.c"
    },
    {
      "type": "modify",
      "old_id": "6f2d7973b045b0059f7bbec560a8cf08f13b50d4",
      "old_mode": 33188,
      "old_path": "keyutils.c",
      "new_id": "500f51204d5df08ab44da96e2ff62893e58ea9c2",
      "new_mode": 33188,
      "new_path": "keyutils.c"
    },
    {
      "type": "modify",
      "old_id": "5d46fffe9d7be4f7fa7201755309cbcfdaf54756",
      "old_mode": 33188,
      "old_path": "keyutils.h",
      "new_id": "f5908924b26bc13e8be190d4019d900c12b21d1e",
      "new_mode": 33188,
      "new_path": "keyutils.h"
    },
    {
      "type": "modify",
      "old_id": "3b9e889c09bba9f3fb46257a581c7ce47601bda2",
      "old_mode": 33188,
      "old_path": "man/keyctl.3",
      "new_id": "6eb6c8820c061624367b1063d29a214d0c4386b0",
      "new_mode": 33188,
      "new_path": "man/keyctl.3"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bcaedcd1062dfda9f74c56cef4bee84a16acbedb",
      "new_mode": 33188,
      "new_path": "man/keyctl_grant_permission.3"
    },
    {
      "type": "modify",
      "old_id": "e4134d9693b9ddd9155647d70363556b698771fe",
      "old_mode": 33188,
      "old_path": "man/keyctl_setperm.3",
      "new_id": "0b342dbe758ad3bde32b978293caa5d151fcfe1c",
      "new_mode": 33188,
      "new_path": "man/keyctl_setperm.3"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6e8e1a27ae4a92da23be1ab446f2217c90d16319",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/bad-args/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0f627350f8b2adb6d79af3f19c18fe0f97149d60",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/noargs/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ddd7e2a2b4b822a8269a8ef4d34c5cf3e196aaaf",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/valid/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "51091be1a3313999177958c6a3ddf680c0831563",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/valid2/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e2003f2efb1da31d51ad8e20d6690418c16386cf",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/valid3/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "aabcc3b0d5a17ad589923f18e3d0c32371ef81e8",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/valid4/runtest.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1d2b6b4ea5b8243023fe1bc988140c0cdd48a950",
      "new_mode": 33188,
      "new_path": "tests/keyctl/grant/valid5/runtest.sh"
    },
    {
      "type": "modify",
      "old_id": "9aa2187b4deb825cc0db9403669abf2fb689cdc3",
      "old_mode": 33188,
      "old_path": "tests/prepare.inc.sh",
      "new_id": "2b263bef01585b9845e004fd4cfbde7132b84e01",
      "new_mode": 33188,
      "new_path": "tests/prepare.inc.sh"
    },
    {
      "type": "modify",
      "old_id": "609a6c7873fe88223a0a3d27299e3cc59539424e",
      "old_mode": 33188,
      "old_path": "tests/toolbox.inc.sh",
      "new_id": "4af465f60b68b056c648abc9728e94feb494f04d",
      "new_mode": 33188,
      "new_path": "tests/toolbox.inc.sh"
    },
    {
      "type": "modify",
      "old_id": "6c34adf95a5407d989503dceaf9a8babcaed58a0",
      "old_mode": 33188,
      "old_path": "version.lds",
      "new_id": "bfa77a5e5d57b7bd8127e851dafcc7ac968a7852",
      "new_mode": 33188,
      "new_path": "version.lds"
    }
  ]
}
