Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add several runtime permissions to support loggers
  • Loading branch information
Markoutte committed Sep 2, 2022
commit 49befba1ffa00af7a248b54ac1ea8095730c1535
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ fun <T> sandbox(block: () -> T): T {
fun <T> sandbox(file: URI, block: () -> T): T {
val path = Paths.get(file)
val perms = mutableListOf<Permission>(
RuntimePermission("accessDeclaredMembers")
RuntimePermission("accessDeclaredMembers"),
RuntimePermission("getStackWalkerWithClassReference"),
RuntimePermission("getClassLoader"),
)
val allCodeSource = CodeSource(null, emptyArray<Certificate>())
if (Files.exists(path)) {
Expand Down