mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-01 00:06:19 +00:00
BaseTERule: Fix conditional_block property.
In apol, unconditional TE rules were shown as having no conditional but as being in the False block. Since the _conditional_block attribute is bint, it will never be None. Use the _conditional attribute to determine if the rule is conditional.
This commit is contained in:
parent
ce1f6ecc9f
commit
1448413c5c
@ -80,7 +80,7 @@ cdef class BaseTERule(PolicyRule):
|
|||||||
If the rule is here, this property is False
|
If the rule is here, this property is False
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
if self._conditional_block is None:
|
if self._conditional is None:
|
||||||
raise RuleNotConditional
|
raise RuleNotConditional
|
||||||
else:
|
else:
|
||||||
return self._conditional_block
|
return self._conditional_block
|
||||||
|
Loading…
Reference in New Issue
Block a user