From 94c830c93adeb35433008bf0f7a97f0f292f9602 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 6 May 2016 01:26:39 +0800 Subject: [PATCH] Additional format permission that might be required for certain bindings (e.g. abs2sxe) --- source/net/filebot/format/SecureCompiledScript.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/filebot/format/SecureCompiledScript.java b/source/net/filebot/format/SecureCompiledScript.java index 7d5ecdce..74235a1c 100644 --- a/source/net/filebot/format/SecureCompiledScript.java +++ b/source/net/filebot/format/SecureCompiledScript.java @@ -14,6 +14,7 @@ import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.security.ProtectionDomain; import java.util.PropertyPermission; +import java.util.logging.LoggingPermission; import javax.script.CompiledScript; import javax.script.ScriptContext; @@ -39,10 +40,12 @@ public class SecureCompiledScript extends CompiledScript { permissions.add(new RuntimePermission("getenv.*")); permissions.add(new RuntimePermission("getFileSystemAttributes")); permissions.add(new RuntimePermission("readFileDescriptor")); + permissions.add(new RuntimePermission("preferences")); permissions.add(new FilePermission("<>", "read")); permissions.add(new SocketPermission("*", "connect")); permissions.add(new PropertyPermission("*", "read")); permissions.add(new PropertyPermission("*", "write")); + permissions.add(new LoggingPermission("control", null)); permissions.add(new ManagementPermission("monitor")); permissions.add(new ReflectPermission("suppressAccessChecks")); permissions.add(new ReflectPermission("newProxyInPackage.*"));