Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1199


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

finished the sandbox (#410)

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/Properties/AssemblyInfo.frame

    r581 r1199  
    2424using System.Runtime.InteropServices;
    2525using HeuristicLab.PluginInfrastructure;
     26using System.Security;
    2627
    2728// General Information about an assembly is controlled through the following
     
    3637[assembly: AssemblyTrademark("")]
    3738[assembly: AssemblyCulture("")]
     39[assembly: AllowPartiallyTrustedCallers]
    3840
    3941// Setting ComVisible to false makes the types in this assembly not visible
  • trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs

    r1150 r1199  
    186186    void wcfService_PullJobCompleted(object sender, PullJobCompletedEventArgs e) {
    187187      if (e.Result.StatusMessage != ApplicationConstants.RESPONSE_COMMUNICATOR_NO_JOBS_LEFT) {
    188         bool sandboxed = false;
     188        bool sandboxed = true;
    189189
    190190        PluginManager.Manager.Initialize();
  • trunk/sources/HeuristicLab.Hive.JobBase/TestJob.cs

    r1119 r1199  
    2727using System.Xml;
    2828using System.Threading;
     29using System.IO;
     30using System.Security.Permissions;
    2931
    3032namespace HeuristicLab.Hive.JobBase {
  • 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.