{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/483","labels_url":"https://api.github.com/repos/systemd/systemd/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/483/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/483/events","html_url":"https://github.com/systemd/systemd/pull/483","id":92879921,"number":483,"title":"nspawn: Open-code changing selinux exec context","user":{"login":"richardmaw-codethink","id":10549489,"avatar_url":"https://avatars.githubusercontent.com/u/10549489?v=3","gravatar_id":"","url":"https://api.github.com/users/richardmaw-codethink","html_url":"https://github.com/richardmaw-codethink","followers_url":"https://api.github.com/users/richardmaw-codethink/followers","following_url":"https://api.github.com/users/richardmaw-codethink/following{/other_user}","gists_url":"https://api.github.com/users/richardmaw-codethink/gists{/gist_id}","starred_url":"https://api.github.com/users/richardmaw-codethink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardmaw-codethink/subscriptions","organizations_url":"https://api.github.com/users/richardmaw-codethink/orgs","repos_url":"https://api.github.com/users/richardmaw-codethink/repos","events_url":"https://api.github.com/users/richardmaw-codethink/events{/privacy}","received_events_url":"https://api.github.com/users/richardmaw-codethink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/nspawn","name":"nspawn","color":"bfdadc"},{"url":"https://api.github.com/repos/systemd/systemd/labels/selinux","name":"selinux","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-03T13:47:31Z","updated_at":"2015-07-07T13:22:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/483","html_url":"https://github.com/systemd/systemd/pull/483","diff_url":"https://github.com/systemd/systemd/pull/483.diff","patch_url":"https://github.com/systemd/systemd/pull/483.patch"},"body":"This is the local patch I have for issue #475. This is mostly submitted for completeness, as ideally glibc or libselinux would be fixed."},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/119201280","html_url":"https://github.com/systemd/systemd/pull/483#issuecomment-119201280","issue_url":"https://api.github.com/repos/systemd/systemd/issues/483","id":119201280,"user":{"login":"richardmaw-codethink","id":10549489,"avatar_url":"https://avatars.githubusercontent.com/u/10549489?v=3","gravatar_id":"","url":"https://api.github.com/users/richardmaw-codethink","html_url":"https://github.com/richardmaw-codethink","followers_url":"https://api.github.com/users/richardmaw-codethink/followers","following_url":"https://api.github.com/users/richardmaw-codethink/following{/other_user}","gists_url":"https://api.github.com/users/richardmaw-codethink/gists{/gist_id}","starred_url":"https://api.github.com/users/richardmaw-codethink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardmaw-codethink/subscriptions","organizations_url":"https://api.github.com/users/richardmaw-codethink/orgs","repos_url":"https://api.github.com/users/richardmaw-codethink/repos","events_url":"https://api.github.com/users/richardmaw-codethink/events{/privacy}","received_events_url":"https://api.github.com/users/richardmaw-codethink/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T13:22:30Z","updated_at":"2015-07-07T13:22:30Z","body":"From my understanding of the code in question, all the caching becomes unnecessary on recent enough kernels as you can write to `/proc/thread-self/attr/exec`.\r\nIf it were me I'd use a raw `getpid()` syscall in the fallback, or see if it were suitable to put `getpid()` into the vdso, as I understand the caching of gettime was moved in there for similar reasons."}}