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:
Chris PeBenito 2016-03-30 08:38:09 -04:00
parent c85d67f9e2
commit 69332d4e64

View File

@ -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