CodeQL library for Java/Kotlin
codeql/java-all 4.2.2-dev (changelog, source)
Search

Predicate isPermissionsProtectedTempDirUse

Hold’s if temporary directory’s use is protected if there is an explicit call to setReadable(false, false), then setRedabale(true, true).

Import path

import semmle.code.java.security.TempDirUtils
predicate isPermissionsProtectedTempDirUse(Node sink)