mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-29 23:06:19 +00:00
DTA/infoflow: additional debug logging for graph size
This commit is contained in:
parent
a769180acb
commit
1ec35b9e2e
setools
@ -503,6 +503,9 @@ class DomainTransitionAnalysis(object):
|
||||
self.rebuildgraph = False
|
||||
self.rebuildsubgraph = True
|
||||
self.log.info("Completed building domain transition graph.")
|
||||
self.log.debug("Graph stats: nodes: {0}, edges: {1}.".format(
|
||||
nx.number_of_nodes(self.G),
|
||||
nx.number_of_edges(self.G)))
|
||||
|
||||
def __remove_excluded_entrypoints(self):
|
||||
invalid_edges = []
|
||||
@ -556,6 +559,9 @@ class DomainTransitionAnalysis(object):
|
||||
|
||||
self.rebuildsubgraph = False
|
||||
self.log.info("Completed building domain transition subgraph.")
|
||||
self.log.debug("Subgraph stats: nodes: {0}, edges: {1}.".format(
|
||||
nx.number_of_nodes(self.subG),
|
||||
nx.number_of_edges(self.subG)))
|
||||
|
||||
|
||||
class Edge(object):
|
||||
|
@ -323,6 +323,9 @@ class InfoFlowAnalysis(object):
|
||||
self.rebuildgraph = False
|
||||
self.rebuildsubgraph = True
|
||||
self.log.info("Completed building information flow graph.")
|
||||
self.log.debug("Graph stats: nodes: {0}, edges: {1}.".format(
|
||||
nx.number_of_nodes(self.G),
|
||||
nx.number_of_edges(self.G)))
|
||||
|
||||
def _build_subgraph(self):
|
||||
if self.rebuildgraph:
|
||||
@ -350,6 +353,9 @@ class InfoFlowAnalysis(object):
|
||||
|
||||
self.rebuildsubgraph = False
|
||||
self.log.info("Completed building information flow subgraph.")
|
||||
self.log.debug("Subgraph stats: nodes: {0}, edges: {1}.".format(
|
||||
nx.number_of_nodes(self.subG),
|
||||
nx.number_of_edges(self.subG)))
|
||||
|
||||
|
||||
class Edge(object):
|
||||
|
Loading…
Reference in New Issue
Block a user