{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/3589","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/3589/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/3589/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/3589/events","html_url":"https://github.com/systemd/systemd/pull/3589","id":161904592,"number":3589,"title":"Cgroup namespace","user":{"login":"brauner","id":7353573,"avatar_url":"https://avatars.githubusercontent.com/u/7353573?v=3","gravatar_id":"","url":"https://api.github.com/users/brauner","html_url":"https://github.com/brauner","followers_url":"https://api.github.com/users/brauner/followers","following_url":"https://api.github.com/users/brauner/following{/other_user}","gists_url":"https://api.github.com/users/brauner/gists{/gist_id}","starred_url":"https://api.github.com/users/brauner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brauner/subscriptions","organizations_url":"https://api.github.com/users/brauner/orgs","repos_url":"https://api.github.com/users/brauner/repos","events_url":"https://api.github.com/users/brauner/events{/privacy}","received_events_url":"https://api.github.com/users/brauner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/cgroups","name":"cgroups","color":"d4c5f9"},{"url":"https://api.github.com/repos/systemd/systemd/labels/ci-fails/needs-rework","name":"ci-fails/needs-rework","color":"e11d21"},{"url":"https://api.github.com/repos/systemd/systemd/labels/nspawn","name":"nspawn","color":"bfdadc"},{"url":"https://api.github.com/repos/systemd/systemd/labels/reviewed/needs-rework","name":"reviewed/needs-rework","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-06-23T11:55:01Z","updated_at":"2016-06-29T16:09:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/3589","html_url":"https://github.com/systemd/systemd/pull/3589","diff_url":"https://github.com/systemd/systemd/pull/3589.diff","patch_url":"https://github.com/systemd/systemd/pull/3589.patch"},"body":"This adds support for cgroup namespaces which are available since 4.6. Cgroup namespaces work with both, the legacy and unified cgroup hierarchy. For legacy:\r\n\r\nInside new cgroup namespace:\r\n```\r\nsudo unshare --cgroup\r\n\r\nconventiont:/home/chb # cat /proc/self/cgroup\r\n11:blkio:/\r\n10:memory:/\r\n9:net_cls,net_prio:/\r\n8:hugetlb:/\r\n7:cpu,cpuacct:/\r\n6:freezer:/\r\n5:cpuset:/\r\n4:pids:/\r\n3:devices:/\r\n2:perf_event:/\r\n1:name=systemd:/\r\n\r\nconventiont:/home/chb # ls -al /proc/self/ns/cgroup\r\nlrwxrwxrwx 1 root root 0 Jun 23 13:52 /proc/self/ns/cgroup -> cgroup:[4026532485]\r\n```\r\n\r\nParent cgroup namespace:\r\n\r\n```\r\n[chb@conventiont ~]$ cat /proc/self/cgroup\r\n11:blkio:/user.slice\r\n10:memory:/user.slice\r\n9:net_cls,net_prio:/user.slice\r\n8:hugetlb:/\r\n7:cpu,cpuacct:/user.slice\r\n6:freezer:/\r\n5:cpuset:/\r\n4:pids:/user.slice/user-1000.slice/session-1.scope\r\n3:devices:/user.slice\r\n2:perf_event:/\r\n1:name=systemd:/user.slice/user-1000.slice/session-1.scope\r\n\r\n[chb@conventiont ~]$ ls -al /proc/self/ns/cgroup\r\nlrwxrwxrwx 1 chb users 0 Jun 23 13:52 /proc/self/ns/cgroup -> 'cgroup:[4026531835]'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/229405839","html_url":"https://github.com/systemd/systemd/pull/3589#issuecomment-229405839","issue_url":"https://api.github.com/repos/systemd/systemd/issues/3589","id":229405839,"user":{"login":"brauner","id":7353573,"avatar_url":"https://avatars.githubusercontent.com/u/7353573?v=3","gravatar_id":"","url":"https://api.github.com/users/brauner","html_url":"https://github.com/brauner","followers_url":"https://api.github.com/users/brauner/followers","following_url":"https://api.github.com/users/brauner/following{/other_user}","gists_url":"https://api.github.com/users/brauner/gists{/gist_id}","starred_url":"https://api.github.com/users/brauner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brauner/subscriptions","organizations_url":"https://api.github.com/users/brauner/orgs","repos_url":"https://api.github.com/users/brauner/repos","events_url":"https://api.github.com/users/brauner/events{/privacy}","received_events_url":"https://api.github.com/users/brauner/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T16:09:24Z","updated_at":"2016-06-29T16:09:24Z","body":"The `networkd             FAIL non-zero exit status 1` status isn't related to this patch, I think."}}
{"actor":{"display_login":"brauner"}}