mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-22 06:56:50 +00:00
policyrep.mls.enabled: convert return from int to bool.
This commit is contained in:
parent
670efbdf21
commit
b5351f7104
@ -43,7 +43,7 @@ from . import symbol
|
||||
|
||||
def enabled(policy):
|
||||
"""Determine if MLS is enabled."""
|
||||
return policy.capability(qpol.QPOL_CAP_MLS)
|
||||
return bool(policy.capability(qpol.QPOL_CAP_MLS))
|
||||
|
||||
|
||||
def category_factory(policy, sym):
|
||||
|
Loading…
Reference in New Issue
Block a user