mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Ruby/WeakFilePermissions
This commit is contained in:
@@ -60,8 +60,9 @@ private module PermissivePermissionsConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
exists(FileSystemPermissionModification mod |
|
exists(FileSystemPermissionModification mod | sinkDef(sink, mod) |
|
||||||
sinkDef(sink, mod) and
|
result = sink.getLocation()
|
||||||
|
or
|
||||||
result = mod.getLocation()
|
result = mod.getLocation()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user