{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22506","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22506/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22506/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22506/events","html_url":"https://github.com/docker/docker/pull/22506","id":153072737,"number":22506,"title":"Use pivot_root instead of chroot for chrootarchive","user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/0-triage","name":"status/0-triage","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T17:39:43Z","updated_at":"2016-05-04T17:40:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/22506","html_url":"https://github.com/docker/docker/pull/22506","diff_url":"https://github.com/docker/docker/pull/22506.diff","patch_url":"https://github.com/docker/docker/pull/22506.patch"},"body":"<!--\r\nPlease make sure you've read and understood our contributing guidelines;\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md\r\n\r\n** Make sure all your commits include a signature generated with `git commit -s` **\r\n\r\nFor additional information on our contributing process, read our contributing\r\nguide https://docs.docker.com/opensource/code/\r\n\r\nIf this is a bug fix, make sure your description includes \"fixes #xxxx\", or\r\n\"closes #xxxx\"\r\n\r\nPlease provide the following information:\r\n-->\r\n\r\n**- What I did**\r\nMake chrootarchive default to using `pivot_root` instead of `chroot`\r\n\r\nThis fixes one issue with Docker running under a grsec kernel, which\r\ndenies chmod and mknod under chroot.\r\n\r\nNote, if pivot_root fails it will still fallback to chroot.\r\n\r\n**- How to verify it**\r\nRun chrootarchive tests (may want to disable fallback to chroot to really verify that the pivot code works)\r\n\r\n**- A picture of a cute animal (not mandatory but encouraged)**\r\n\r\n![](http://g03.s.alicdn.com/kf/HTB1z561FVXXXXcAXXXXq6xXFXXXC/220244778/HTB1z561FVXXXXcAXXXXq6xXFXXXC.jpg)"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/216943571","html_url":"https://github.com/docker/docker/pull/22506#issuecomment-216943571","issue_url":"https://api.github.com/repos/docker/docker/issues/22506","id":216943571,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T17:40:06Z","updated_at":"2016-05-04T17:40:06Z","body":"ping @npcode @justincormack "}}