)]}'
{
  "commit": "0c2d64fb6cae9aae480f6a46cfe79f8d7d48b59f",
  "tree": "f0080c63a78a021cc3404e12e205e3b82e982427",
  "parents": [
    "b4236f81f2347096df650fb072f50d67bb6066a2"
  ],
  "author": {
    "name": "Adam Tkac",
    "email": "vonsch@gmail.com",
    "time": "Wed Oct 15 22:01:45 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Thu Oct 16 11:21:31 2008 -0700"
  },
  "message": "rlimit: permit setting RLIMIT_NOFILE to RLIM_INFINITY\n\nWhen a process wants to set the limit of open files to RLIM_INFINITY it\ngets EPERM even if it has CAP_SYS_RESOURCE capability.\n\nFor example, BIND does:\n\n...\n#elif defined(NR_OPEN) \u0026\u0026 defined(__linux__)\n        /*\n         * Some Linux kernels don\u0027t accept RLIM_INFINIT; the maximum\n         * possible value is the NR_OPEN defined in linux/fs.h.\n         */\n        if (resource \u003d\u003d isc_resource_openfiles \u0026\u0026 rlim_value \u003d\u003d RLIM_INFINITY) {\n                rl.rlim_cur \u003d rl.rlim_max \u003d NR_OPEN;\n                unixresult \u003d setrlimit(unixresource, \u0026rl);\n                if (unixresult \u003d\u003d 0)\n                        return (ISC_R_SUCCESS);\n        }\n#elif ...\n\nIf we allow setting RLIMIT_NOFILE to RLIM_INFINITY we increase portability\n- you don\u0027t have to check if OS is linux and then use different schema for\nlimits.\n\nThe spec says \"Specifying RLIM_INFINITY as any resource limit value on a\nsuccessful call to setrlimit() shall inhibit enforcement of that resource\nlimit.\" and we\u0027re presently not doing that.\n\nCc: Michael Kerrisk \u003cmtk.manpages@googlemail.com\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": "234d9454294e12b6f366abd75ce70009e3cde3af",
      "old_mode": 33188,
      "old_path": "kernel/sys.c",
      "new_id": "d5b79f65ad9b2da67bcc08b01e89fead58630d32",
      "new_mode": 33188,
      "new_path": "kernel/sys.c"
    }
  ]
}
