)]}'
{
  "commit": "9cf731bd2995205bb0aee8484c4f1427a4ec2254",
  "tree": "843c18a00523194fea813c59ceb5b6023dbd9715",
  "parents": [
    "4036d2df9c2b0f4d396f54e356f26d5791320e3e"
  ],
  "author": {
    "name": "Jaewan Kim",
    "email": "jaewan@google.com",
    "time": "Fri Jan 19 14:45:45 2024 +0900"
  },
  "committer": {
    "name": "Jaewan Kim",
    "email": "jaewan@google.com",
    "time": "Wed Jan 31 13:52:09 2024 +0900"
  },
  "message": "virtmgr: Add libfsfdt for reading host DT from file system\n\nHost DT blob exists at /sys/firmware/fdt, but it\u0027s only readable by\nroot. (permission is 400).\n\nTo workaround the permission issue, this CL reads host DT from file system\nwhich doesn\u0027t have such permission issue. We already did the similar\nfor the debug policy.\n\nHere are alternatives, but I didn\u0027t pick:\n\n - Use libfdt in root process (e.g. vfio_handler) or modify the\n   file\u0027s permission: No-go. I can do the same with less permission.\n   No reason for having super-power.\n - Use dtc implementation: No-go. I don\u0027t want to include a foreign\n   binary in our APEX. In addition, dtc exits current process if\n   something goes wrong, so wrapper library doesn\u0027t fit.\n\nBug: 318431695\nTest: manually tested with host DT by using fsfdt and dtdiff tool.\nChange-Id: Ic0640d5dee3165d957cffed958126d31de50633a\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3a42bf3acf4f6b0c2b286639a06d4070e087de97",
      "new_mode": 33188,
      "new_path": "virtualizationmanager/fsfdt/Android.bp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cda2fe1e4cd904bb5223dea18e18b81a2394510f",
      "new_mode": 33188,
      "new_path": "virtualizationmanager/fsfdt/src/lib.rs"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2fe71e76ce0b6240eedaa9c84d25590484185a01",
      "new_mode": 33188,
      "new_path": "virtualizationmanager/fsfdt/src/main.rs"
    }
  ]
}
