I've created an app with a plugin structure which works if I trust the
plugin-author. Next I want to allow untrusted plugins to run under strict
access conditions.
I'm already loading the plugins into a secondary AppDomain, and I can set
code access security on this secondary appdomain to the "Execution"
Permissionset. Unfortunately, if I do this, I can no longer load anything
into this appdomain because I get a
System.Security.Permissions.FileIOPermission exception at the
Assembly.LoadFrom(...) regardless of what my plugin assembly contains. I
understand why it is happening, but is there no way around it? Is there some
way to dynamically load an assembly and execute (untrusted) code under tight
(Execution-Only) permissions?
Jesper
Dominick Baier [DevelopMentor] - 27 Feb 2006 23:20 GMT
Hi,
have a look at this article:
http://msdn.microsoft.com/msdnmag/issues/05/11/HostingAddIns/default.aspx
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> I've created an app with a plugin structure which works if I trust the
> plugin-author. Next I want to allow untrusted plugins to run under
[quoted text clipped - 11 lines]
>
> Jesper