Welcome to MSDN Blogs Sign in | Join | Help

SSCLI Zone Mappings

My previous post is begging the question "so what is the SSCLI's zone mapping policy?"

It's actually quite simple, the source for SecurityPolicy::QuickGetZone in clr\src\vm\securitypolicy.cpp shows that SSCLI maps a URL to:

  1. NoZone if the URL is NULL
  2. MyComputer if the URL is a file URL
  3. Internet for all other cases

Which indicates that there is no such thing as LocalIntranet, Trusted or Untrusted zones in SSCLI land.  (Although the SecurityZone enumeration still contains those as you can see in clr\src\bcl\system\security\securityzone.cs).

The check to see if the URL is a file URL is simply done as a call to the UrlIs API specifying URLIS_FILEURL.  For those non-Win32 platforms, the PAL version of UrlIs can be found in the palrt\src\urlpars.cpp file.

Published Tuesday, May 16, 2006 7:00 AM by shawnfa
Filed under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Flash Ireland - International Resources - 19 Jun 06

Monday, June 19, 2006 9:23 AM by Robert Burke's Weblog
 




Web Resources



 

[Default] Game Developers: Make Contact in Seattle
August...

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker