{"action":"closed","issue":{"url":"https://api.github.com/repos/freedomofpress/grsec/issues/24","labels_url":"https://api.github.com/repos/freedomofpress/grsec/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/freedomofpress/grsec/issues/24/comments","events_url":"https://api.github.com/repos/freedomofpress/grsec/issues/24/events","html_url":"https://github.com/freedomofpress/grsec/issues/24","id":113690873,"number":24,"title":"Install role: support upgrading via deb packages","user":{"login":"conorsch","id":657862,"avatar_url":"https://avatars.githubusercontent.com/u/657862?v=3","gravatar_id":"","url":"https://api.github.com/users/conorsch","html_url":"https://github.com/conorsch","followers_url":"https://api.github.com/users/conorsch/followers","following_url":"https://api.github.com/users/conorsch/following{/other_user}","gists_url":"https://api.github.com/users/conorsch/gists{/gist_id}","starred_url":"https://api.github.com/users/conorsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conorsch/subscriptions","organizations_url":"https://api.github.com/users/conorsch/orgs","repos_url":"https://api.github.com/users/conorsch/repos","events_url":"https://api.github.com/users/conorsch/events{/privacy}","received_events_url":"https://api.github.com/users/conorsch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-27T21:15:09Z","updated_at":"2015-12-04T19:06:38Z","closed_at":"2015-12-04T19:06:38Z","body":"The current install role cautiously refuses to install a grsec deb package if the grsec kernel is already running. This limitation exists because the check for whether grsec is currently running isn't smart enough to check for a specific version that matches the deb file used.\r\n\r\nWe can add logic to extract the version from the deb file specified in `grsecurity_deb_package`, then verify that the same version is running post-reboot, via `ansible_kernel`. \r\n\r\nWe also need to test the upgrade procedure between multiple grsec versions. In particular, pay attention to the `match` filter used in the `grub_menu_options` module (see #22). Current theory: the way it's written it'll match the _last_ entry, with entries sorted by order of appearance inside the GRUB config file. We want to make sure that the entries are sorted via semver, and the latest wins."}}