Permissions on dynamically loaded assembly?
- From: "Jesper" <no@xxxxxxxx>
- Date: Mon, 27 Feb 2006 23:56:43 +0100
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
.
- Follow-Ups:
- Re: Permissions on dynamically loaded assembly?
- From: Dominick Baier [DevelopMentor]
- Re: Permissions on dynamically loaded assembly?
- Prev by Date: Re: Problems with public key decryption with RSA
- Next by Date: Hosted WinForms Controls and CAS
- Previous by thread: Re: Problems with public key decryption with RSA
- Next by thread: Re: Permissions on dynamically loaded assembly?
- Index(es):
Relevant Pages
|