Commit Graph

366 Commits

Author SHA1 Message Date
Chris PeBenito
e9c48d6b5b TERuleQueryTab: further layout adjustments
Better make use of expanded criteria box.
2015-06-07 10:54:33 -04:00
Chris PeBenito
13d6531947 TERuleQueryTab: convert radio buttons to checkboxes.
Keep UI consistent.
2015-06-07 10:22:43 -04:00
Chris PeBenito
ce70c48c28 SEToolsWidget: change ui path to use sys.prefix. 2015-06-07 10:02:53 -04:00
Chris PeBenito
911e44d5d8 TERuleQueryTab: remove unnecessary outer widget
Make the scroll area the top level widget for the tab.
2015-06-06 11:36:49 -04:00
Chris PeBenito
d26101d041 Squeeze margins so the tab widgets have more room.
The tabs have deeply nested container widgets, so a lot of room is lost
on margins.
2015-06-05 15:05:18 -04:00
Chris PeBenito
ee6a619113 TERuleQueryTab: move clear button connections into the .ui 2015-06-05 10:51:00 -04:00
Chris PeBenito
b1b721aea1 TERuleQueryTab: connect radio buttons 2015-06-05 10:40:14 -04:00
Chris PeBenito
5476535659 ChooseAnalysis: simplify exception handler on input 2015-06-05 09:00:38 -04:00
Chris PeBenito
c8419393fb TERuleQueryTab: add default type and boolean criteria 2015-06-05 08:59:29 -04:00
Chris PeBenito
765039621e TERuleQueryTab: change tooltip setting on setupUi
Make sure the normal tooltip is consistent after an error.
2015-06-05 08:54:55 -04:00
Chris PeBenito
ff5c2dfde1 TERuleQueryTab: only set column sizing once (on setupUi) 2015-06-04 12:50:55 -04:00
Chris PeBenito
7af8c276cf Create collapsible sections in TERuleQueryTab.
Source icons from Koloria Icon Set,
http://www.graphicrating.com/2012/06/14/koloria-free-icons-set/
2015-06-04 12:46:41 -04:00
Chris PeBenito
b619166ba0 Initial apol commit. 2015-06-03 13:33:11 -04:00
Chris PeBenito
4ce47e4e30 Fix swig commenting. 2015-05-29 13:29:01 -04:00
Chris PeBenito
4bea20b522 Misc docstring cleanups. 2015-05-16 22:01:03 -04:00
Chris PeBenito
e6f59d04e5 Refactor SETools queries/analyses to use descriptors instead of get/setters
This is Pythonic.
2015-05-16 21:59:10 -04:00
Chris PeBenito
ab3772843e Make libselinux bindings optional. 2015-05-10 12:15:16 -04:00
Chris PeBenito
20ee139f3b SELinuxPolicy: add support for finding the policy to load.
Restore legacy CLI tool behavior for not having to specify a policy to load
2015-05-08 15:21:00 -04:00
Chris PeBenito
ff1fb21012 Boolean: change state to a property. 2015-04-30 19:03:28 -04:00
Chris PeBenito
82b021a5a4 Portcon: implement port ranges using a namedtuple
Has the benefit of unifying the object attributes for port range and MLS
range objects, making the PolicyQuery._match_range() function work
naturally for both object types.
2015-04-27 14:15:31 -04:00
Chris PeBenito
da8b151d5c InfoFlowAnalysis: convert output to namedtuples 2015-04-26 10:41:03 -04:00
Chris PeBenito
d23bdd4895 DomainTransitionAnalysis: convert to named tuples for output
Makes output compact and easier to use for callers. Also it is backwards
compatible.
2015-04-26 10:19:42 -04:00
Chris PeBenito
43f7c19114 qpol.i: remove unneeded classes and functions. 2015-04-24 20:47:07 -04:00
Chris PeBenito
1406eb30c3 Implement InitialSIDTest. 2015-04-24 08:56:56 -04:00
Chris PeBenito
6de35b81f7 Implement CommonTest and ObjClassTest.
Also fix bugs uncovered by testing.
2015-04-23 11:04:37 -04:00
Chris PeBenito
7cb5762b4f TypeAttribute: add __contains__ 2015-04-23 09:00:07 -04:00
Chris PeBenito
970a905867 PolCapTest: add lookup test. 2015-04-23 08:53:19 -04:00
Chris PeBenito
df493bbb4a Fix PolCapTest. 2015-04-23 08:38:39 -04:00
Chris PeBenito
ae0e116567 Implement PolCapTest. 2015-04-22 18:01:22 -04:00
Chris PeBenito
f8a2023391 DomainTransitionAnalysis: implement Edge class and descriptors for graph access
Includes policyrep changes to handle the deepcopy needed by NetworkX. The
SWIG objects are treated as immutable, since they are proxies of C pointers
to immutable objects (raw policydb).

