Revert "Remove redundant selinux check"

This reverts commit 544a5df15b242a8b884caeb11932f47c62bb6fe5.