)]}'
{
  "commit": "081e4c8a75692c21f3a119a81ca3270081879d0e",
  "tree": "ded825beb43c21c28e3ff4fdf0e4efe6a2b0ca66",
  "parents": [
    "49b5cf34727a6c1be1568ab28e89a2d9a6bf51e0"
  ],
  "author": {
    "name": "Pavel Emelyanov",
    "email": "xemul@openvz.org",
    "time": "Fri Jul 25 01:48:42 2008 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Fri Jul 25 10:53:46 2008 -0700"
  },
  "message": "bsdacct: rename acct_gbls to bsd_acct_struct\n\nAfter I fixed access to task-\u003etgid in kernel/acct.c, Oleg pointed out some\nbad side effects with this accounting vs pid namespaces interaction.  I.e.\n when some task in pid namespace sets this accounting up, this blocks all\nthe others from doing the same.  Restricting this to init namespace only\ncould help, but didn\u0027t look a graceful solution.\n\nSo here is the approach to make this accounting work with pid namespaces\nproperly.\n\nThe idea is simple - when a task dies it accounts itself in each namespace\nit is visible from and which set the accounting up.\n\nFor example here are the commands run and the output of lastcomm from init\nand sub namespaces:\n\ninit_ns# accton pacct\n sub_ns# accton pacct (this is a different file - sub ns is run in\n                       a chroot-ed environment)\ninit_ns# cat /dev/null\n sub_ns# ls /dev/null\ninit_ns# accton\n sub_ns# accton\n\n sub_ns#  lastcomm -f pacct\nls                      0        [136,0]    0.00 secs Thu May 15 10:30\naccton                  0        [136,0]    0.00 secs Thu May 15 10:30\n\ninit_ns# lastcomm -f pacct\naccton                  root     pts/0      0.00 secs Thu May 15 14:30 \u003c\u003c got from sub\ncat                     root     pts/1      0.00 secs Thu May 15 14:30\nls                      root     pts/0      0.00 secs Thu May 15 14:30 \u003c\u003c got from sub\naccton                  root     pts/1      0.00 secs Thu May 15 14:30\n\nThat was the summary, the details are in patches.\n\nThis patch:\n\nIt will be visible in pid_namespace.h file, so fix its name to look better\noutside the acct.c file.\n\nSigned-off-by: Pavel Emelyanov \u003cxemul@openvz.org\u003e\nCc: Balbir Singh \u003cbalbir@in.ibm.com\u003e\nCc: \"Eric W. Biederman\" \u003cebiederm@xmission.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": "91e1cfd734d286f922597108e54065ef691d31b2",
      "old_mode": 33188,
      "old_path": "kernel/acct.c",
      "new_id": "ee3e605190f96a3bfb7f075c0b27817ef4e793a6",
      "new_mode": 33188,
      "new_path": "kernel/acct.c"
    }
  ]
}
