From 77674a1486acd5080ec8510640f1129ed42eeba8 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 9 Nov 2015 07:25:56 +0000 Subject: [PATCH] * maybe fix libmediainfo library loading issues --- source/net/filebot/format/SecureCompiledScript.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/source/net/filebot/format/SecureCompiledScript.java b/source/net/filebot/format/SecureCompiledScript.java index 579d3926..099f16aa 100644 --- a/source/net/filebot/format/SecureCompiledScript.java +++ b/source/net/filebot/format/SecureCompiledScript.java @@ -27,14 +27,18 @@ public class SecureCompiledScript extends CompiledScript { Permissions permissions = new Permissions(); permissions.add(new RuntimePermission("createClassLoader")); - permissions.add(new RuntimePermission("accessDeclaredMembers")); - permissions.add(new RuntimePermission("accessClassInPackage.*")); + permissions.add(new RuntimePermission("getClassLoader")); permissions.add(new RuntimePermission("modifyThread")); + permissions.add(new RuntimePermission("modifyThreadGroup")); + permissions.add(new RuntimePermission("loadLibrary.*")); + permissions.add(new RuntimePermission("accessClassInPackage.*")); + permissions.add(new RuntimePermission("accessDeclaredMembers")); + permissions.add(new RuntimePermission("getenv.*")); + permissions.add(new RuntimePermission("getFileSystemAttributes")); + permissions.add(new RuntimePermission("readFileDescriptor")); permissions.add(new FilePermission("<>", "read")); permissions.add(new SocketPermission("*", "connect")); permissions.add(new PropertyPermission("*", "read")); - permissions.add(new RuntimePermission("getenv.*")); - permissions.add(new RuntimePermission("getFileSystemAttributes")); permissions.add(new ManagementPermission("monitor")); // write permissions for temp and cache folders