Workaround python-libselinux API change (#25685)
Workaround python-libselinux API change (#25685)

In the past, selinux.security_get_boolean_names did return 'bytes'
on python 3, but this was changed to return string later, cf:
https://github.com/SELinuxProject/selinux/commit/b8711e2eaf4f83bf943ac8ad28c35cb1db9c001f

So we have to convert to bytes only if the API return us bytes.

Fix #25651
thaim/ansible,thaim/ansible