6304942 Ticket 50622 - ds_selinux_enabled may crash on suse

Authored and Committed by firstyear 4 years ago
    Ticket 50622 - ds_selinux_enabled may crash on suse
    
    Bug Description: SUSE doesn't have the python-selinux module by
    default, so this tool crashes as it can't find the python
    module for import.
    
    Fix Description: ATtempt to import the library, and on failure
    return false for enabled.
    
    https://pagure.io/389-ds-base/issue/50622
    
    Author: William Brown <william@blackhats.net.au>
    
    Review by: mhonek (Thanks!)