Skip to content

Commit 351cf43

Browse files
committed
Allow all runtime permissions
1 parent a542750 commit 351cf43

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ internal fun <T> sandbox(block: () -> T): T {
5252
internal fun <T> sandbox(file: URI, block: () -> T): T {
5353
val path = Paths.get(file)
5454
val perms = mutableListOf<Permission>(
55-
RuntimePermission("accessDeclaredMembers"),
56-
RuntimePermission("getProtectionDomain"),
57-
RuntimePermission("accessClassInPackage.*"),
58-
RuntimePermission("getClassLoader"),
59-
RuntimePermission("reflectionFactoryAccess"),
55+
RuntimePermission("*"),
6056
ReflectPermission("*"),
6157
)
6258
val allCodeSource = CodeSource(null, emptyArray<Certificate>())

0 commit comments

Comments
 (0)