)]}'
{
  "commit": "2bac049599e327888800a82fd90a2139c91fd093",
  "tree": "4dc87a48ca7faeae872ca350611a854380092a0c",
  "parents": [
    "fc5a008a3f198d4caa62a4b9fca4feca49222da9"
  ],
  "author": {
    "name": "Victor Hsieh",
    "email": "victorhsieh@google.com",
    "time": "Thu Aug 19 13:16:00 2021 -0700"
  },
  "committer": {
    "name": "TreeHugger Robot",
    "email": "treehugger-gerrit@google.com",
    "time": "Tue Aug 24 13:55:15 2021 +0000"
  },
  "message": "dex2oat: Avoid an open from /proc/self/fd\n\nReadCommentedInputStream reads a text file by line, filters out empty or\ncommented line, then send the line to a callback. The original\nimplementation uses ifstream and std::getline.\n\naosp/1734115 added a way to read the text file by FD. Since there\ndoesn\u0027t seem to be a way in C++ to convert the FD to an input stream,\nit creates one by opening /proc/self/fd/43.\n\nIn the context of Comp OS, this requires giving dex2oat a special open\nprivilege to \"authfs\".\n\nThis change replaces ifstream/std::getline with f(d)open/getline(3).\n\nBug: 196404749\nTest: TH\nTest: Disallow open for dex2oat in microdroid, ComposHostTestCases still\n      pass\nIgnore-AOSP-First: merge conflict resolution\nChange-Id: I257f471b2afc80b6f1e1f8fa25248abc7ff5a3d5\n(cherry picked from commit b81cc515d96f38286662e470bc38a0f6bb12ea57)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c3b94f93905490a1bf2fb5dd7ee4a54940ed0b4e",
      "old_mode": 33188,
      "old_path": "dex2oat/dex2oat.cc",
      "new_id": "0175eda864a0b394a1a461c7c5176ec100eac39f",
      "new_mode": 33188,
      "new_path": "dex2oat/dex2oat.cc"
    }
  ]
}
