- Timestamp:
- 07/07/11 15:10:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Sandboxing/SandboxManager.cs
r6487 r6538 25 25 using System.Security.Permissions; 26 26 using HeuristicLab.PluginInfrastructure.Manager; 27 using System.IO; 27 28 28 29 namespace HeuristicLab.PluginInfrastructure.Sandboxing { … … 69 70 //needed for HeuristicLab.Persistence, see DynamicMethod Constructor (String, Type, array<Type []()>[], Type, Boolean) 70 71 pSet.AddPermission(new SecurityPermission(SecurityPermissionFlag.ControlEvidence)); 71 72 ReflectionPermission refPerm = new ReflectionPermission(PermissionState.Unrestricted); 73 pSet.AddPermission(refPerm); 72 pSet.AddPermission(new ReflectionPermission(PermissionState.Unrestricted)); 74 73 75 74 FileIOPermission ioPerm = new FileIOPermission(PermissionState.None); 76 75 //allow path discovery for system drive, needed by HeuristicLab.Persistence: Serializer.BuildTypeCache() -> Assembly.CodeBase 77 ioPerm.AddPathList(FileIOPermissionAccess.PathDiscovery, Environment.SystemDirectory.Substring(0, 3));76 ioPerm.AddPathList(FileIOPermissionAccess.PathDiscovery, Path.GetPathRoot(Path.GetFullPath(Environment.SystemDirectory))); 78 77 //allow full access to the appdomain's base directory 79 78 ioPerm.AddPathList(FileIOPermissionAccess.AllAccess, applicationBase);
Note: See TracChangeset
for help on using the changeset viewer.