Commit Graph

534 Commits

Author SHA1 Message Date
Chris PeBenito
7d88a1424e cli: switch to logging.exception for debug reporting of unrecoverable exception. 2016-03-04 13:59:21 -05:00
Chris PeBenito
c017bd7cfa Apply logging best practices.
* Use __name__ for the logger name
* Add top-level library NullHandlers
2016-03-04 13:49:03 -05:00
Chris PeBenito
d7e8cf0701 apol: connect copy/paste menu options 2016-03-02 08:19:07 -05:00
Chris PeBenito
5cfab15fd7 apol: Add ctrl+w keyboard shortcut to close the current tab.
Also move the action definitions to apol.ui.
2016-03-01 13:41:29 -05:00
Chris PeBenito
ef9f315aa0 apol: fix class names in .ui 2016-03-01 11:39:41 -05:00
Chris PeBenito
41579ede04 apol: revise sizing policies so results vertically stretch more than other frames (e.g. notes) 2016-03-01 10:17:50 -05:00
Chris PeBenito
7e8fcba695 apol: switch tabs to (more discoverable) check boxes for hiding UI elements
Also drop the results expander.
2016-02-29 10:51:24 -05:00
Chris PeBenito
6976964290 Add patch for explicitly using Python 3 2016-02-26 09:33:52 -05:00
Chris PeBenito
89a96a422a Change #! to use standard Python form 2016-02-26 09:12:34 -05:00
Chris PeBenito
c3759ec164 UserQuery: add missing user name field. 2016-02-26 09:05:43 -05:00
Chris PeBenito
5c39a1fd8c apol: reset busy dialog in setupUI()
For some reason, on Fedora the dialog will show before an explicit show()
is issued.
2016-02-26 08:58:09 -05:00
Chris PeBenito
16e03a3960 Implement UserQueryTab
Closes #90
2016-02-25 10:03:20 -05:00
Chris PeBenito
a1fbce87da (DomainTransition/InfoFlow)AnalysisTab: convert QToolBox to QTabWidget
Better vertical space efficiency.

Also remove graphical results tab as it won't be used for a while.
2016-02-25 10:00:22 -05:00
Chris PeBenito
113dfcdb8c (TE/RBAC/MLS)RuleQueryTab: convert QToolBox to QTabWidget.
Improves vertical space efficiency
2016-02-25 10:00:14 -05:00
Chris PeBenito
8e09d95c90 policyrep/level_factory: improve error messages on invalid levels 2016-02-23 15:47:17 -05:00
Chris PeBenito
4621111cae Add man pages to MANIFEST.in. 2016-02-22 16:04:51 -05:00
Chris PeBenito
f0cdd68afc Fix man page install location. 2016-02-22 08:12:19 -05:00
Chris PeBenito
1bd80d6356 Add man pages.
Closes #95
2016-02-21 16:27:44 -05:00
Chris PeBenito
606c3b7863 expanded_mls_rule_factory: fix case where an expanded rule is passed in. 2016-02-20 10:42:59 -05:00
Chris PeBenito
403da9aee5 Bump version for release. 2016-02-18 09:46:09 -05:00
Chris PeBenito
d3b21a52ad TypeAttribute: fix exception on properties that should only work on types
Make the exception a SymbolUseError, which is a child of AttributeError;
thus it makes more sense than TypeError.
2016-02-17 16:17:19 -05:00
Chris PeBenito
a3e33be4cd Edge: correctly implement slicing
Remove the tuple hack for NetworkX Edge classes.
2016-02-16 13:08:25 -05:00
Chris PeBenito
dd5641f7c6 DefaultQuery: add additional debug logging 2016-02-10 21:58:24 -05:00
Chris PeBenito
ae8ca1f094 seinfo: add typebounds info
Closes #68
2016-02-10 21:55:01 -05:00
Chris PeBenito
26333f32b0 Implement BoundsQuery. 2016-02-10 21:49:04 -05:00
Chris PeBenito
a4d4920d3c PolicyDifference: implement typebounds diff.
Closes #67
2016-02-10 11:44:41 -05:00
Chris PeBenito
699ce33cd7 policyrep: add typebounds rules
Closes #66
2016-02-05 13:53:30 -05:00
Chris PeBenito
522ab7e7f6 sediff: fix capitalization in role allow output 2016-02-05 09:30:37 -05:00
Chris PeBenito
b1b1a36ae2 PolicyDifference: implement constraints diff
Closes #63
2016-02-05 09:30:37 -05:00
Chris PeBenito
64043865e4 BaseConstraint: Add infix and postfix expression functions.
Remove extra built-in endline/tab formatting.
2016-02-05 09:30:30 -05:00
Chris PeBenito
dae8f83b77 libqpol: Skip types when building type attribute map.
Fix originally from Richard Haines.

