{"action":"created","issue":{"url":"https://api.github.com/repos/softdevteam/krun/issues/227","repository_url":"https://api.github.com/repos/softdevteam/krun","labels_url":"https://api.github.com/repos/softdevteam/krun/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/softdevteam/krun/issues/227/comments","events_url":"https://api.github.com/repos/softdevteam/krun/issues/227/events","html_url":"https://github.com/softdevteam/krun/pull/227","id":163178002,"number":227,"title":"Use a fresh user account for each process execution.","user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/softdevteam/krun/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/softdevteam/krun/labels/medium%20priority%20(a%20clear%20improvement%20but%20not%20a%20blocker%20for%20publication)","name":"medium priority (a clear improvement but not a blocker for publication)","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"ltratt","id":20318,"avatar_url":"https://avatars.githubusercontent.com/u/20318?v=3","gravatar_id":"","url":"https://api.github.com/users/ltratt","html_url":"https://github.com/ltratt","followers_url":"https://api.github.com/users/ltratt/followers","following_url":"https://api.github.com/users/ltratt/following{/other_user}","gists_url":"https://api.github.com/users/ltratt/gists{/gist_id}","starred_url":"https://api.github.com/users/ltratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltratt/subscriptions","organizations_url":"https://api.github.com/users/ltratt/orgs","repos_url":"https://api.github.com/users/ltratt/repos","events_url":"https://api.github.com/users/ltratt/events{/privacy}","received_events_url":"https://api.github.com/users/ltratt/received_events","type":"User","site_admin":false},"assignees":[{"login":"ltratt","id":20318,"avatar_url":"https://avatars.githubusercontent.com/u/20318?v=3","gravatar_id":"","url":"https://api.github.com/users/ltratt","html_url":"https://github.com/ltratt","followers_url":"https://api.github.com/users/ltratt/followers","following_url":"https://api.github.com/users/ltratt/following{/other_user}","gists_url":"https://api.github.com/users/ltratt/gists{/gist_id}","starred_url":"https://api.github.com/users/ltratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltratt/subscriptions","organizations_url":"https://api.github.com/users/ltratt/orgs","repos_url":"https://api.github.com/users/ltratt/repos","events_url":"https://api.github.com/users/ltratt/events{/privacy}","received_events_url":"https://api.github.com/users/ltratt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2016-06-30T14:23:39Z","updated_at":"2016-08-04T13:14:36Z","closed_at":"2016-08-04T13:13:49Z","pull_request":{"url":"https://api.github.com/repos/softdevteam/krun/pulls/227","html_url":"https://github.com/softdevteam/krun/pull/227","diff_url":"https://github.com/softdevteam/krun/pull/227.diff","patch_url":"https://github.com/softdevteam/krun/pull/227.patch"},"body":"Needs to be tested on OpenBSD. Fixes #226.\r\n\r\nDebug log snippet on Linux:\r\n```\r\n...\r\n[2016-06-30 15:04:58 DEBUG] Writing out wrapper script to /tmp/krun_wrapper.dash\r\n[2016-06-30 15:04:58 DEBUG] Wrapper script:\r\n#!/bin/dash\r\nulimit -d 2097152 || exit $?\r\nulimit -s 8192 || exit $?\r\nenv LD_LIBRARY_PATH=/home/vext01/research/warmup_experiment/krun/krun/../libkrun /home/vext01/research/warmup_experiment/\r\nkrun/iterations_runners/iterations_runner_c /home/vext01/research/warmup_experiment/krun/examples/benchmarks/dummy/c/benc\r\nh.so 5 1000 1 0\r\nexit $?\r\n[2016-06-30 15:04:58 DEBUG] Execute wrapper: /usr/bin/sudo -u root /usr/bin/nice -n -20 /usr/bin/sudo -u krun /bin/dash /\r\ntmp/krun_wrapper.dash\r\n[2016-06-30 15:04:58 DEBUG] Delete krun user\r\n[2016-06-30 15:04:58 DEBUG] execute shell cmd: /usr/bin/sudo -u root userdel -r -f krun\r\n[2016-06-30 15:04:59 DEBUG] Create krun user\r\n[2016-06-30 15:04:59 DEBUG] execute shell cmd: /usr/bin/sudo -u root useradd -m krun\r\n[2016-06-30 15:04:59 DEBUG] sync disks...\r\n[2016-06-30 15:04:59 WARNING] SIMULATED: `time.sleep(30)` (--quick)\r\n[2016-06-30 15:04:59 INFO] stderr: [iterations_runner.c] iteration 1/5\r\n[2016-06-30 15:05:00 INFO] stderr: [iterations_runner.c] iteration 2/5\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/softdevteam/krun/issues/comments/237548856","html_url":"https://github.com/softdevteam/krun/pull/227#issuecomment-237548856","issue_url":"https://api.github.com/repos/softdevteam/krun/issues/227","id":237548856,"user":{"login":"vext01","id":604955,"avatar_url":"https://avatars.githubusercontent.com/u/604955?v=3","gravatar_id":"","url":"https://api.github.com/users/vext01","html_url":"https://github.com/vext01","followers_url":"https://api.github.com/users/vext01/followers","following_url":"https://api.github.com/users/vext01/following{/other_user}","gists_url":"https://api.github.com/users/vext01/gists{/gist_id}","starred_url":"https://api.github.com/users/vext01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vext01/subscriptions","organizations_url":"https://api.github.com/users/vext01/orgs","repos_url":"https://api.github.com/users/vext01/repos","events_url":"https://api.github.com/users/vext01/events{/privacy}","received_events_url":"https://api.github.com/users/vext01/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T13:14:36Z","updated_at":"2016-08-04T13:14:36Z","body":"It happens. And it won't be the last time for either of us :)"}}
{"actor":{"display_login":"vext01"}}