Commit Graph

4 Commits

Author SHA1 Message Date
Chris PeBenito
4684eca5bc tests: Revise unit tests for binary-only policy support.
Closes #72
2018-06-15 20:26:49 -04:00
Chris PeBenito
bb5cffd44e Extend indirect handling for rule queries.
Range_transitions are expanded in the qpol representation, but attributes
can still be used as criteria.

Hard code default role to indirect to handle role attributes in the
criteria.  Role attributes don't survive in the qpol
representation yet, so this is a forward-looking change.

Similarly hard code the default type matching to indirect so attributes can
be used for default type criteria in type_* rules.  Adjust default criteria
lookup function accordingly.

Related to #111
2016-03-16 14:06:49 -04:00
Chris PeBenito
175b7c167f Implement range matching in MLSRuleQuery.
Skip adding all of the range matching options in sesearch for now, as it
already has a large number of CLI options.

closes #5
2015-02-25 14:17:38 -05:00
Chris PeBenito
248df414ab Add MLSRuleQuery unit tests.
Turns out the rules are always expanded, so indirect options had
no effect.
2014-11-06 19:59:02 -05:00