Also fixes PolicySymbol.__hash__(), as returning NotImplemented would
raise a TypeError.
2015-04-22 09:55:21 -04:00
Chris PeBenito
43b8fb5214 InfoFlowAnalysis: undo API change. 2015-04-22 08:54:59 -04:00
Chris PeBenito
3aaf8fa25e EdgeAttrIntMax: fix __set__ references. 2015-04-21 10:22:25 -04:00
Chris PeBenito
6904619197 InfoFlowAnalysis: implement Edge class and descriptors for graph access 2015-04-21 09:49:42 -04:00
Chris PeBenito
b1c2901e4f tests: fix iter() use in Mock objects
By using return_value, there was only one instance of the iterator, which
would cause problems if it needed to be used again but had already been
consumed. Switch to lambdas that return a new instance of the iter().
2015-04-18 10:47:42 -04:00
Chris PeBenito
cc7ee08f03 policyrep factories: short circuit if provided a constructed object.
Change factory functions that support lookups to short circuit if they are
being provided an instance of the object they are meant to create.
2015-04-16 14:07:18 -04:00
Chris PeBenito
d82a28262c setools __init__: import query/analysis classes
Makes use simpler. The setools submodules map 1:1 to classes anyway;
the separate modules are simply to ease organization.

Change seinfo to use conditional setter use rather than conditional
instantiation of queries.  Note: pylint disable is added because pylint
gets confused by the reuse of the q variable and thinks that q is always
BoolQuery, so it incorrectly reports missing member functions.
2015-04-15 12:00:59 -04:00
Chris PeBenito
55b290a77d NodeconQuery: Sync __init__ named parameters to setters
This is to match up __init__ named parameters to the corresponding
setter names, so it is simpler to switch from using the named parameters
over to separate setter calls.
2015-04-15 11:24:41 -04:00
Chris PeBenito
05da568b15 Clean up unused imports in RBAC and TE rule tests. 2015-04-13 10:08:15 -04:00
Chris PeBenito
961680ee1e Implement MLSRuleTest 2015-04-13 10:06:04 -04:00
Chris PeBenito
f2064f7eac Implement RoleAllowTest and RoleTransitionTest. 2015-04-12 17:20:55 -04:00
Chris PeBenito
25a5c1adab Implement AVRuleTest and TERuleTest. 2015-04-12 10:51:58 -04:00
Chris PeBenito
5594c02e8c Role: tweak statement() 2015-04-11 10:56:15 -04:00
Chris PeBenito
09a5f5dca4 Implement TypeTest and TypeAttributeTest 2015-04-11 10:54:22 -04:00
Chris PeBenito
9c9d908754 Implement RoleTest. 2015-04-11 09:01:26 -04:00
Chris PeBenito
415a91d9a0 UserTest: fix copy/paste error in docstring 2015-04-11 08:37:54 -04:00
Chris PeBenito
26e0396290 Implement User unit tests. 2015-04-10 14:53:07 -04:00
Chris PeBenito
52d119c58f Fix qpol compile error. 2015-04-09 14:39:11 -04:00
Chris PeBenito
4e0b7d853b Thoroughly test MLS representations.
Implement category and level decl. lookups along the way.
2015-04-09 14:27:51 -04:00
Chris PeBenito
71e99abbcf sedta: add limit for transition output 2015-04-07 14:43:17 -04:00
Chris PeBenito
8cfa23109c Revise README tool and library descriptions 2015-04-07 14:41:55 -04:00