def get_service(ns):
    inst = ns.LMI_SELinuxService.first_instance()

    if inst is None:
        raise LmiFailed('Failed to get instance of LMI_SELinuxService.')

    return inst
Get instance of SELinux service.
dataset/ETHPy150Open openlmi/openlmi-scripts/commands/selinux/lmi/scripts/selinux/__init__.py/get_service