Evidence summary

What is the purpose of the following code snippet:

object[] hostEvidence = {new Zone(SecurityZone.Internet)}; 
Evidence internetEvidence = new Evidence(hostEvidence, null);
AppDomain myDomain = AppDomain.CreateDomain("MyDomain");
myDomain.ExecuteAssembly("SecondAssembly.exe", internetEvidence);

As far as I know, the CLR automatically (it requests Windows for it) assigns a zone depending on where the assembly is performed (local machine, Internet ect ...). I suppose it is intended to reduce build permissions, but when we have two evidence, we also have two groups of code that summarize at a given policy level.

Regards PC

+5
source share
2 answers

.NET Framework ( ), Evidence (.NET Configuration Tool), . , , .

, CLR , .

+1

, ExecuteAssembly , . , ?

0

All Articles