Revert "remove redundant selinux check"

This reverts commit 1f59efa4311cd512c734d101edc3660e05218539.