{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/runc/issues/471","labels_url":"https://api.github.com/repos/opencontainers/runc/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runc/issues/471/comments","events_url":"https://api.github.com/repos/opencontainers/runc/issues/471/events","html_url":"https://github.com/opencontainers/runc/pull/471","id":126463413,"number":471,"title":"add seccomp.IsEnabled() function","user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opencontainers/runc/labels/status/0-triage","name":"status/0-triage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-13T16:51:41Z","updated_at":"2016-01-15T10:37:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/opencontainers/runc/pulls/471","html_url":"https://github.com/opencontainers/runc/pull/471","diff_url":"https://github.com/opencontainers/runc/pull/471.diff","patch_url":"https://github.com/opencontainers/runc/pull/471.patch"},"body":"This is much like apparmor.IsEnabled() function and a nice helper.\r\n\r\nSigned-off-by: Jessica Frazelle <acidburn@docker.com>"},"comment":{"url":"https://api.github.com/repos/opencontainers/runc/issues/comments/171929520","html_url":"https://github.com/opencontainers/runc/pull/471#issuecomment-171929520","issue_url":"https://api.github.com/repos/opencontainers/runc/issues/471","id":171929520,"user":{"login":"cyphar","id":2888411,"avatar_url":"https://avatars.githubusercontent.com/u/2888411?v=3","gravatar_id":"","url":"https://api.github.com/users/cyphar","html_url":"https://github.com/cyphar","followers_url":"https://api.github.com/users/cyphar/followers","following_url":"https://api.github.com/users/cyphar/following{/other_user}","gists_url":"https://api.github.com/users/cyphar/gists{/gist_id}","starred_url":"https://api.github.com/users/cyphar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyphar/subscriptions","organizations_url":"https://api.github.com/users/cyphar/orgs","repos_url":"https://api.github.com/users/cyphar/repos","events_url":"https://api.github.com/users/cyphar/events{/privacy}","received_events_url":"https://api.github.com/users/cyphar/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T10:37:16Z","updated_at":"2016-01-15T10:37:16Z","body":"@jfrazelle Wouldn't something like this be okay for us:\r\n\r\n1. `state=$(grep '^Seccomp:' /proc/self/status | awk '{ print $2 }'`\r\n2. If no match found, do `prctl` to double-check (either it's not compiled into the kernel or they're on `linux<3.8`)."}}