Catch exceptions when detecting SELinux status
(#18429) Remove trailing whitespace
(#18429) Add a spec test describing the error scenario
Merge pull request #546 from kylog/issue/18429-catch-exceptions-when-detecting-selinux-status

Issue/18429 catch exceptions when detecting selinux status