Chris PeBenito
cc313f9791
__future__ print functions no longer need importing.
2017-09-24 20:40:29 -04:00
Chris PeBenito
e292a77c52
Drop support for Python < 3.4.
2017-09-17 09:43:13 -04:00
Chris PeBenito
9f8f8f72c1
Change tool exception handlers to re-raise the exception if debugging.
...
This will allow the debugger to catch the exception for debugging purposes.
2016-07-22 19:14:40 -04: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
89a96a422a
Change #! to use standard Python form
2016-02-26 09:12:34 -05:00
Chris PeBenito
0e22483d82
DomainTransitionAnalysis/InfoFlowAnalysis: use NetworkX's info for stats
2015-07-02 10:23:36 -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
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
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
71e99abbcf
sedta: add limit for transition output
2015-04-07 14:43:17 -04:00
Chris PeBenito
c224995eeb
Fully configure logging in CLI tools.
2015-03-25 13:40:03 -04:00
Chris PeBenito
1dd17a0718
Remove unnecessary option defaults in CLI tools.
2015-03-19 15:20:37 -04:00
Chris PeBenito
de716ba6a5
Add logging.
...
Not comprehensive yet. Only planning to do setools pkg (not policyrep),
with the exception being the SELinuxPolicy class in policyrep.
Avoids performance-critical paths. Use only info and debug so in normal
cases the user only sees messages if they ask for it (e.g. -v).
2015-03-19 08:07:23 -04:00
Chris PeBenito
edb19126c9
Add --debug options to CLI tools.
...
Catch all exceptions in the main bulk of the CLI code. We can't do anything
if there is an exception, so either print the error message from the
exception, or print the traceback if debug is enabled.
2015-03-07 11:41:04 -05:00
Chris PeBenito
2f44b599ca
Reflow lines with new max line length.
...
Undo past whitespace fixes that are now unnecessary now that the max
line length increased to 100.
2015-02-14 10:40:38 -05:00
Chris PeBenito
15a8b2de2c
String changes to meet PEP8 standards.
...
Except max line length of 100.
Also use escaping to fix long lines.
2015-02-12 14:01:44 -05:00
Chris PeBenito
2d1c9184ed
Reorder parameters to meet PEP8 standards.
...
Except max line length of 100.
2015-02-12 13:59:54 -05:00
Chris PeBenito
02c5e72f0a
Whitespace changes to meet PEP8 standards.
...
Except max line length of 100.
2015-02-12 13:52:46 -05:00
Chris PeBenito
da44b3592b
DTA: implement excluded types and reverse analysis.
...
closes #25
closes #26
2015-02-07 15:07:40 -05:00
Chris PeBenito
094dbe3906
Add additional options checking in sedta.
2015-02-07 11:47:07 -05:00
Chris PeBenito
109ba68a92
Rename libapol package to setools.
2014-10-24 21:23:13 -04:00
Chris PeBenito
39505d0295
Initial public release.
2014-07-08 14:28:55 -04:00