mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-15 11:40:47 +00:00
Add Constraint and Validatetrans class docs.
This commit is contained in:
parent
a08873765c
commit
5983b87d5f
@ -228,6 +228,8 @@ class BaseConstraint(symbol.PolicySymbol):
|
||||
|
||||
class Constraint(BaseConstraint):
|
||||
|
||||
"""A constraint rule (constrain/mlsconstrain)."""
|
||||
|
||||
def __str__(self):
|
||||
rule_string = "{0.ruletype} {0.tclass} ".format(self)
|
||||
|
||||
@ -250,5 +252,7 @@ class Constraint(BaseConstraint):
|
||||
|
||||
class Validatetrans(BaseConstraint):
|
||||
|
||||
"""A validatetrans rule (validatetrans/mlsvalidatetrans)."""
|
||||
|
||||
def __str__(self):
|
||||
return "{0.ruletype} {0.tclass}\n\t{1}\n);".format(self, self._build_expression())
|
||||
|
Loading…
Reference in New Issue
Block a user