{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1630","repository_url":"https://api.github.com/repos/projectatomic/rpm-ostree","labels_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1630/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1630/comments","events_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1630/events","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1630","id":372346902,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTYyMzU5","number":1630,"title":"Lower initial SELinux policy load from compose to core","user":{"login":"cgwalters","id":244096,"node_id":"MDQ6VXNlcjI0NDA5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/244096?v=4","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-21T19:12:41Z","updated_at":"2018-10-22T13:11:53Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/pulls/1630","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1630","diff_url":"https://github.com/projectatomic/rpm-ostree/pull/1630.diff","patch_url":"https://github.com/projectatomic/rpm-ostree/pull/1630.patch"},"body":"\r\nAdd a `selinux` verb to treespec, and bind it from treefile.  If\r\nset, use it in the core to load an initial policy before import,\r\nif we didn't already set a policy.\r\n\r\nIn practice right now this is only used from the compose path\r\nsince the SysrootUpgrader uses the policy from the merge deployment.\r\n\r\nUnset the policy if rojig mode is enabled.\r\n\r\nNow, non-SELinux use cases are required to set `selinux: false`\r\nin the treespec. For `ex container` I just set it in our example\r\nspecs.  Probably that should forcibly disable it in the\r\ntreespec but eh, it's experimental.\r\n\r\nThe other case I can think of is client-side layering; before\r\nwe would create a policy using the target root, but it\r\nwasn't a *hard* requirement, i.e. we didn't error out if\r\n`policy_get_name() == NULL`.  Let's preserve that semantic by\r\nhooking off of whether `_new_system()` was used.\r\n\r\nPrep for sharing code with `compose rojig`."},"comment":{"url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/comments/431831352","html_url":"https://github.com/projectatomic/rpm-ostree/pull/1630#issuecomment-431831352","issue_url":"https://api.github.com/repos/projectatomic/rpm-ostree/issues/1630","id":431831352,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgzMTM1Mg==","user":{"login":"cgwalters","id":244096,"node_id":"MDQ6VXNlcjI0NDA5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/244096?v=4","gravatar_id":"","url":"https://api.github.com/users/cgwalters","html_url":"https://github.com/cgwalters","followers_url":"https://api.github.com/users/cgwalters/followers","following_url":"https://api.github.com/users/cgwalters/following{/other_user}","gists_url":"https://api.github.com/users/cgwalters/gists{/gist_id}","starred_url":"https://api.github.com/users/cgwalters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgwalters/subscriptions","organizations_url":"https://api.github.com/users/cgwalters/orgs","repos_url":"https://api.github.com/users/cgwalters/repos","events_url":"https://api.github.com/users/cgwalters/events{/privacy}","received_events_url":"https://api.github.com/users/cgwalters/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T13:11:53Z","updated_at":"2018-10-22T13:11:53Z","author_association":"MEMBER","body":"bot, retest this please"}}
{"actor":{"display_login":"cgwalters"}}