- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.PluginInfrastructure/3.3/Sandboxing/SandboxManager.cs
r6174 r6760 25 25 using System.Security.Permissions; 26 26 using HeuristicLab.PluginInfrastructure.Manager; 27 using System.IO; 27 28 28 29 namespace HeuristicLab.PluginInfrastructure.Sandboxing { … … 67 68 pSet.AddPermission(new SecurityPermission(SecurityPermissionFlag.UnmanagedCode)); 68 69 pSet.AddPermission(new SecurityPermission(SecurityPermissionFlag.SerializationFormatter)); 69 pSet.AddPermission(new SecurityPermission(SecurityPermissionFlag.ControlAppDomain));70 70 //needed for HeuristicLab.Persistence, see DynamicMethod Constructor (String, Type, array<Type []()>[], Type, Boolean) 71 71 pSet.AddPermission(new SecurityPermission(SecurityPermissionFlag.ControlEvidence)); 72 73 ReflectionPermission refPerm = new ReflectionPermission(PermissionState.Unrestricted); 74 pSet.AddPermission(refPerm); 72 pSet.AddPermission(new ReflectionPermission(PermissionState.Unrestricted)); 75 73 76 74 FileIOPermission ioPerm = new FileIOPermission(PermissionState.None); 77 75 //allow path discovery for system drive, needed by HeuristicLab.Persistence: Serializer.BuildTypeCache() -> Assembly.CodeBase 78 ioPerm.AddPathList(FileIOPermissionAccess.PathDiscovery, Environment.SystemDirectory.Substring(0, 3));76 ioPerm.AddPathList(FileIOPermissionAccess.PathDiscovery, Path.GetPathRoot(Path.GetFullPath(Environment.SystemDirectory))); 79 77 //allow full access to the appdomain's base directory 80 78 ioPerm.AddPathList(FileIOPermissionAccess.AllAccess, applicationBase);
Note: See TracChangeset
for help on using the changeset viewer.