Class PropagationRuleManager
java.lang.Object
soot.jimple.infoflow.problems.rules.PropagationRuleManager
- Direct Known Subclasses:
IdentityPropagationRuleManager
Manager class for all propagation rules
- Author:
- Steven Arzt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IArrayContextProviderprotected final InfoflowManagerprotected final TaintPropagationResultsprotected final ITaintPropagationRule[]protected final Abstraction -
Constructor Summary
ConstructorsConstructorDescriptionPropagationRuleManager(InfoflowManager manager, Abstraction zeroValue, TaintPropagationResults results, ITaintPropagationRule[] rules) -
Method Summary
Modifier and TypeMethodDescriptionapplyCallFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.SootMethod dest, ByReferenceBoolean killAll) Propagates a flow across a call siteapplyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt) Applies all rules to the call-to-return flow functionapplyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll, boolean noAddSource) Applies all rules to the call-to-return flow functionapplyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt) Applies all rules to the normal flow functionapplyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Applies all rules to the normal flow functionapplyReturnFlowFunction(Collection<Abstraction> callerD1s, Abstraction calleeD1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt retSite, soot.jimple.Stmt callSite, ByReferenceBoolean killAll) Applies all rules to the return flow functiongetRules()Gets the array of rules registered in this manager object
-
Field Details
-
manager
-
zeroValue
-
results
-
rules
-
arrayRule
-
-
Constructor Details
-
PropagationRuleManager
public PropagationRuleManager(InfoflowManager manager, Abstraction zeroValue, TaintPropagationResults results, ITaintPropagationRule[] rules)
-
-
Method Details
-
applyNormalFlowFunction
public Set<Abstraction> applyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt) Applies all rules to the normal flow function- Parameters:
d1- The context abstractionsource- The incoming taint to propagate over the given statementstmt- The statement to which to apply the rulesdestStmt- The next statement to which control flow will continue after processing stmt- Returns:
- The collection of outgoing taints
-
applyNormalFlowFunction
public Set<Abstraction> applyNormalFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt destStmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll) Applies all rules to the normal flow function- Parameters:
d1- The context abstractionsource- The incoming taint to propagate over the given statementstmt- The statement to which to apply the rulesdestStmt- The next statement to which control flow will continue after processing stmtkillSource- Outgoing value for the rule to indicate whether the incoming taint abstraction shall be killedkillAll- Outgoing value that receives whether all taints shall be killed and nothing shall be propagated onwards- Returns:
- The collection of outgoing taints
-
applyCallFlowFunction
public Set<Abstraction> applyCallFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, soot.SootMethod dest, ByReferenceBoolean killAll) Propagates a flow across a call site- Parameters:
d1- The context abstractionsource- The abstraction to propagate over the statementstmt- The statement at which to propagate the abstractiondest- The destination method into which to propagate the abstractionkillAll- Outgoing value for the rule to specify whether all taints shall be killed, i.e., nothing shall be propagated- Returns:
- The new abstractions to be propagated to the next statement
-
applyCallToReturnFlowFunction
public Set<Abstraction> applyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt) Applies all rules to the call-to-return flow function- Parameters:
d1- The context abstractionsource- The incoming taint to propagate over the given statementstmt- The statement to which to apply the rules- Returns:
- The collection of outgoing taints
-
applyCallToReturnFlowFunction
public Set<Abstraction> applyCallToReturnFlowFunction(Abstraction d1, Abstraction source, soot.jimple.Stmt stmt, ByReferenceBoolean killSource, ByReferenceBoolean killAll, boolean noAddSource) Applies all rules to the call-to-return flow function- Parameters:
d1- The context abstractionsource- The incoming taint to propagate over the given statementstmt- The statement to which to apply the ruleskillSource- Outgoing value for the rule to indicate whether the incoming taint abstraction shall be killed- Returns:
- The collection of outgoing taints
-
applyReturnFlowFunction
public Set<Abstraction> applyReturnFlowFunction(Collection<Abstraction> callerD1s, Abstraction calleeD1, Abstraction source, soot.jimple.Stmt stmt, soot.jimple.Stmt retSite, soot.jimple.Stmt callSite, ByReferenceBoolean killAll) Applies all rules to the return flow function- Parameters:
callerD1s- The context abstraction at the caller sidecalleeD1-source- The incoming taint to propagate over the given statementstmt- The statement to which to apply the rulesretSite- The return site to which the execution returns after leaving the current methodcallSite- The call site of the call from which we returnkillAll- Outgoing value for the rule to specify whether all taints shall be killed, i.e., nothing shall be propagated- Returns:
- The collection of outgoing taints
-
getRules
Gets the array of rules registered in this manager object- Returns:
- The array of rules registered in this manager object
-
getArrayContextProvider
-