Commit Graph

27 Commits

Author SHA1 Message Date
Chris PeBenito
8e082f70cf Replace license text in sources with SPDX license indentifiers.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2021-11-20 14:12:15 -05:00
Chris PeBenito
210665f575 Implement utility functions for parsing configuration strings.
These are various functions such as parsing comma separated strings,
looking up objects in the policy, and expanding attributes.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
2020-06-10 11:09:06 -04:00
Chris PeBenito
832462fd0f Add ibendportcon and ibpkeycon queries. 2018-11-25 10:51:23 -05:00
Chris PeBenito
26333f32b0 Implement BoundsQuery. 2016-02-10 21:49:04 -05:00
Chris PeBenito
8c5a7caa9e Implement DefaultQuery
Closes 
Closes 
2016-02-01 09:06:02 -05:00
Chris PeBenito
eae9ff97d5 setools: add PolicyDifference class
Begin diff functions by implementing type difference function.

Closes 
2015-12-17 11:08:35 -05:00
Chris PeBenito
df493bbb4a Fix PolCapTest. 2015-04-23 08:38:39 -04:00
Chris PeBenito
4ecd6d00a5 Implement TypeAttributeQuery.
closes 
closes 
2015-03-16 10:46:33 -04:00
Chris PeBenito
e3f2a98c43 Merge validatetrans into constraints in policyrep. 2015-03-14 14:52:58 -04:00
Chris PeBenito
ac19359b71 Implement SensitivityQuery
closes 
closes 
2015-03-07 11:16:59 -05:00
Chris PeBenito
17758ad5e9 Clean up imports 2015-03-07 09:45:17 -05:00
Chris PeBenito
e55764700c Refactor MLS-related objects.
Drop the "MLS" prepended to category, sensitivity, level, and range
objects.
2015-03-07 09:39:01 -05:00
Chris PeBenito
ceb6736962 Implement included/excluded classes/permissions in PermissionMap.
closes 
2015-02-16 16:31:18 -05:00
Chris PeBenito
2418619e2a Move permissive query into type query
TypeQuery needed the permisive matching support to be complete. This made
PermissiveQuery redundant.

Made the permissive state an option, so enforcing types could be queried.
2015-01-31 12:10:11 -05:00
Chris PeBenito
669bc5194a Implement NodeconQuery. 2014-11-08 22:40:42 -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
Chris PeBenito
fc597fed99 Add nodecon query.
It could use IPv6 tests, but those have the same code paths as IPv4.
2014-11-05 13:09:35 -05:00
Chris PeBenito
2842962942 Add FSUseQuery. 2014-11-03 13:50:06 -05:00
Chris PeBenito
4e7aeed9ff Implement genfscon query. 2014-11-02 10:47:30 -05:00
Chris PeBenito
43e9019193 Use relative imports for submodules.
Needed for Python 3.x.
2014-10-25 08:07:11 -04:00
Chris PeBenito
cf0c64a757 Add initial SID query unit tests. 2014-10-10 10:28:09 -04:00
Chris PeBenito
61e0a852e5 Add permissive type query. 2014-10-02 14:29:07 -04:00
Chris PeBenito
04c18218b2 Add RBAC rule query unit tests. 2014-10-02 11:37:28 -04:00
Chris PeBenito
997be5787b Implement object class and commons queries. 2014-08-01 08:56:29 -04:00
Chris PeBenito
917327f345 Implement role query. 2014-07-21 13:26:30 -04:00
Chris PeBenito
8ea6da9c2f Add user implementation and user query.
TODOL: MLS default level and range criteria
2014-07-17 09:39:06 -04:00
Chris PeBenito
39505d0295 Initial public release. 2014-07-08 14:28:55 -04:00