Update IncorrectChangingWorkingDirectory.ql

This commit is contained in:
ihsinme
2021-10-29 10:08:41 +03:00
committed by GitHub
parent 0addb2d1ea
commit 635a668670

View File

@@ -50,6 +50,7 @@ where
fc.getTarget().hasGlobalOrStdName("chroot") and
not inExistsChdir(fc) and
not outExistsChdir(fc) and
// in this section I want to exclude calls to functions containing chroot that have a direct path to chdir, or to a function containing chdir
exists(FunctionCall fctmp |
fc.getEnclosingStmt().getParentStmt*() = fctmp.getTarget().getEntryPoint().getChildStmt*() and
not inExistsChdir(fctmp) and