Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/02/09 19:56:52 (16 years ago)
Author:
kgrading
Message:

finished the sandbox (#410)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs

    r1189 r1199  
    207207        pset.AddPermission(new SecurityPermission(SecurityPermissionFlag.Execution));
    208208        pset.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
    209         /*foreach (PluginInfo plugin in depPlugins) {
     209        FileIOPermission fPerm = new FileIOPermission(PermissionState.None);
     210             
     211        foreach (PluginInfo plugin in depPlugins) {
    210212            foreach(String assemblies in plugin.Assemblies)
    211               pset.AddPermission(new FileIOPermission(FileIOPermissionAccess.Read, assemblies));
    212         }*/
    213         pset.AddPermission(new FileIOPermission(PermissionState.Unrestricted));
     213              fPerm.AddPathList(FileIOPermissionAccess.AllAccess, assemblies);
     214        }
     215       
     216        pset.AddPermission(fPerm);
     217
    214218      } else {
    215219        pset = new PermissionSet(PermissionState.Unrestricted);
Note: See TracChangeset for help on using the changeset viewer.