Commit Graph

674 Commits

Author SHA1 Message Date
Chris PeBenito
1ef86d8497 choose_analysis.ui: increase initial height
Show all analyses without scrolling.
2016-04-05 10:10:11 -04:00
Chris PeBenito
884480f8c4 apol: implement object class query
Closes #84
2016-04-04 13:59:35 -04:00
Chris PeBenito
729ba7ded7 apol: implement nodecon query tab
Closes #83
2016-04-04 10:36:23 -04:00
Chris PeBenito
e8f756a7ab ChooseAnalysis: fix fs_use_* capitalization 2016-04-04 10:32:26 -04:00
Chris PeBenito
1d821b109e userquery.ui: add vertical spacer in range criteria 2016-04-04 10:29:37 -04:00
Chris PeBenito
73dd211cf9 UserTableModel: calculate column count on init 2016-04-04 10:26:02 -04:00
Chris PeBenito
a7fb2057d2 apol: change context queries to disable instead of hide MLS features
This keeps layouts cleaner. Change tooltips accordingly to inform user why
the fields are disabled.
2016-04-04 10:22:25 -04:00
Chris PeBenito
02f5b9a329 Fix xperm rendering to use Python built-in "0x" formatting
Also swap low/high if they are backwards in the TERuleQuery setter instead
of erroring out
2016-04-01 15:20:57 -04:00
Chris PeBenito
1370cfd20f apol: further simplify Table model subclasses 2016-04-01 14:50:25 -04:00
Chris PeBenito
b416862554 apol: rename models to make it clear they are tables 2016-04-01 14:03:41 -04:00
Chris PeBenito
14aa86c99d apol: implement portcon query
Closes #86
2016-04-01 10:59:54 -04:00
Chris PeBenito
87c8b85c98 PortconQuery: add missing debug statement 2016-04-01 10:45:05 -04:00
Chris PeBenito
6c147f8c7b PortconProtocol: add support for specifiying by protocol string
Leverage Python lib socket.getprotobyname()
2016-04-01 10:42:00 -04:00
Chris PeBenito
57d446de1b NetifconQueryTab: fix log message on completion 2016-04-01 10:35:36 -04:00
Chris PeBenito
a158d412db apol: implement netif query
Closes #82
2016-04-01 09:06:37 -04:00
Chris PeBenito
f1f9c3186d Create new base class for table models.
Break up rule models into three files since RuleListModel doesn't make
sense any longer.
2016-04-01 09:00:17 -04:00
Chris PeBenito
807efb1e10 ApolMainWindow: handle closing the policy
* Close all tabs when closing the policy
* Close the policy if using the "open policy" action and policy load
  succeeds.
* Warn the user the above actions will close analysis tabs
  (if any tabs are open)
* Set analysis widgets to delete on close since widgets are not deleted
  by QTabWidget.clear() or .removeTab()