Closes #94.
2016-02-04 14:06:49 -05:00
Chris PeBenito
1a21b2e0dd PolicyDifferenceTest: test for None rather than False where appropriate. 2016-02-02 09:00:42 -05:00
Chris PeBenito
742255643f sediff/PolicyDifferenceTest: use explicit sorting key on tuples
Guarantee stable output.
2016-02-02 08:52:30 -05:00
Chris PeBenito
964a3ea3f5 MLS/RBAC/TERulesDifference: revise unknown rule exceptions to log instead
Change to error logging so the processing continues, as the error is not
fatal.  Also specify in the message that it is a bug, so users know it
isn't their fault.
2016-02-01 11:20:32 -05:00
Chris PeBenito
c432719ca3 ConstraintQueryTest: fix test 12's name. 2016-02-01 09:18:01 -05:00
Chris PeBenito
ce02bfc5a5 PolicyDifference: implement default_* diff.
Closes #65
2016-02-01 09:15:51 -05:00
Chris PeBenito
a3d554bc4c seinfo: add default_* details
Closes #69
2016-02-01 09:13:30 -05:00
Chris PeBenito
8c5a7caa9e Implement DefaultQuery
Closes #93
Closes #74
2016-02-01 09:06:02 -05:00
Chris PeBenito
eafaad4dde Revise rule type validators to operate on single object, not collections.
* Return the parameter on success so it works like a lookup function too
* Remove RuletypeDescriptor and change over to CriteriaSetDescriptor
2016-02-01 09:00:54 -05:00
Chris PeBenito
0bd9d931c4 Revise default_* objects, implement tests for default_* objects. 2016-02-01 08:56:07 -05:00
Chris PeBenito
acaee3a3d3 Implement MLS to standard (non-MLS) policy diff test suite
Closes #61
2016-01-26 11:01:35 -05:00
Chris PeBenito
1db73d396d PolicyDifferenceTest, PolicyDifferenceTestNoDiff: fix setup 2016-01-26 09:44:10 -05:00
Chris PeBenito
2610382c36 MLSRule, RoleAllow, RoleTransition: add ruletype attribute
Make these classes consistent with TE rule classes.
2016-01-26 09:16:27 -05:00
Chris PeBenito
008c698bfe PolicyDifference: implement policy properties diff
Closes #62
2016-01-23 09:57:29 -05:00
Chris PeBenito
b5351f7104 policyrep.mls.enabled: convert return from int to bool. 2016-01-23 09:51:00 -05:00
Chris PeBenito
670efbdf21 RoleQuery: stop skipping object_r. 2016-01-22 09:41:56 -05:00
Chris PeBenito
87d9d56a55 libqpol: stop adding all types to object_r.
This is not what is in the policy. The object_r behavior is a special case
in the kernel code.
2016-01-22 09:28:23 -05:00
Chris PeBenito
69df208ab6 PolicyDifference: implement portcon diff
Closes #37
2016-01-21 10:00:55 -05:00
Chris PeBenito
8c2ea911c6 NodeconWrapper: fix name typo 2016-01-21 09:53:00 -05:00
Chris PeBenito
216836ca76 Portcon: fix hashing function. 2016-01-21 09:35:37 -05:00