[quoted text, click to view] "ATS" <ATS@discussions.microsoft.com> wrote in message
news:AF36EE9C-F559-4A8B-8764-9277AE3F7637@microsoft.com...
> HOWTO Use CASPOL for Full-Trust
>
> Please help,
>
> I want to do the following things with CASPOL, and the documentation for
> CASPOL does not clearlt state how to do this:
>
> 1) Make the following security code group have full trust:
>
> - Runtime Security Policy
> - Machine
> - Code Groups
> - All_Code
> - Trusted_Zone
Assuming the machine policy level is still at its original default, the
following should work:
caspol -machine -chggroup 1.5. FullTrust
However, if the policy has been modified, the trusted zone group may no
longer be 1.5. To be safe, you should run caspol -m -lg to list the groups
and determine the correct group label before modifying the group. You could
also use the group name rather than the label, but this is also subject to
change if the policy is modified, so using the name doesn't really avoid the
requirement to verify the current policy before applying the change.
Also, granting full trust to any non-local zone is really quite risky. If
you are doing this in order to facilitate deployment of a fixed set of
applications, I would strongly recommend using far more restrictive group
membership criteria.
[quoted text, click to view] > 2) Add a new code group that grants full trust to all trusted web sites
> for
> a machine, user, and a enterprise.
Under default CAS policy, you shouldn't need to touch either the enterprise
or user policy since they already grant unrestricted permissions to
everything. To add a group like this under the All_Code group of a default
machine policy, use the following (preferably after verifying the code group
index):
caspol -machine -addgroup 1. -zone Trusted FullTrust -name "YourGroupName"
[quoted text, click to view] > 3) Change a code group to have full trust for a given code group that is
> on
> a machine, user, and/or enterprise.
Same as for your first question above, but use the appropriate target group
label or name. If you want to target the enterprise or user policy rather
than the machine policy, specify -enterprise or -user instead of -machine as
the first argument on the command line.