Skip to content

Commit 56ccd2a

Browse files
committed
Add permitted operations for sandbox
1 parent 3368a73 commit 56ccd2a

File tree

1 file changed

+2
-0
lines changed
  • utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/process

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ internal fun <T> sandbox(file: URI, block: () -> T): T {
5454
RuntimePermission("accessDeclaredMembers"),
5555
RuntimePermission("getProtectionDomain"),
5656
RuntimePermission("accessClassInPackage.*"),
57+
RuntimePermission("getClassLoader"),
58+
RuntimePermission("reflectionFactoryAccess"),
5759
ReflectPermission("*"),
5860
)
5961
if (Files.exists(path)) {

0 commit comments

Comments
 (0)