From 3887213e1c1a1c79584f5bd75b6069e95231e72b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 24 Nov 2016 16:28:40 +0800 Subject: [PATCH] new AWTPermission("*") --- source/net/filebot/format/SecureCompiledScript.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/net/filebot/format/SecureCompiledScript.java b/source/net/filebot/format/SecureCompiledScript.java index 3f9c10ce..8a39c358 100644 --- a/source/net/filebot/format/SecureCompiledScript.java +++ b/source/net/filebot/format/SecureCompiledScript.java @@ -42,8 +42,7 @@ public class SecureCompiledScript extends CompiledScript { permissions.add(new RuntimePermission("getFileSystemAttributes")); permissions.add(new RuntimePermission("readFileDescriptor")); permissions.add(new RuntimePermission("preferences")); - permissions.add(new AWTPermission("toolkitModality")); - permissions.add(new AWTPermission("setWindowAlwaysOnTop")); + permissions.add(new AWTPermission("*")); permissions.add(new FilePermission("<>", "read")); permissions.add(new SocketPermission("*", "connect")); permissions.add(new PropertyPermission("*", "read"));