new AWTPermission("toolkitModality")

This commit is contained in:
Reinhard Pointner 2016-11-23 15:02:31 +08:00
parent 9667d3d55c
commit e362f22972
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package net.filebot.format; package net.filebot.format;
import java.awt.AWTPermission;
import java.io.File; import java.io.File;
import java.io.FilePermission; import java.io.FilePermission;
import java.lang.management.ManagementPermission; import java.lang.management.ManagementPermission;
@ -41,6 +42,7 @@ public class SecureCompiledScript extends CompiledScript {
permissions.add(new RuntimePermission("getFileSystemAttributes")); permissions.add(new RuntimePermission("getFileSystemAttributes"));
permissions.add(new RuntimePermission("readFileDescriptor")); permissions.add(new RuntimePermission("readFileDescriptor"));
permissions.add(new RuntimePermission("preferences")); permissions.add(new RuntimePermission("preferences"));
permissions.add(new AWTPermission("toolkitModality"));
permissions.add(new FilePermission("<<ALL FILES>>", "read")); permissions.add(new FilePermission("<<ALL FILES>>", "read"));
permissions.add(new SocketPermission("*", "connect")); permissions.add(new SocketPermission("*", "connect"));
permissions.add(new PropertyPermission("*", "read")); permissions.add(new PropertyPermission("*", "read"));