|
3 | 3 | * global (inter-procedural) taint-tracking analyses.
|
4 | 4 | */
|
5 | 5 |
|
6 |
| -import DataFlow |
7 |
| -import DataFlowImpl |
8 |
| -import DataFlowParameter |
| 6 | +private import DataFlow |
| 7 | +private import DataFlowImpl |
| 8 | +private import DataFlowParameter |
9 | 9 | import TaintTrackingParameter
|
10 | 10 |
|
11 | 11 | module TaintFlowMake<
|
12 | 12 | DataFlowParameter DataFlowLang, TaintTrackingParameter<DataFlowLang> TaintTrackingLang>
|
13 | 13 | {
|
14 |
| - private import DataFlowLang |
15 | 14 | private import TaintTrackingLang
|
16 |
| - private import DataFlowMake<DataFlowLang> |
17 |
| - private import MakeImpl<DataFlowLang> |
| 15 | + private import DataFlowMake<DataFlowLang> as DataFlow |
| 16 | + private import MakeImpl<DataFlowLang> as DataFlowInternal |
18 | 17 |
|
19 |
| - private module AddTaintDefaults<FullStateConfigSig Config> implements FullStateConfigSig { |
| 18 | + private module AddTaintDefaults<DataFlowInternal::FullStateConfigSig Config> implements |
| 19 | + DataFlowInternal::FullStateConfigSig |
| 20 | + { |
20 | 21 | import Config
|
21 | 22 |
|
22 | 23 | predicate isBarrier(DataFlowLang::Node node) {
|
@@ -44,41 +45,43 @@ module TaintFlowMake<
|
44 | 45 | /**
|
45 | 46 | * Constructs a global taint tracking computation.
|
46 | 47 | */
|
47 |
| - module Global<ConfigSig Config> implements GlobalFlowSig { |
48 |
| - private module Config0 implements FullStateConfigSig { |
49 |
| - import DefaultState<Config> |
| 48 | + module Global<DataFlow::ConfigSig Config> implements DataFlow::GlobalFlowSig { |
| 49 | + private module Config0 implements DataFlowInternal::FullStateConfigSig { |
| 50 | + import DataFlowInternal::DefaultState<Config> |
50 | 51 | import Config
|
51 | 52 | }
|
52 | 53 |
|
53 |
| - private module C implements FullStateConfigSig { |
| 54 | + private module C implements DataFlowInternal::FullStateConfigSig { |
54 | 55 | import AddTaintDefaults<Config0>
|
55 | 56 | }
|
56 | 57 |
|
57 |
| - import Impl<C> |
| 58 | + import DataFlowInternal::Impl<C> |
58 | 59 | }
|
59 | 60 |
|
60 | 61 | /** DEPRECATED: Use `Global` instead. */
|
61 |
| - deprecated module Make<ConfigSig Config> implements GlobalFlowSig { |
| 62 | + deprecated module Make<DataFlow::ConfigSig Config> implements DataFlow::GlobalFlowSig { |
62 | 63 | import Global<Config>
|
63 | 64 | }
|
64 | 65 |
|
65 | 66 | /**
|
66 | 67 | * Constructs a global taint tracking computation using flow state.
|
67 | 68 | */
|
68 |
| - module GlobalWithState<StateConfigSig Config> implements GlobalFlowSig { |
69 |
| - private module Config0 implements FullStateConfigSig { |
| 69 | + module GlobalWithState<DataFlow::StateConfigSig Config> implements DataFlow::GlobalFlowSig { |
| 70 | + private module Config0 implements DataFlowInternal::FullStateConfigSig { |
70 | 71 | import Config
|
71 | 72 | }
|
72 | 73 |
|
73 |
| - private module C implements FullStateConfigSig { |
| 74 | + private module C implements DataFlowInternal::FullStateConfigSig { |
74 | 75 | import AddTaintDefaults<Config0>
|
75 | 76 | }
|
76 | 77 |
|
77 |
| - import Impl<C> |
| 78 | + import DataFlowInternal::Impl<C> |
78 | 79 | }
|
79 | 80 |
|
80 | 81 | /** DEPRECATED: Use `GlobalWithState` instead. */
|
81 |
| - deprecated module MakeWithState<StateConfigSig Config> implements GlobalFlowSig { |
| 82 | + deprecated module MakeWithState<DataFlow::StateConfigSig Config> implements |
| 83 | + DataFlow::GlobalFlowSig |
| 84 | + { |
82 | 85 | import GlobalWithState<Config>
|
83 | 86 | }
|
84 | 87 | }
|
0 commit comments