{"action":"opened","number":91,"pull_request":{"url":"https://api.github.com/repos/proot-me/PRoot/pulls/91","id":41126769,"html_url":"https://github.com/proot-me/PRoot/pull/91","diff_url":"https://github.com/proot-me/PRoot/pull/91.diff","patch_url":"https://github.com/proot-me/PRoot/pull/91.patch","issue_url":"https://api.github.com/repos/proot-me/PRoot/issues/91","number":91,"state":"open","locked":false,"title":"Fix use of size","user":{"login":"alkino","id":286080,"avatar_url":"https://avatars.githubusercontent.com/u/286080?v=3","gravatar_id":"","url":"https://api.github.com/users/alkino","html_url":"https://github.com/alkino","followers_url":"https://api.github.com/users/alkino/followers","following_url":"https://api.github.com/users/alkino/following{/other_user}","gists_url":"https://api.github.com/users/alkino/gists{/gist_id}","starred_url":"https://api.github.com/users/alkino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkino/subscriptions","organizations_url":"https://api.github.com/users/alkino/orgs","repos_url":"https://api.github.com/users/alkino/repos","events_url":"https://api.github.com/users/alkino/events{/privacy}","received_events_url":"https://api.github.com/users/alkino/received_events","type":"User","site_admin":false},"body":"Not correct:\r\nsize  = (size_t) &_binary_loader_m32_exe_size;\r\n\r\nsize  = (size_t) _binary_loader_m32_exe_size;\r\nShould be correct maybe? Don't know. So I do : \r\nsize  = (size_t)(&_binary_loader_m32_exe_end-&_binary_loader_m32_exe_start);\r\n\r\nWithout this patch we got:\r\n$ proot -v 10 ls\r\nproot info: binding = /\r\nproot info: vpid 1: translate(\"/home/alkino\" + \"ls\")\r\nproot info: vpid 1:          -> \"/home/alkino/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/usr/lib/hardening-wrapper/bin/ls\")\r\nproot info: vpid 1:          -> \"/usr/lib/hardening-wrapper/bin/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/usr/local/sbin/ls\")\r\nproot info: vpid 1:          -> \"/usr/local/sbin/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/usr/local/bin/ls\")\r\nproot info: vpid 1:          -> \"/usr/local/bin/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/usr/bin/ls\")\r\nproot info: vpid 1:          -> \"/usr/bin/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/usr/bin/ls\")\r\nproot info: vpid 1:          -> \"/usr/bin/ls\"\r\nproot info: exe = /usr/bin/ls\r\nproot info: argv = ls\r\nproot info: initial cwd = /home/alkino\r\nproot info: verbose level = 1000\r\nproot info: pid 26839: access to \"/dev/pts/5\" (fd 0) won't be translated until closed\r\nproot info: pid 26839: access to \"/dev/pts/5\" (fd 1) won't be translated until closed\r\nproot info: pid 26839: access to \"/dev/pts/5\" (fd 2) won't be translated until closed\r\nproot info: pid 26839: access to \"/proc/26839/fd\" (fd 3) won't be translated until closed\r\nproot info: pid 26839: access to \"/tmp/wmfs-:0.log\" (fd 4) won't be translated until closed\r\nproot info: vpid 1: sysenter start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1d140) = 0xffffffffffffffda [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysenter end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1d140) = 0xffffffffffffffda [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysexit start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1d140) = 0x0 [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysexit end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1d140) = 0x0 [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysenter start: prctl(0x16, 0x2, 0x7ffd15143df0, 0x7f40ae53746a, 0x0, 0x1d140) = 0xffffffffffffffda [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysenter end: prctl(0x16, 0x2, 0x7ffd15143df0, 0x7f40ae53746a, 0x0, 0x1d140) = 0xffffffffffffffda [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysexit start: prctl(0x16, 0x2, 0x7ffd15143df0, 0x7f40ae53746a, 0x0, 0x1d140) = 0x0 [0x7ffd15143d98, 0]\r\nproot info: vpid 1: sysexit end: prctl(0x16, 0x2, 0x7ffd15143df0, 0x7f40ae53746a, 0x0, 0x1d140) = 0x0 [0x7ffd15143d98, 0]\r\nproot info: ptrace acceleration (seccomp mode 2) enabled\r\nproot info: vpid 1: sysenter start: execve(0x558776ad1b70, 0x7ffd15144070, 0x7ffd15144080, 0x5a7, 0x7f40ae7ebb78, 0x1d140) = 0xffffffffffffffda [0x7ffd15143e38, 0]\r\nproot info: vpid 1: translate(\"/\" + \"/usr/bin/ls\")\r\nproot info: vpid 1:          -> \"/usr/bin/ls\"\r\nproot info: vpid 1: translate(\"/\" + \"/lib64/ld-linux-x86-64.so.2\")\r\nproot info: vpid 1:          -> \"/usr/lib/ld-2.21.so\"\r\nproot error: can't write the loader: Bad address\r\nproot info: vpid 1: sysenter end: void(0x558776ad1b70, 0x7ffd15144070, 0x7ffd15144080, 0x5a7, 0x7f40ae7ebb78, 0x1d140) = 0xfffffffffffffffe [0x7ffd15143e38, 0]\r\nproot info: vpid 1: sysexit start: void(0x558776ad1b70, 0x7ffd15144070, 0x7ffd15144080, 0x5a7, 0x7f40ae7ebb78, 0x1d140) = 0xfffffffffffffffe [0x7ffd15143e38, 0]\r\nproot info: vpid 1: sysexit end: execve(0x558776ad1b70, 0x7ffd15144070, 0x7ffd15144080, 0x5a7, 0x7f40ae7ebb78, 0x1d140) = 0xfffffffffffffffe [0x7ffd15143e38, 0]\r\nproot error: execve(\"/usr/bin/ls\"): No such file or directory\r\nproot info: possible causes:\r\n  * the program is a script but its interpreter (eg. /bin/sh) was not found;\r\n  * the program is an ELF but its interpreter (eg. ld-linux.so) was not found;\r\n  * the program is a foreign binary but qemu was not specified;\r\n  * qemu does not work correctly (if specified);\r\n  * the loader was not found or doesn't work.\r\nfatal error: see `proot --help`.\r\nproot info: vpid 1: exited with status 1","created_at":"2015-07-29T14:06:09Z","updated_at":"2015-07-29T14:06:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/proot-me/PRoot/pulls/91/commits","review_comments_url":"https://api.github.com/repos/proot-me/PRoot/pulls/91/comments","review_comment_url":"https://api.github.com/repos/proot-me/PRoot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/proot-me/PRoot/issues/91/comments","statuses_url":"https://api.github.com/repos/proot-me/PRoot/statuses/0d0113debe197f2e2364976bf0bc6f8af2d4e85e","head":{"label":"alkino:next","ref":"next","sha":"0d0113debe197f2e2364976bf0bc6f8af2d4e85e","user":{"login":"alkino","id":286080,"avatar_url":"https://avatars.githubusercontent.com/u/286080?v=3","gravatar_id":"","url":"https://api.github.com/users/alkino","html_url":"https://github.com/alkino","followers_url":"https://api.github.com/users/alkino/followers","following_url":"https://api.github.com/users/alkino/following{/other_user}","gists_url":"https://api.github.com/users/alkino/gists{/gist_id}","starred_url":"https://api.github.com/users/alkino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkino/subscriptions","organizations_url":"https://api.github.com/users/alkino/orgs","repos_url":"https://api.github.com/users/alkino/repos","events_url":"https://api.github.com/users/alkino/events{/privacy}","received_events_url":"https://api.github.com/users/alkino/received_events","type":"User","site_admin":false},"repo":{"id":39896393,"name":"PRoot","full_name":"alkino/PRoot","owner":{"login":"alkino","id":286080,"avatar_url":"https://avatars.githubusercontent.com/u/286080?v=3","gravatar_id":"","url":"https://api.github.com/users/alkino","html_url":"https://github.com/alkino","followers_url":"https://api.github.com/users/alkino/followers","following_url":"https://api.github.com/users/alkino/following{/other_user}","gists_url":"https://api.github.com/users/alkino/gists{/gist_id}","starred_url":"https://api.github.com/users/alkino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkino/subscriptions","organizations_url":"https://api.github.com/users/alkino/orgs","repos_url":"https://api.github.com/users/alkino/repos","events_url":"https://api.github.com/users/alkino/events{/privacy}","received_events_url":"https://api.github.com/users/alkino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alkino/PRoot","description":"chroot, mount --bind, and binfmt_misc without privilege/setup","fork":true,"url":"https://api.github.com/repos/alkino/PRoot","forks_url":"https://api.github.com/repos/alkino/PRoot/forks","keys_url":"https://api.github.com/repos/alkino/PRoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alkino/PRoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alkino/PRoot/teams","hooks_url":"https://api.github.com/repos/alkino/PRoot/hooks","issue_events_url":"https://api.github.com/repos/alkino/PRoot/issues/events{/number}","events_url":"https://api.github.com/repos/alkino/PRoot/events","assignees_url":"https://api.github.com/repos/alkino/PRoot/assignees{/user}","branches_url":"https://api.github.com/repos/alkino/PRoot/branches{/branch}","tags_url":"https://api.github.com/repos/alkino/PRoot/tags","blobs_url":"https://api.github.com/repos/alkino/PRoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alkino/PRoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alkino/PRoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/alkino/PRoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alkino/PRoot/statuses/{sha}","languages_url":"https://api.github.com/repos/alkino/PRoot/languages","stargazers_url":"https://api.github.com/repos/alkino/PRoot/stargazers","contributors_url":"https://api.github.com/repos/alkino/PRoot/contributors","subscribers_url":"https://api.github.com/repos/alkino/PRoot/subscribers","subscription_url":"https://api.github.com/repos/alkino/PRoot/subscription","commits_url":"https://api.github.com/repos/alkino/PRoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/alkino/PRoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/alkino/PRoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/alkino/PRoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/alkino/PRoot/contents/{+path}","compare_url":"https://api.github.com/repos/alkino/PRoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alkino/PRoot/merges","archive_url":"https://api.github.com/repos/alkino/PRoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alkino/PRoot/downloads","issues_url":"https://api.github.com/repos/alkino/PRoot/issues{/number}","pulls_url":"https://api.github.com/repos/alkino/PRoot/pulls{/number}","milestones_url":"https://api.github.com/repos/alkino/PRoot/milestones{/number}","notifications_url":"https://api.github.com/repos/alkino/PRoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alkino/PRoot/labels{/name}","releases_url":"https://api.github.com/repos/alkino/PRoot/releases{/id}","created_at":"2015-07-29T13:59:17Z","updated_at":"2015-07-29T13:59:18Z","pushed_at":"2015-07-29T14:03:11Z","git_url":"git://github.com/alkino/PRoot.git","ssh_url":"git@github.com:alkino/PRoot.git","clone_url":"https://github.com/alkino/PRoot.git","svn_url":"https://github.com/alkino/PRoot","homepage":"http://proot.me","size":5162,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"proot-me:next","ref":"next","sha":"ecd9fc5d29b94616b9e4520815d7f564d0e0f099","user":{"login":"proot-me","id":12125707,"avatar_url":"https://avatars.githubusercontent.com/u/12125707?v=3","gravatar_id":"","url":"https://api.github.com/users/proot-me","html_url":"https://github.com/proot-me","followers_url":"https://api.github.com/users/proot-me/followers","following_url":"https://api.github.com/users/proot-me/following{/other_user}","gists_url":"https://api.github.com/users/proot-me/gists{/gist_id}","starred_url":"https://api.github.com/users/proot-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proot-me/subscriptions","organizations_url":"https://api.github.com/users/proot-me/orgs","repos_url":"https://api.github.com/users/proot-me/repos","events_url":"https://api.github.com/users/proot-me/events{/privacy}","received_events_url":"https://api.github.com/users/proot-me/received_events","type":"Organization","site_admin":false},"repo":{"id":1147698,"name":"PRoot","full_name":"proot-me/PRoot","owner":{"login":"proot-me","id":12125707,"avatar_url":"https://avatars.githubusercontent.com/u/12125707?v=3","gravatar_id":"","url":"https://api.github.com/users/proot-me","html_url":"https://github.com/proot-me","followers_url":"https://api.github.com/users/proot-me/followers","following_url":"https://api.github.com/users/proot-me/following{/other_user}","gists_url":"https://api.github.com/users/proot-me/gists{/gist_id}","starred_url":"https://api.github.com/users/proot-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proot-me/subscriptions","organizations_url":"https://api.github.com/users/proot-me/orgs","repos_url":"https://api.github.com/users/proot-me/repos","events_url":"https://api.github.com/users/proot-me/events{/privacy}","received_events_url":"https://api.github.com/users/proot-me/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/proot-me/PRoot","description":"chroot, mount --bind, and binfmt_misc without privilege/setup","fork":false,"url":"https://api.github.com/repos/proot-me/PRoot","forks_url":"https://api.github.com/repos/proot-me/PRoot/forks","keys_url":"https://api.github.com/repos/proot-me/PRoot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/proot-me/PRoot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/proot-me/PRoot/teams","hooks_url":"https://api.github.com/repos/proot-me/PRoot/hooks","issue_events_url":"https://api.github.com/repos/proot-me/PRoot/issues/events{/number}","events_url":"https://api.github.com/repos/proot-me/PRoot/events","assignees_url":"https://api.github.com/repos/proot-me/PRoot/assignees{/user}","branches_url":"https://api.github.com/repos/proot-me/PRoot/branches{/branch}","tags_url":"https://api.github.com/repos/proot-me/PRoot/tags","blobs_url":"https://api.github.com/repos/proot-me/PRoot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/proot-me/PRoot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/proot-me/PRoot/git/refs{/sha}","trees_url":"https://api.github.com/repos/proot-me/PRoot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/proot-me/PRoot/statuses/{sha}","languages_url":"https://api.github.com/repos/proot-me/PRoot/languages","stargazers_url":"https://api.github.com/repos/proot-me/PRoot/stargazers","contributors_url":"https://api.github.com/repos/proot-me/PRoot/contributors","subscribers_url":"https://api.github.com/repos/proot-me/PRoot/subscribers","subscription_url":"https://api.github.com/repos/proot-me/PRoot/subscription","commits_url":"https://api.github.com/repos/proot-me/PRoot/commits{/sha}","git_commits_url":"https://api.github.com/repos/proot-me/PRoot/git/commits{/sha}","comments_url":"https://api.github.com/repos/proot-me/PRoot/comments{/number}","issue_comment_url":"https://api.github.com/repos/proot-me/PRoot/issues/comments{/number}","contents_url":"https://api.github.com/repos/proot-me/PRoot/contents/{+path}","compare_url":"https://api.github.com/repos/proot-me/PRoot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/proot-me/PRoot/merges","archive_url":"https://api.github.com/repos/proot-me/PRoot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/proot-me/PRoot/downloads","issues_url":"https://api.github.com/repos/proot-me/PRoot/issues{/number}","pulls_url":"https://api.github.com/repos/proot-me/PRoot/pulls{/number}","milestones_url":"https://api.github.com/repos/proot-me/PRoot/milestones{/number}","notifications_url":"https://api.github.com/repos/proot-me/PRoot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/proot-me/PRoot/labels{/name}","releases_url":"https://api.github.com/repos/proot-me/PRoot/releases{/id}","created_at":"2010-12-07T20:38:13Z","updated_at":"2015-07-28T12:58:52Z","pushed_at":"2015-07-23T19:50:42Z","git_url":"git://github.com/proot-me/PRoot.git","ssh_url":"git@github.com:proot-me/PRoot.git","clone_url":"https://github.com/proot-me/PRoot.git","svn_url":"https://github.com/proot-me/PRoot","homepage":"http://proot.me","size":5162,"stargazers_count":98,"watchers_count":98,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":36,"forks":23,"open_issues":36,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/proot-me/PRoot/pulls/91"},"html":{"href":"https://github.com/proot-me/PRoot/pull/91"},"issue":{"href":"https://api.github.com/repos/proot-me/PRoot/issues/91"},"comments":{"href":"https://api.github.com/repos/proot-me/PRoot/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/proot-me/PRoot/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/proot-me/PRoot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/proot-me/PRoot/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/proot-me/PRoot/statuses/0d0113debe197f2e2364976bf0bc6f8af2d4e85e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}