def __virtual__():
    return 'selinux' if 'selinux.getenforce' in __salt__ else False
Only make this state available if the selinux module is available.
dataset/ETHPy150Open saltstack/salt/salt/states/selinux.py/__virtual__