mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-25 04:26:28 +00:00
AVRuleXperm: add missing hashing function.
Since there is only one permission that can be extended, not having this was not an issue.
This commit is contained in:
parent
c85d67f9e2
commit
69332d4e64
@ -215,6 +215,9 @@ class AVRuleXperm(AVRule):
|
||||
|
||||
extended = True
|
||||
|
||||
def __hash__(self):
|
||||
return hash("{0.ruletype}|{0.source}|{0.target}|{0.tclass}|{0.xperm_type}".format(self))
|
||||
|
||||
def __str__(self):
|
||||
try:
|
||||
return self._rule_string
|
||||
|
Loading…
Reference in New Issue
Block a user