2016-03-31 11:34:27 -04:00
Chris PeBenito
95ecdf492a apol: implement initial SID query tab
Closes #81
2016-03-31 09:06:20 -04:00
Chris PeBenito
f335831de7 DTA/infoflow tabs: revise update completion signal connection
Bring in line with all other tabs.
2016-03-31 08:22:23 -04:00
Chris PeBenito
1ec35b9e2e DTA/infoflow: additional debug logging for graph size 2016-03-31 08:17:12 -04:00
Chris PeBenito
a769180acb PermissionMap: revise logging
* Add success message on load
* Reduce unmapped class/perm messages to debug
2016-03-30 13:51:03 -04:00
Chris PeBenito
8f907fe0f0 ApolMainWindow: revise policy and permmap loading for status messages
Revise ordering of initialization so log messages about permisison map and
policy loading can be seen on the status bar.  Also fix exception handling
so a failure loading the policy specified on the CLI is handled.
2016-03-30 13:47:20 -04:00
Chris PeBenito
c6198c4fed apol: switch to new tabs 2016-03-30 11:00:40 -04:00
Chris PeBenito
c281b9410a apol: explicitly set initial result table sort orders. 2016-03-30 10:49:34 -04:00
Chris PeBenito
7434043500 FSUseTableModel: fix variable assignment scope issue in data() 2016-03-30 10:46:47 -04:00
Chris PeBenito
21c70d5b74 apol: implement GenfsconQueryTab
Closes #80
2016-03-30 10:43:54 -04:00
Chris PeBenito
945a6548e0 apol: move queries to common updater thread class
Move logger to main tab class and have the result class send the result
count back on the finished signal.
2016-03-30 10:26:38 -04:00
Chris PeBenito
69332d4e64 AVRuleXperm: add missing hashing function.
Since there is only one permission that can be extended, not having this
was not an issue.
2016-03-30 08:38:09 -04:00
Chris PeBenito
c85d67f9e2 apol: implement fs_use_* query.
Closes #79
2016-03-30 08:34:09 -04:00
Chris PeBenito
17fdfc6012 setoolsgui models: fix header defaultdicts factory methods
Setting a None factory makes it work like a standard dictionary.  Use str
instead to get empty strings.
2016-03-29 11:11:21 -04:00
Chris PeBenito
b1c6652de0 apol: implement type attribute query tab.
Closes #89
2016-03-29 10:56:07 -04:00
Chris PeBenito
fdb058838e rolequery.ui: fix copy-paste errors 2016-03-29 10:50:04 -04:00
Chris PeBenito
9c3ce5c067 boolquery.ui: fix tab stops 2016-03-29 10:47:05 -04:00
Chris PeBenito
3fae0a2540 Add missing boolquery.ui file. 2016-03-29 09:58:28 -04:00
Chris PeBenito
2d23bd42ce SELinuxPolicyTest: add extended permission rule count tests
Closes #73
2016-03-29 09:55:51 -04:00
Chris PeBenito
8f3a54eb37 apol: implement Boolean query tab.
Closes #75
2016-03-29 09:12:05 -04:00
Chris PeBenito
f5cace1420 setoolsgui: revise model implementations
Use defaultdicts for headers.  Simplify data member functions.
2016-03-29 09:12:05 -04:00
Chris PeBenito
6878afb0ce Role/UserQueryTab: minor layout adjustments. 2016-03-29 09:12:05 -04:00
Chris PeBenito
e7f12a17d8 Reduce diff size between files copied from checkpolicy and libqpol.
Try to make future updates easier.
2016-03-28 16:34:35 -04:00
Chris PeBenito
e70e670664 libqpol: fix merge error (duplicate code a few lines up) 2016-03-28 13:57:41 -04:00
Chris PeBenito
4af429d2a6 SELinuxPolicy: rename extended permission rule count property names for consistency
Also move the properties and Xen properties into proper order.
2016-03-28 11:16:05 -04:00
Chris PeBenito
1d27478b60 seinfo: fix defaults and typebounds count formatting. 2016-03-28 09:36:27 -04:00
Chris PeBenito
8e2c8ca372 Implement extended permission rule support in TERuleQueryTab.
Related to #73
2016-03-28 09:33:24 -04:00
Chris PeBenito
ab41dc81e6 ioctlSet: implement a __format__ function which has a "," formatter.
The "," formatter will format the output as comma separated rather than
space separated.
2016-03-28 09:28:24 -04:00
Chris PeBenito
e8d9d611eb TERuleQuery: revise xperms setter to set None if value is False. 2016-03-28 09:22:30 -04:00
Chris PeBenito
0211b8951c *RulesDifference: fix rule list creation checks
If multiple rule types were diffed, the rule lists would be generated
multiple times if one or more of the rule lists were empty.
2016-03-28 09:17:58 -04:00
Chris PeBenito
b8b7422c8f *RulesDifference: use defaultdicts and closures to simplify code
* Use dictionaries to store rule lists, eliminating the large if-else
  blocks.
* Use closures in TERulesDifference to template the diff functions.
2016-03-26 09:59:42 -04:00
Chris PeBenito
8d4d7b5666 sediff: add extended permission rules
-A will now diff allow and allowxperm rules.

Related to #73
2016-03-25 15:43:41 -04:00
Chris PeBenito
47d8eda957 TERulesDifference: add extended permission rules
Related to #73
2016-03-25 15:33:07 -04:00
Chris PeBenito
7840f98afd policyrep: adjust expanded rule factory functions instance checking
Check for subclasses first.
2016-03-25 15:25:57 -04:00