Home | History | Annotate | Download | only in policyrep

Lines Matching refs:rule

23 from . import rule
29 """Factory function for creating MLS rule objects."""
40 original The MLS rule the expanded rule originates from.
41 source The source type of the expanded rule.
42 target The target type of the expanded rule.
48 rule = ExpandedMLSRule(original.policy, original.qpol_symbol)
50 raise TypeError("The original rule must be a MLS rule class.")
52 rule.source = source
53 rule.target = target
54 rule.origin = original
55 return rule
59 """Validate MLS rule types."""
61 raise exception.InvalidMLSRuleType("{0} is not a valid MLS rule type.".format(t))
66 class MLSRule(rule.PolicyRule):
68 """An MLS rule."""
77 """The rule's source type/attribute."""
82 """The rule's target type/attribute."""
87 """The rule's default range."""
91 """Expand the rule into an equivalent set of rules without attributes."""
98 """An expanded MLS rule."""