{"action":"created","comment":{"url":"https://api.github.com/repos/bloomberg/userchroot/pulls/comments/61969394","id":61969394,"diff_hunk":"@@ -208,6 +226,98 @@ static void portable_clearenv() {\n #endif\n }\n \n+struct epilogue_data {\n+    uid_t target_user;\n+    char** argv;\n+    char** envp;\n+};\n+\n+void epilogue(struct epilogue_data* d) {","path":"userchroot.c","position":39,"original_position":39,"commit_id":"241b93f9810b010b3dacf14022e1546ba691a8f2","original_commit_id":"241b93f9810b010b3dacf14022e1546ba691a8f2","user":{"login":"motahan","id":14053847,"avatar_url":"https://avatars.githubusercontent.com/u/14053847?v=3","gravatar_id":"","url":"https://api.github.com/users/motahan","html_url":"https://github.com/motahan","followers_url":"https://api.github.com/users/motahan/followers","following_url":"https://api.github.com/users/motahan/following{/other_user}","gists_url":"https://api.github.com/users/motahan/gists{/gist_id}","starred_url":"https://api.github.com/users/motahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motahan/subscriptions","organizations_url":"https://api.github.com/users/motahan/orgs","repos_url":"https://api.github.com/users/motahan/repos","events_url":"https://api.github.com/users/motahan/events{/privacy}","received_events_url":"https://api.github.com/users/motahan/received_events","type":"User","site_admin":false},"body":"Me too but the clone child function only accepts one argument ","created_at":"2016-05-03T22:46:38Z","updated_at":"2016-05-03T22:46:38Z","html_url":"https://github.com/bloomberg/userchroot/pull/1#discussion_r61969394","pull_request_url":"https://api.github.com/repos/bloomberg/userchroot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/comments/61969394"},"html":{"href":"https://github.com/bloomberg/userchroot/pull/1#discussion_r61969394"},"pull_request":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/bloomberg/userchroot/pulls/1","id":68770066,"html_url":"https://github.com/bloomberg/userchroot/pull/1","diff_url":"https://github.com/bloomberg/userchroot/pull/1.diff","patch_url":"https://github.com/bloomberg/userchroot/pull/1.patch","issue_url":"https://api.github.com/repos/bloomberg/userchroot/issues/1","number":1,"state":"open","locked":false,"title":"supporting mounting proc with namespaces","user":{"login":"motahan","id":14053847,"avatar_url":"https://avatars.githubusercontent.com/u/14053847?v=3","gravatar_id":"","url":"https://api.github.com/users/motahan","html_url":"https://github.com/motahan","followers_url":"https://api.github.com/users/motahan/followers","following_url":"https://api.github.com/users/motahan/following{/other_user}","gists_url":"https://api.github.com/users/motahan/gists{/gist_id}","starred_url":"https://api.github.com/users/motahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motahan/subscriptions","organizations_url":"https://api.github.com/users/motahan/orgs","repos_url":"https://api.github.com/users/motahan/repos","events_url":"https://api.github.com/users/motahan/events{/privacy}","received_events_url":"https://api.github.com/users/motahan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-03T20:33:04Z","updated_at":"2016-05-03T22:46:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0eac9ffe3e578a006139ea37ea7e7cfa796e14e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bloomberg/userchroot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/bloomberg/userchroot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/bloomberg/userchroot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bloomberg/userchroot/issues/1/comments","statuses_url":"https://api.github.com/repos/bloomberg/userchroot/statuses/241b93f9810b010b3dacf14022e1546ba691a8f2","head":{"label":"motahan:mount_proc","ref":"mount_proc","sha":"241b93f9810b010b3dacf14022e1546ba691a8f2","user":{"login":"motahan","id":14053847,"avatar_url":"https://avatars.githubusercontent.com/u/14053847?v=3","gravatar_id":"","url":"https://api.github.com/users/motahan","html_url":"https://github.com/motahan","followers_url":"https://api.github.com/users/motahan/followers","following_url":"https://api.github.com/users/motahan/following{/other_user}","gists_url":"https://api.github.com/users/motahan/gists{/gist_id}","starred_url":"https://api.github.com/users/motahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motahan/subscriptions","organizations_url":"https://api.github.com/users/motahan/orgs","repos_url":"https://api.github.com/users/motahan/repos","events_url":"https://api.github.com/users/motahan/events{/privacy}","received_events_url":"https://api.github.com/users/motahan/received_events","type":"User","site_admin":false},"repo":{"id":57992302,"name":"userchroot","full_name":"motahan/userchroot","owner":{"login":"motahan","id":14053847,"avatar_url":"https://avatars.githubusercontent.com/u/14053847?v=3","gravatar_id":"","url":"https://api.github.com/users/motahan","html_url":"https://github.com/motahan","followers_url":"https://api.github.com/users/motahan/followers","following_url":"https://api.github.com/users/motahan/following{/other_user}","gists_url":"https://api.github.com/users/motahan/gists{/gist_id}","starred_url":"https://api.github.com/users/motahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motahan/subscriptions","organizations_url":"https://api.github.com/users/motahan/orgs","repos_url":"https://api.github.com/users/motahan/repos","events_url":"https://api.github.com/users/motahan/events{/privacy}","received_events_url":"https://api.github.com/users/motahan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/motahan/userchroot","description":"A tool to allow controlled access to 'chroot' functionality by users without root permissions","fork":true,"url":"https://api.github.com/repos/motahan/userchroot","forks_url":"https://api.github.com/repos/motahan/userchroot/forks","keys_url":"https://api.github.com/repos/motahan/userchroot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/motahan/userchroot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/motahan/userchroot/teams","hooks_url":"https://api.github.com/repos/motahan/userchroot/hooks","issue_events_url":"https://api.github.com/repos/motahan/userchroot/issues/events{/number}","events_url":"https://api.github.com/repos/motahan/userchroot/events","assignees_url":"https://api.github.com/repos/motahan/userchroot/assignees{/user}","branches_url":"https://api.github.com/repos/motahan/userchroot/branches{/branch}","tags_url":"https://api.github.com/repos/motahan/userchroot/tags","blobs_url":"https://api.github.com/repos/motahan/userchroot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/motahan/userchroot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/motahan/userchroot/git/refs{/sha}","trees_url":"https://api.github.com/repos/motahan/userchroot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/motahan/userchroot/statuses/{sha}","languages_url":"https://api.github.com/repos/motahan/userchroot/languages","stargazers_url":"https://api.github.com/repos/motahan/userchroot/stargazers","contributors_url":"https://api.github.com/repos/motahan/userchroot/contributors","subscribers_url":"https://api.github.com/repos/motahan/userchroot/subscribers","subscription_url":"https://api.github.com/repos/motahan/userchroot/subscription","commits_url":"https://api.github.com/repos/motahan/userchroot/commits{/sha}","git_commits_url":"https://api.github.com/repos/motahan/userchroot/git/commits{/sha}","comments_url":"https://api.github.com/repos/motahan/userchroot/comments{/number}","issue_comment_url":"https://api.github.com/repos/motahan/userchroot/issues/comments{/number}","contents_url":"https://api.github.com/repos/motahan/userchroot/contents/{+path}","compare_url":"https://api.github.com/repos/motahan/userchroot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/motahan/userchroot/merges","archive_url":"https://api.github.com/repos/motahan/userchroot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/motahan/userchroot/downloads","issues_url":"https://api.github.com/repos/motahan/userchroot/issues{/number}","pulls_url":"https://api.github.com/repos/motahan/userchroot/pulls{/number}","milestones_url":"https://api.github.com/repos/motahan/userchroot/milestones{/number}","notifications_url":"https://api.github.com/repos/motahan/userchroot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/motahan/userchroot/labels{/name}","releases_url":"https://api.github.com/repos/motahan/userchroot/releases{/id}","deployments_url":"https://api.github.com/repos/motahan/userchroot/deployments","created_at":"2016-05-03T18:38:14Z","updated_at":"2016-05-03T18:38:15Z","pushed_at":"2016-05-03T22:14:14Z","git_url":"git://github.com/motahan/userchroot.git","ssh_url":"git@github.com:motahan/userchroot.git","clone_url":"https://github.com/motahan/userchroot.git","svn_url":"https://github.com/motahan/userchroot","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"bloomberg:master","ref":"master","sha":"750dd57027c03e247a880480660f4c287c1b021a","user":{"login":"bloomberg","id":1416818,"avatar_url":"https://avatars.githubusercontent.com/u/1416818?v=3","gravatar_id":"","url":"https://api.github.com/users/bloomberg","html_url":"https://github.com/bloomberg","followers_url":"https://api.github.com/users/bloomberg/followers","following_url":"https://api.github.com/users/bloomberg/following{/other_user}","gists_url":"https://api.github.com/users/bloomberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bloomberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloomberg/subscriptions","organizations_url":"https://api.github.com/users/bloomberg/orgs","repos_url":"https://api.github.com/users/bloomberg/repos","events_url":"https://api.github.com/users/bloomberg/events{/privacy}","received_events_url":"https://api.github.com/users/bloomberg/received_events","type":"Organization","site_admin":false},"repo":{"id":46010451,"name":"userchroot","full_name":"bloomberg/userchroot","owner":{"login":"bloomberg","id":1416818,"avatar_url":"https://avatars.githubusercontent.com/u/1416818?v=3","gravatar_id":"","url":"https://api.github.com/users/bloomberg","html_url":"https://github.com/bloomberg","followers_url":"https://api.github.com/users/bloomberg/followers","following_url":"https://api.github.com/users/bloomberg/following{/other_user}","gists_url":"https://api.github.com/users/bloomberg/gists{/gist_id}","starred_url":"https://api.github.com/users/bloomberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloomberg/subscriptions","organizations_url":"https://api.github.com/users/bloomberg/orgs","repos_url":"https://api.github.com/users/bloomberg/repos","events_url":"https://api.github.com/users/bloomberg/events{/privacy}","received_events_url":"https://api.github.com/users/bloomberg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bloomberg/userchroot","description":"A tool to allow controlled access to 'chroot' functionality by users without root permissions","fork":false,"url":"https://api.github.com/repos/bloomberg/userchroot","forks_url":"https://api.github.com/repos/bloomberg/userchroot/forks","keys_url":"https://api.github.com/repos/bloomberg/userchroot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bloomberg/userchroot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bloomberg/userchroot/teams","hooks_url":"https://api.github.com/repos/bloomberg/userchroot/hooks","issue_events_url":"https://api.github.com/repos/bloomberg/userchroot/issues/events{/number}","events_url":"https://api.github.com/repos/bloomberg/userchroot/events","assignees_url":"https://api.github.com/repos/bloomberg/userchroot/assignees{/user}","branches_url":"https://api.github.com/repos/bloomberg/userchroot/branches{/branch}","tags_url":"https://api.github.com/repos/bloomberg/userchroot/tags","blobs_url":"https://api.github.com/repos/bloomberg/userchroot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bloomberg/userchroot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bloomberg/userchroot/git/refs{/sha}","trees_url":"https://api.github.com/repos/bloomberg/userchroot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bloomberg/userchroot/statuses/{sha}","languages_url":"https://api.github.com/repos/bloomberg/userchroot/languages","stargazers_url":"https://api.github.com/repos/bloomberg/userchroot/stargazers","contributors_url":"https://api.github.com/repos/bloomberg/userchroot/contributors","subscribers_url":"https://api.github.com/repos/bloomberg/userchroot/subscribers","subscription_url":"https://api.github.com/repos/bloomberg/userchroot/subscription","commits_url":"https://api.github.com/repos/bloomberg/userchroot/commits{/sha}","git_commits_url":"https://api.github.com/repos/bloomberg/userchroot/git/commits{/sha}","comments_url":"https://api.github.com/repos/bloomberg/userchroot/comments{/number}","issue_comment_url":"https://api.github.com/repos/bloomberg/userchroot/issues/comments{/number}","contents_url":"https://api.github.com/repos/bloomberg/userchroot/contents/{+path}","compare_url":"https://api.github.com/repos/bloomberg/userchroot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bloomberg/userchroot/merges","archive_url":"https://api.github.com/repos/bloomberg/userchroot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bloomberg/userchroot/downloads","issues_url":"https://api.github.com/repos/bloomberg/userchroot/issues{/number}","pulls_url":"https://api.github.com/repos/bloomberg/userchroot/pulls{/number}","milestones_url":"https://api.github.com/repos/bloomberg/userchroot/milestones{/number}","notifications_url":"https://api.github.com/repos/bloomberg/userchroot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bloomberg/userchroot/labels{/name}","releases_url":"https://api.github.com/repos/bloomberg/userchroot/releases{/id}","deployments_url":"https://api.github.com/repos/bloomberg/userchroot/deployments","created_at":"2015-11-11T21:18:35Z","updated_at":"2016-04-28T00:28:45Z","pushed_at":"2016-05-03T22:14:14Z","git_url":"git://github.com/bloomberg/userchroot.git","ssh_url":"git@github.com:bloomberg/userchroot.git","clone_url":"https://github.com/bloomberg/userchroot.git","svn_url":"https://github.com/bloomberg/userchroot","homepage":null,"size":13,"stargazers_count":3,"watchers_count":3,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/1"},"html":{"href":"https://github.com/bloomberg/userchroot/pull/1"},"issue":{"href":"https://api.github.com/repos/bloomberg/userchroot/issues/1"},"comments":{"href":"https://api.github.com/repos/bloomberg/userchroot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bloomberg/userchroot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/bloomberg/userchroot/statuses/241b93f9810b010b3dacf14022e1546ba691a8f2"}}}}