Policy
A policy is a set of expressions that uses evidence to determine a code group membership. A code group gives a permission set for the assemblies within that group. There are four policies in .NET:
- Enterprise - policy for a family of machines that are part of an Active Directory installation.
- Machine - policy for the current machine.
- User - policy for the logged on user.
- AppDomain - policy for the executing application domain.
The first three policies are stored in XML files and are administered through the .NET Configuration Tool 1.1 (mscorcfg.msc). The final policy is administered through code for the current application domain.
Code access security will present an assembly's evidence to each policy and will then take the intersection (that is the permissions common to all the generated permission set) as the permissions granted to the assembly.
By default, the Enterprise, User, and AppDomain policies give full trust (that is they allow all assemblies to have all permissions) and the Machine policy is more restrictive. Since the intersection is taken this means that the final permission set is determined by the Machine policy.
Note that the policy system has been eliminated in .NET Framework 4.0.
Read more about this topic: Code Access Security
Famous quotes containing the word policy:
“A country survives its legislation. That truth should not comfort the conservative nor depress the radical. For it means that public policy can enlarge its scope and increase its audacity, can try big experiments without trembling too much over the result. This nation could enter upon the most radical experiments and could afford to fail in them.”
—Walter Lippmann (18891974)
“There is absolutely no evidencedevelopmental or otherwiseto support separating twins in school as a general policy. . . . The best policy seems to be no policy at all, which means that each year, you and your children need to decide what will work best for you.”
—Pamela Patrick Novotny (20th century)
“We legislate against forestalling and monopoly; we would have a common granary for the poor; but the selfishness which hoards the corn for high prices, is the preventative of famine; and the law of self-preservation is surer policy than any legislation can be.”
—Ralph Waldo Emerson (18031882)