
558 Chapter 12 • Security
if a part of the code can be executed.The permissions the principal is given,
based on its identity, determine if the code can access specific protected resources.
Security Policy
To be able to manage the security that is enforced by the CLR, an administrator
can create new or modify existing security policies. Before an assembly is loaded,
its credentials are checked.This evidence is part of the assembly.The assembly is
assigned a security policy depending on the level of trust, which determines the
permissions the assembly is granted.The setting of security policies is controlled
by the system administrator and is crucial in ...