Commit Graph

543 Commits

Author SHA1 Message Date
Chris PeBenito
3434618aef LogHandlerToSignal: set default formatter and INFO level in __init__. 2016-03-11 09:00:20 -05:00
Chris PeBenito
6c2acc3fdd Rename LogToSignalHandler to LogHandlerToSignal. 2016-03-07 13:40:37 -05:00
Chris PeBenito
faaf1a5b64 LogToSignalHandler: rename local emit() variable to prevent confusion 2016-03-07 13:25:44 -05:00
Chris PeBenito
d268e7e7f7 apol: more logging for the status bar 2016-03-07 13:21:36 -05:00
Chris PeBenito
3f4630c6f9 apol: use INFO logs to update status displays
Connect all setools and setoolsgui INFO+ messages and display them on
the statusbar.

Use each tab's analysis/query INFO+ messages and display them on the
"busy" status dialog box.
2016-03-07 12:04:08 -05:00
Chris PeBenito
85caea05e3 setoolsgui: add missing LogToSignalHandler class 2016-03-05 11:34:41 -05:00
Chris PeBenito
99c257f936 DTA/InfoflowTab: set errors for empty source/target types 2016-03-05 11:04:05 -05:00
Chris PeBenito
c3425b3656 Improve analysis INFO level logging.
Make it more informative for GUI use.
2016-03-04 14:29:33 -05:00
Chris PeBenito
6a4cbf20d5 apol: log INFO messages to the status bar
Still keep the CLI messaging controlled by -v or --debug switches. For some
reason, the root logging had to be DEBUG for this to work, and
only as initialized by basicConfig.  Setting a NullHandler to DEBUG level
didn't work either.
2016-03-04 14:05:20 -05:00
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