{"action":"created","issue":{"url":"https://api.github.com/repos/skottler/selinux/issues/25","labels_url":"https://api.github.com/repos/skottler/selinux/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/skottler/selinux/issues/25/comments","events_url":"https://api.github.com/repos/skottler/selinux/issues/25/events","html_url":"https://github.com/skottler/selinux/issues/25","id":71682737,"number":25,"title":"Deletion of /etc/selinux/config and cookbook doesn't restore it","user":{"login":"Bob-RH","id":9721647,"avatar_url":"https://avatars.githubusercontent.com/u/9721647?v=3","gravatar_id":"","url":"https://api.github.com/users/Bob-RH","html_url":"https://github.com/Bob-RH","followers_url":"https://api.github.com/users/Bob-RH/followers","following_url":"https://api.github.com/users/Bob-RH/following{/other_user}","gists_url":"https://api.github.com/users/Bob-RH/gists{/gist_id}","starred_url":"https://api.github.com/users/Bob-RH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bob-RH/subscriptions","organizations_url":"https://api.github.com/users/Bob-RH/orgs","repos_url":"https://api.github.com/users/Bob-RH/repos","events_url":"https://api.github.com/users/Bob-RH/events{/privacy}","received_events_url":"https://api.github.com/users/Bob-RH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T19:40:33Z","updated_at":"2015-04-28T19:45:22Z","closed_at":null,"body":"Hi,\r\n\r\nIn testing this cookbook, I deleted /etc/selinux/config and on the next chef-client run it wasn't restored.  \r\nThe initial run updated the state to permissive and rewrote /etc/selinux/config.  So, I was expecting the cookbook to replace the file on the next run.\r\n\r\nBob"},"comment":{"url":"https://api.github.com/repos/skottler/selinux/issues/comments/97183492","html_url":"https://github.com/skottler/selinux/issues/25#issuecomment-97183492","issue_url":"https://api.github.com/repos/skottler/selinux/issues/25","id":97183492,"user":{"login":"Bob-RH","id":9721647,"avatar_url":"https://avatars.githubusercontent.com/u/9721647?v=3","gravatar_id":"","url":"https://api.github.com/users/Bob-RH","html_url":"https://github.com/Bob-RH","followers_url":"https://api.github.com/users/Bob-RH/followers","following_url":"https://api.github.com/users/Bob-RH/following{/other_user}","gists_url":"https://api.github.com/users/Bob-RH/gists{/gist_id}","starred_url":"https://api.github.com/users/Bob-RH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bob-RH/subscriptions","organizations_url":"https://api.github.com/users/Bob-RH/orgs","repos_url":"https://api.github.com/users/Bob-RH/repos","events_url":"https://api.github.com/users/Bob-RH/events{/privacy}","received_events_url":"https://api.github.com/users/Bob-RH/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T19:45:22Z","updated_at":"2015-04-28T19:45:22Z","body":"Initial chef client run:\r\n\r\nRecipe: selinux::_common\r\n  * package[libselinux-utils] action install (up to date)\r\n  * directory[/etc/selinux] action create (up to date)\r\nRecipe: selinux::default\r\n  * selinux_state[SELinux Permissive] action permissive (up to date)\r\n  * execute[selinux-permissive] action run\r\n    - execute setenforce 0\r\n  * template[permissive selinux config] action create\r\n    - update content in file /etc/selinux/config from 4ccf43 to ff6c13\r\n    --- /etc/selinux/config     2013-12-13 08:53:26.000000000 -0800\r\n    +++ /tmp/chef-rendered-template20150428-13443-1bm0cr3       2015-04-28 11:40:45.575793297 -0700\r\n    @@ -1,4 +1,4 @@\r\n    -#This file controls the state of SELinux on the system.\r\n    +# This file controls the state of SELinux on the system.\r\n     # SELINUX= can take one of these three values:\r\n     #       enforcing - SELinux security policy is enforced.\r\n     #       permissive - SELinux prints warnings instead of enforcing.\r\n    @@ -8,4 +8,5 @@\r\n     #       targeted - Only targeted network daemons are protected.\r\n     #       strict - Full SELinux protection.\r\n     SELINUXTYPE=targeted\r\n    +\r\n    - restore selinux security context\r\n\r\n\r\nSubsequent chef-client run output (still running the resource)\r\n\r\nRecipe: selinux::_common\r\n  * package[libselinux-utils] action install (up to date)\r\n  * directory[/etc/selinux] action create (up to date)\r\nRecipe: selinux::default\r\n  * selinux_state[SELinux Permissive] action permissive (up to date)\r\n  * execute[selinux-permissive] action run\r\n    - execute setenforce 0\r\n  * template[permissive selinux config] action create (up to date)\r\n\r\nSubsequent run after deleting /etc/selinux/config file\r\n\r\nRecipe: selinux::_common\r\n  * package[libselinux-utils] action install (up to date)\r\n  * directory[/etc/selinux] action create (up to date)\r\nRecipe: selinux::default\r\n  * selinux_state[SELinux Permissive] action permissive (up to date)\r\n\r\n"}}