Click to See Complete Forum and Search --> : Assembly security: Revoke thread manipulation


verifier
September 29th, 2008, 07:54 AM
I'm loading plugins into the main appdomain. I want to prevent the plugin assemblies from being able to control threads/timers (create new ones or modify the existing ones).

I've figured out that I need to create a new Evidence class that I load the assemblies with. And SecurityPermissionAttribute.ControlThread will probably do what I want regarding the threads.

But I can't figure out how to add the PermissionSet to the Evidence.