Skip to content

Commit 1d2a2cb

Browse files
committed
Allow all runtime permissions
1 parent b0b0588 commit 1d2a2cb

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
PropertyPermission("org.mockito.internal.*", "read,write"),
6157
ReflectPermission("*"),
6258
)

0 commit comments

Comments
 (0)