Skip to content

Commit 49befba

Browse files
committed
Add several runtime permissions to support loggers
1 parent 957e0d0 commit 49befba

File tree

1 file changed

+3
-1
lines changed
  • utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/process

1 file changed

+3
-1
lines changed

utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/process/Security.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ fun <T> sandbox(block: () -> T): T {
6464
fun <T> sandbox(file: URI, block: () -> T): T {
6565
val path = Paths.get(file)
6666
val perms = mutableListOf<Permission>(
67-
RuntimePermission("accessDeclaredMembers")
67+
RuntimePermission("accessDeclaredMembers"),
68+
RuntimePermission("getStackWalkerWithClassReference"),
69+
RuntimePermission("getClassLoader"),
6870
)
6971
val allCodeSource = CodeSource(null, emptyArray<Certificate>())
7072
if (Files.exists(path)) {

0 commit comments

Comments
 (0)