C++: Make dataflow configuration modules private in qll files

This commit is contained in:
Jeroen Ketema
2023-03-08 09:02:54 +01:00
parent 0f8a12f3ac
commit 5391b13db9
3 changed files with 3 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ deprecated class NetworkToBufferSizeConfiguration extends DataFlow::Configuratio
}
}
module NetworkToBufferSizeConfiguration implements DataFlow::ConfigSig {
private module NetworkToBufferSizeConfiguration implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node node) { node.asExpr() instanceof NetworkFunctionCall }
predicate isSink(DataFlow::Node node) { node.asExpr() = any(BufferAccess ba).getAccessedLength() }

View File

@@ -62,7 +62,7 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
deprecated class UntrustedDataToExternalAPIConfig = UntrustedDataToExternalApiConfig;
/** A configuration for tracking flow from `RemoteFlowSource`s to `ExternalApiDataNode`s. */
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node source) {
exists(RemoteFlowSourceFunction remoteFlow |
remoteFlow = source.asExpr().(Call).getTarget() and

View File

@@ -57,7 +57,7 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
deprecated class UntrustedDataToExternalAPIConfig = UntrustedDataToExternalApiConfig;
/** A configuration for tracking flow from `RemoteFlowSource`s to `ExternalApiDataNode`s. */
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
private module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node source) { source instanceof RemoteFlowSource }
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }