2010-05-27 Jb Evain <jbevain@novell.com>
[mcs.git] / class / corlib / System.Security / ChangeLog
blob9661a329c420d4c5b65e0a88e923ef9b1680708c
1 2010-05-27  Jb Evain  <jbevain@novell.com>
3         * SecurityContextSource.cs: add new enum in net_4_0.
5 2010-04-16  Sebastien Pouliot  <sebastien@ximian.com>
7         * SecurityManager.cs: Add stub for new methods (so code compiles
8         correctly under other profiles)
9         * SecurityManager_2_1.cs: Implement [Check|Ensure]ElevatedPermissions
10         for Moonlight Elevated Trust
12 2010-03-23  Sebastien Pouliot  <sebastien@ximian.com>
14         * SecurityManager_2_1.cs: Add an internal HasElevatedPermissions 
15         property to mscorlib since the "real" (i.e. visible) one in 
16         System.Windows.dll is not accessible by most code.
18 2010-03-16  Jb Evain  <jbevain@novell.com>
20         * SecurityTransparentAttribute.cs
21         * SecurityFrame.cs
22         * IPermission.cs
23         * SecurityManager.cs
24         * SecurityManager_2_1.cs
25         * SecuritySafeCriticalAttribute.cs:
26                 use MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
28 2009-10-30      Marek Safar  <marek.safar@gmail.com>
30         * SecurityRuleSet.cs, SecurityRulesAttribute.cs: Implemented.
32 2009-10-23  Sebastien Pouliot  <sebastien@ximian.com>
34         * SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
35         will allow us to distinguish between running in the browser
36         (coreclr active) and on the console (e.g. smcs) from managed code
38 2009-09-23  Sebastien Pouliot  <sebastien@ximian.com>
40         * SecurityContext.cs: Remove NET_2_1 defines since the type is
41         now unused in NET_2_1 profile
43 2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>
45         * CodeAccessPermission_2_1.cs: New. Stub to compile NET_2_1
46         * IPermission.cs: Remove ISecurityEncodable for NET_2_1
47         * PermissionSet_2_1.cs: New. Stub to compile NET_2_1
48         * SecurityContext.cs: Remove usage of CompressedStack for NET_2_1
49         * SecurityException_2_1.cs: New, CAS-less version for NET_2_1
50         * SecurityException.cs: Remove NET_2_1 conditions
51         * SecurityFrame.cs: Keep structures (needed by the runtime) but
52         remove SecurityFrame itself for NET_2_1
54 2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>
56         * SecurityContext.cs: Don't use WindowsIdentity under NET_2_1
58 2009-09-09  Sebastien Pouliot  <sebastien@ximian.com>
60         * SecurityManager.cs, SecurityManager_2_1.cs: Replace existing
61         throw methods (for coreclr) with a single one.
63 2009-05-02  Sebastien Pouliot  <sebastien@ximian.com>
65         * CodeAccessPermission.cs (ThrowSecurityException): Don't include
66         CAS-specific information when throwing a SecurityException in
67         NET_2_1
69 2009-05-01  Sebastien Pouliot  <sebastien@ximian.com> 
71         * SecurityCriticalAttribute.cs: Add simpler version NET_2_1
72         * SecuritySafeCriticalAttribute.cs: Remove MonoTODO for NET_2_1
73         * SecurityTransparentAttribute.cs: Remove MonoTODO for NET_2_1
75 2009-05-01  Sebastien Pouliot  <sebastien@ximian.com>
77         * SecurityState.cs: Implement IsStateAvailable (added in 2.0SP 
78         and part of SL API)
80 2009-04-27  Sebastien Pouliot  <sebastien@ximian.com>
82         * SecurityException.cs: Remove CAS-specific stuff from ToString
83         * SecurityManager.cs: Do not include for NET_2_1 build
84         * SecurityManager_2_1.cs: Alternate implementation for NET_2_1
86 2009-03-19  Sebastien Pouliot  <sebastien@ximian.com>
88         * SecurityManager.cs: Remove VerificationException (not used from
89         the runtime anymore) and add FieldAccessException (which is now, 
90         or soon will be, required/used by the runtime).
92 2009-02-19  Rodrigo Kumpera  <rkumpera@novell.com>
94         * SecurityManager.cs: Make core-clr work under non 2.1 profiles.
96 2008-09-15  Jb Evain  <jbevain@novell.com>
98         * SecuritySafeCriticalAttribute.cs: Include SecuritySafeCritical in
99         the net_2_0 profile, as a recent sp includes it.
101 2008-08-07  Sebastien Pouliot  <sebastien@ximian.com>
103         * SecurityState.cs: New. Silverlight 2.0 abstract type.
105 2008-05-30  Sebastien Pouliot  <sebastien@ximian.com> 
107         * CodeAccessPermission.cs,
108         * PermissionSet.cs,
109         * SecurityManager.cs: Provide better MonoTODO messages for the 
110         next version of MoMA.
112 2008-04-02  Andreas Nahr  <ClassDevelopment@A-SoftTech.com>
114         * VerificationException.cs
115         * SecurityElement.cs
116         * SecurityContext.cs
117         * NamedPermissionSet.cs
118         * HostProtectionException.cs: Fix parameter names
120 2008-01-02  Sebastien Pouliot  <sebastien@ximian.com> 
122         * SecureString.cs: Fix InsertAt buffer calculation. Fix #350820
124 2008-01-02  Sebastien Pouliot  <sebastien@ximian.com>
126         * SecureString.cs: Don't forget length in Copy. Fix #350840
128 2007-11-07  Atsushi Enomoto  <atsushi@ximian.com>
130         * SecurityElement.cs :
131           set_Text() should unescape the input string. get_Text() should
132           return unescaped string. It also applies to attribute value.
133           ToString() should return valid (escaped) XML.
135 2007-10-14  Gert Driesen  <drieseng@users.sourceforge.net>
137         * SecurityElement.cs: In ctors, do not assign to Tag property to
138         ensure exception message match that of MS. In Tag property, set name
139         of parameter in ArgumentNullException and do not filter out
140         namespace prefixes. Modified Text property to allow null values
141         after change to IsValidText that no longer considers null value as
142         valid. Avoid NRE in Escape.
144 2007-08-28  Mark Probst  <mark.probst@gmail.com>
146         * SecurityManager.cs: Changed method argument of
147         LinkDemandSecurityException to IntPtr and removed the assembly
148         argument (which can be gotten to via the method), to avoid having
149         to embed reference object values in the native code.
151 2007-08-20  Mark Probst  <mark.probst@gmail.com>
153         * SecurityManager.cs: Changed arguments of MethodAccessException
154         to IntPtr, to avoid having to embed reference object values in the
155         native code.
157 2007-08-20  Mark Probst  <mark.probst@gmail.com>
159         * SecurityManager.cs: Added two methods needed for CoreCLR
160         security.
162 2007-08-08  Atsushi Enomoto  <atsushi@ximian.com>
164         * SecureString.cs : commenting out internal call. It somehow seems
165           to cause timeout on the buildbots :(
167 2007-08-07  Atsushi Enomoto  <atsushi@ximian.com>
169         * SecureString.cs : adding notes that ProtectedMemory is not
170           implemented for non-windows environment.
172 2007-08-07  Atsushi Enomoto  <atsushi@ximian.com>
174         * SecureString.cs : Decrypt() and Encrypt() now use icall wrapper
175           to ProtectedMemory in System.Security.dll.
177 2007-02-23  Sebastien Pouliot  <sebastien@ximian.com>
179         * PermissionSet.cs: Fix InvalidCastException on non-CAS permissions.
180         Fix bug #80936.
182 2006-06-16  Sebastien Pouliot  <sebastien@ximian.com>
184         * SecurityContext.cs: Don't skip the calling callBack if we don't call
185         CompressedStack.Run (#78652).
187 2006-06-15  Sebastien Pouliot  <sebastien@ximian.com>
189         * SecurityContext.cs: Don't call CompressedStack.Run if we don't have
190         a compressed stack in the context (which can now happen because of 
191         #78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).
193 2006-04-07  Sebastien Pouliot  <sebastien@ximian.com>
195         * SecurityException.cs: Show Evidence correctly (it's a collection) 
196         but avoid showing the Hash evidence (it's way too big to be useful).
198 2005-11-11  Sebastien Pouliot  <sebastien@ximian.com> 
200         * SecureString.cs: Completed InsertAt, fixed Alloc not to re-alloc a
201         block of the same size. Fixed missing encryption for the char* ctor.
202         Only missing is access to ProtectedMemory do to the [en|de]cryption.
204 2005-10-30  Sebastien Pouliot  <sebastien@ximian.com> 
206         * PermissionSet.cs: Forgot to remove virtual from 2.0 IsSubsetOf.
208 2005-10-29  Sebastien Pouliot  <sebastien@ximian.com> 
210         * PermissionSet.cs: Another update to corcompare shows that even more
211         methods are not virtual in 2.0 final.
213 2005-10-28  Sebastien Pouliot  <sebastien@ximian.com> 
215         * PermissionSet.cs: Some methods are no more virtual in 2.0 final.
217 2005-10-28  Sebastien Pouliot  <sebastien@ximian.com>
219         * SecureString.cs: Changed the previous (and partial) managed 
220         implementation to one (that will be) based on ProtectedMemory. Work in
221         progress...
223 2005-10-17  Sebastien Pouliot  <sebastien@ximian.com>
225         * PermissionSet.cs: If the current permission set is unrestricted then
226         we must allow "permit only" for unrestricted (all other case are known
227         to be too restrictive).
229 2005-09-22  Sebastien Pouliot  <sebastien@ximian.com>
231         * SecurityManager.cs: Added [Obsolete] on SecurityEnabled for 2.0 (as 
232         it cannot be turned off on MS runtime anymore). Removed dependecies
233         on PermissionSetCollection as this class (related to *Choice actions)
234         didn't make it to 2.0 RC.
236 2005-09-02  Sebastien Pouliot  <sebastien@ximian.com>
238         * CodeAccessPermission.cs: Fix Deny for permissions that do not return
239         null for empty intersection (common on flags-based permissions).
240         * PermissionBuilder.cs: Add an helper call to create an empty 
241         (PermissionState.None) permission from a type.
242         * SecurityManager.cs: Added AppDomain support in InheritanceDemand. 
243         Fixed some another small difference between 1.x and 2.0 (wrt 
244         unrestricted permissions). Fixed error reporting for InheritanceDemand
245         (was LinkDemand).
247 2005-06-30  Sebastien Pouliot  <sebastien@ximian.com> 
249         * SecurityManager.cs: Fixed inheritance demands for 1.x.
251 2005-06-22  Sebastien Pouliot  <sebastien@ximian.com> 
253         * CodeAccessPermission.cs: Fix Unrestricted PermitOnly (which is like
254         a no-op). Speed up Assert if Unrestricted.
255         * HostSecurityManager.cs: Updated FIXME description.
256         * PermissionSet.cs: Remove Copy() of the permission set when non-CAS
257         permissions are used (replaced by an array of bools). Completed Assert
258         support by re-using the array of bools. Updated TODO descriptions.
259         * SecurityException.cs: Added evidence (if available) in the ToString
260         description of the exception.
261         * SecurityManager.cs: Reworked CheckExecutionRights to get the correct
262         behavior.
264 2005-06-20  Sebastien Pouliot  <sebastien@ximian.com> 
266         * CodeAccessPermission.cs: Removed redundant and unrequired TODO.
267         * PermissionSet.cs: Some 2.0 optimizations (because sets are simpler
268         without the special case for identity permissions).
269         * SecurityManager.cs: Shortcut for ResolveIdentityPermissions (in 2.0)
270         and some more declarative security syntax updates.
272 2005-06-16  Sebastien Pouliot  <sebastien@ximian.com> 
274         * PermissionSet.cs: Added support for non-CAS permissions in the
275         IsSubsetOf method.
276         * SecurityManager.cs: Simplified IsGranted and added support for 2.0
277         (where all permissions support unrestricted). Changed desclarative 
278         security syntax not to use flags (like the rest of the source code).
280 2005-06-16  Sebastien Pouliot  <sebastien@ximian.com> 
282         * NamedPermissionSet.cs: A default NamedPermissionSet is Unrestricted.
283         * SecurityManager.cs: Simplified LinkDemandFullTrust as FullTrust is
284         immutable.
286 2005-06-14  Sebastien Pouliot  <sebastien@ximian.com>
288         * SecurityManager.cs: Added ResolvingPolicyLevel property to enable
289         support for FullTrustAssemblies during policy resolution. Reworked
290         (simplified) locking. Moved check for CheckExecutionRights to the 
291         "right" place.
292         * PermissionSet.cs: Added shortcut in GetPermission(Type).
294 2005-06-08  Sebastien Pouliot  <sebastien@ximian.com>
296         * AllowPartiallyTrustedCallersAttribute.cs, HostSecurityManagerFlags.cs
297         IEvidenceFactory.cs, IPermission.cs, ISecurityEncodable.cs,
298         ISecurityPolicyEncodable.cs, IStackWalk.cs, NamedPermissionSet.cs,
299         PolicyLevelType.cs, SecureString.cs, SecurityElement.cs, 
300         SecurityZone.cs, UnverifiableCodeAttribute.cs, VerificationException.cs
301         XmlSyntaxException.cs: Fix 2.0 beta2 API changes (which is mostly 
302         adding ComVisible attributes to classes).
304 2005-06-01  Sebastien Pouliot  <sebastien@ximian.com>
306         * PermissionBuilder.cs: Removed unification stuff. This is done at a 
307         lower level.
308         * SecurityManager.cs: Split loading PolicyLevel in two phases. The
309         PolicyHierarchy is now available after phase 1 which ensures we can
310         load permission from outside corlib.
312 2005-05-28  Sebastien Pouliot  <sebastien@ximian.com>
314         * HostSecurityManager.cs: Added check for ActivationArguments in 
315         application evidences.
317 2005-05-27  Sebastien Pouliot  <sebastien@ximian.com>
319         * CodeAccessPermission.cs: Allow unrestricted identity permissions in
320         2.0.
321         * PermissionBuilder.cs: New. Internal class to help create permission
322         instances from XML or with a fully qualified name. This class also 
323         deals with unification.
324         * PermissionSet.cs: Use PermissionBuilder to create permissions in 
325         FromXml method. Many 2.0 fixes (mostly to support unrestricted 
326         identity permissions)
328 2005-05-26  Sebastien Pouliot  <sebastien@ximian.com>
330         * CodeAccessPermission.cs: Fix typo for PermitOnly. Added ComVisible 
331         attribute for NET_2_0 profile.
332         * PermissionSet.cs: Changed static string to const. Added ComVisible 
333         attribute for NET_2_0 profile.
334         * SecurityContext.cs: Capture the identity token but don't create a 
335         WindowsIdentity instance unless required (e.g. Run). This requires 
336         less privileges (so it runs better that way under CAS).
338 2005-05-25  Sebastien Pouliot  <sebastien@ximian.com>
340         * SecurityException.cs: PermissionState isn't always serialized 
341         (depending on the security policy) so it cannot always be deserialized
342         too (and this must work without throwing exceptions).
344 2005-05-20  Sebastien Pouliot  <sebastien@ximian.com>
346         * SecurityContext.cs: Includes more methods in NET_1_1 to enable 
347         ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
348         stack propagation).
350 2005-05-16  Sebastien Pouliot  <sebastien@ximian.com>
352         * PermissionSet.cs: Add support for "hidden" read-only mode (as used
353         by PolicyStatement).
354         * SecurityFrame.cs: Add some debugging code in the ToString method.
355         * SecurityManager.cs: Changed internal API so we can display the 
356         permission that failed in a PermissionSet (e.g. assembly or appdomain).
358 2005-05-11  Sebastien Pouliot  <sebastien@ximian.com>
360         * SecurityManager.cs: GetZoneAndOrigin is present in 1.1 too (but is 
361         hidden from mono-api-info because of the LinkDemand for ECMA key).
363 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com> 
365         * SecurityContext.cs: That was the wrong place to capture the stack.
367 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
369         * SecurityContext.cs: Capture the CompressedStack when the current 
370         context one is empty.
371         * SecurityManager.cs: Class is now static (2.0).
372         * SecurityTreatAsSafeAttribute.cs: Fixed AttributeTargets.
374 2005-05-06  Sebastien Pouliot  <sebastien@ximian.com>
376         * CodeAccessPermission.cs: Reworked frames check to check only for
377         the stack modifiers. Throwing a SecurityException now calls Assembly.
378         UnprotectedGetName () to avoid throwing (recursively) other 
379         SecurityExceptions.
380         * PermissionSet.cs: Reworked frames check to include Assembly (moved) 
381         and AppDomain (new) transitions.
382         * SecurityFrame.cs: Added Domain member to match the runtime structure
383         definition. Removed debugging code (will be moved into the runtime 
384         later) as it can cause SecurityException is some cases.
385         * SecurityManager.cs: Added a method to check if a PermissionSet is
386         granted by an AppDomain.
388 2005-04-28  Sebastien Pouliot  <sebastien@ximian.com>
390         * PermissionSetCollection.cs: Updated wrt beta2. Seems this will be
391         removed before 2.0 final.
392         * HostProtectionException.cs: Updated wrt beta2. Added TODO as it 
393         isn't support by the runtime.
394         * SecurityContext.cs: Updated wrt beta2. Class is now internal in 
395         NET_1_1 to allow the compressed stack propagation to other threads.
396         * SecurityCriticalAttribute.cs: Added support for property Scope.
397         * SecurityException.cs: Removed PermitOnlySetInstance property to 
398         match beta2.
399         * SecurityTransparentAttribute.cs: Fixed AttributeUsage. Added TODO
400         as it isn't support by the runtime.
401         * SuppressUnmanagedCodeSecurityAttribute.cs: Added delegates to usage
402         in NET_2_0.
404 2005-04-27  Sebastien Pouliot  <sebastien@ximian.com>
406         * SecurityCriticalScope.cs: New. Enum introduced in 2.0 beta2.
407         * SecurityTreatAsSafeAttribute.cs: New. Attribute introducted in 2.0
408         beta2.
410 2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
412         * HostSecurityManager.cs: Now refers to HostSecurityManagerOptions.
413         * HostSecurityManagerFlags.cs: Renamed enum to 
414         HostSecurityManagerOptions.
416 2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
418         * SecurityException.cs: Added try/catch in GetObjectData because the
419         PermissionState property is serialized only if both ControlEvidence 
420         and ControlPolicy are granted.
422 2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
424         * CodeAccessPermission.cs: Fixed PermitOnly when used in a set. Added
425         an InheritanceDemand for ControlEvidence and ControlPolicy on the 
426         class.
427         * PermissionSet.cs: Added an InheritanceDemand for MS public key on 
428         class.
429         * SecurityException.cs: Moved PermissionType up in ToString as this
430         property isn't restricted (i.e. will be part of the output even if
431         the other properties can't make it).
433 2005-03-15  Sebastien Pouliot  <sebastien@ximian.com>
435         * CodeAccessPermission.cs: Fixed depth for starting the stack walk
436         (imperative) and fixed assert condition.
437         * PermissionSet.cs: Fixed depth for starting the stack walk.
438         * SecurityFrame.cs: Reversed stack. Added optional debugging code.
440 2005-03-14  Sebastien Pouliot  <sebastien@ximian.com>
442         * SecurityManager.cs: Fix CodeAccessPermissionTest.CustomCAS unit test
443         when --security is enabled (code was over-optimized ;-).
445 2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>
447         * SecurityManager.cs: Added methods to support reflection query and 
448         invoke for LinkDemand and InheritanceDemand. Added method to do a
449         stack walk (demand) when a p/invoking (called by JIT generated code).
451 2005-03-02  Sebastien Pouliot  <sebastien@ximian.com>
453         * CodeAccessPermission.cs,
454         * PermissionSet.cs: Don't throw NotSupportedException if the security 
455         manager (SecurityManager.SecurityEnabled) is off.
457 2005-02-25  Sebastien Pouliot  <sebastien@ximian.com> 
459         * CodeAccessPermission.cs: Implement Equals for NET_2_0 profile.
460         * PermissionSet.cs: Added code to decode the metadata format used for
461         declarative security in 2.0 (except enums and arrays now).
462         * PermissionSetCollection.cs: Added code to decode from the new metadata
463         format used for declarative security in 2.0.
464         * SecurityManager.cs: Added support for LinkDemandChoice, Inheritance
465         DemandChoice and DemandChoice (2.0). Added support for reflected 
466         LinkDemand (promotes the demand to a full Demand).
468 2005-02-15  Sebastien Pouliot  <sebastien@ximian.com> 
470         * SecurityException.cs: Show the method informations when displaying a
471         SecurityException.
472         * SecurityManager.cs: Reworked InheritanceDemand implementation. Added
473         a new method to throw a SecurityException for an InheritanceDemand.
475 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com> 
477         * SecurityManager.cs: Reduced the number of parameters for LinkDemand.
478         Removed a (forgotten) debugging message.
480 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
482         * SecurityException.cs: Show more information when a SecurityException
483         occurs to help debugging.
484         * SecurityManager.cs: Reworked LinkDemand implementation. Supply more
485         informations when throwing a SecurityException for LinkDemand.
486         * PermissionSet.cs: Remove (now) unused code for LinkDemand.
488 2005-02-08  Sebastien Pouliot  <sebastien@ximian.com>
490         * SecurityManager.cs: Updated code for LinkDemand (and it's special
491         cases).
493 2005-01-27  Sebastien Pouliot  <sebastien@ximian.com>
495         * CodeAccessPermission.cs: Process Deny for empty PermissionSet (e.g.
496         an unrestricted permission set must deny all permissions).
497         * SecurityException.cs: Added missing HResult to NET_2_0 constructors.
498         Added securiy permissions for GrantedSet, RefusedSet and 
499         PermissionState properties (to avoid leaking policy informations). 
500         Make sure that ToString() always works.
501         * SecurityManager.cs: Remove outdated comments (now that the 
502         declarative attributes are in place).
504 2005-01-25  Sebastien Pouliot  <sebastien@ximian.com>
506         * SecurityManager.cs: Now use Environment.InternalGetFolderPath to
507         avoid recursion when initializing security policies.
509 2005-01-24  Sebastien Pouliot  <sebastien@ximian.com>
511         * CodeAccessPermission.cs: Made ThrowSecurityException static so it 
512         can be reused from PermissionSet.
513         * SecurityManager.cs: Use the new icalls for SecurityEnabled and
514         CheckExecutionRights properties. Fix IsGranted for unrestricted 
515         permissions. Set type correctly when loading policy files.
516         * PermissionSet.cs: Now supports unrestricted permission set when
517         evaluating demands.
519 2005-01-22  Sebastien Pouliot  <sebastien@ximian.com>
521         * SecurityFrame.cs: Keep RuntimeDeclSecurityEntry enum in sync with
522         runtime (added index to allow AOT to work with declarative security).
524 2005-01-19  Sebastien Pouliot  <sebastien@ximian.com>
526         * SecurityManager.cs: Fix the regressions on NET_1_1 introduced by my
527         refactoring 10 days ago.
529 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
531         * PermissionSet.cs: Simplified GetHashCode as two exact copies may 
532         have different hash codes (documented as such). This fix some unit
533         tests for 2.0.
535 2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>
537         * HostSecurityManager.cs: Fix signature as DetermineApplicationTrust
538         doesn't return a boolean anymore.
539         * SecurityElement.cs: The attributes and children elements are not
540         indented in 2.0. This fix many unit tests that do string compares.
541         * PermissionSetCollection.cs: We can't trust all IList implementations
542         to throw the ArgumentOutOfRangeException - so we better do it here.
544 2005-01-09  Sebastien Pouliot  <sebastien@ximian.com>
546         * CodeAccessPermission.cs: CheckAssert, CheckDemand, CheckDeny and
547         CheckPermitOnly are no more publicly avaiable in Fx 2.0 and have been
548         changed to internal for all profiles. Updated comments to reflect the
549         (better) documentation available with 2.0.
550         * HostSecurityManager.cs: Updated to Dec CTP specs. There is missing
551         documentation (and/or classes) to implement completly the 
552         DetermineApplicationTrust method at this point.
553         * PermissionSetCollection.cs: Completed implementation.
554         * PermissionSet.cs: Fix the case where Assert, Deny and PermitOnly 
555         must be ignored for non-CAS permissions.
556         * SecurityManager.cs: Refactored resolve methods to implements 
557         ResolveSystemPolicy (a resolve without the AppDomain policy level).
558         Added a default implementation for GetZoneAndOrigin (empty ArrayList) 
559         which seems to be right (at least) for FullTrust. 
561 2005-01-08  Sebastien Pouliot  <sebastien@ximian.com>
563         * AllowPartiallyTrustedCallersAttribute.cs: Cleanup;
564         * HostSecurityManagerFlags.cs: Updated flags for 2.0 Dec CTP.
565         * SecurityCriticalAttribute.cs: New. New 2.0 attribute.
566         * SecurityTransparentAttribute.cs: New. New 2.0 attribute.
567         * SuppressUnmanagedCodeSecurityAttribute.cs: Cleanup;
569 2004-12-20  Sebastien Pouliot  <sebastien@ximian.com>
571         * CodeAccessPermission.cs: Refactored to play more nicely with 
572         PermissionSet and the new functionalities in the runtime.
573         * PermissionSet.cs: Modified to use the new functionalities in the
574         runtime. This allows the declarative stack modifiers to work in a 
575         stack walk.
576         * SecurityFrame.cs: New. This is the managed representation of the
577         security informations associated with a stack frame. This current
578         version only support declarative stack modifiers.
579         * SecurityManager.cs: Modified to use the new functionalities in the
580         runtime.
582 2004-11-30  Sebastien Pouliot  <sebastien@ximian.com>
584         * CodeAccessPermission.cs:
585         * NamedPermissionSet.cs:
586         * PermissionSet.cs:
587         * SecurityElement.cs:
588         * SecurityException.cs:
589                 Added ComVisible attributes to match 2.0 October Preview.
590         * SecureString.cs: Added an internal method to get the unencrypted 
591         string (required to use the string inside mscorlib).
593 2004-10-19  Sebastien Pouliot  <sebastien@ximian.com>
595         * SecurityManager.cs: Changed private static methods to use a single
596         parameter (as method permissions overrides class permissions for
597         demand, assert, deny and permitonly).
599 2004-10-15  Sebastien Pouliot  <sebastien@ximian.com>
601         * CodeAccessPermission.cs: Implemented stubs (soon to be icalls) to
602         get/set/clear the current security frame on the stack. Implemented
603         Assert, Deny and PermitOnly with the new methods. Changed Demand to
604         use the CheckAssert, CheckDeny, CheckPermitOnly and CheckDemand 
605         introduced in 2.0.
606         * PermissionSet.cs: Fixed IsEmpty using documentation from 2.0 beta 1.
607         Implemented immediate (i.e. no stack walk) caller demand (CAS and 
608         non-CAS) required for LinkDemand and InheritanceDemand. Implemented
609         Assert, Deny and PermitOnly using CodeAccessPermission new methods.
610         Re-implement Demand to separate CAS and non-CAS permissions.
611         * SecurityManager.cs: Added new private static methods that will 
612         either be called by the JIT (linkdemand), runtime (inheritancedemand)
613         or by code emitted by the JIT (demand, assert, deny and permitonly).
615 2004-10-15  Sebastien Pouliot  <sebastien@ximian.com>
617         * SecurityException.cs: Provide more details when a security exception
618         is raised (to help debugging).
620 2004-09-02  Sebastien Pouliot  <sebastien@ximian.com>
622         * PermissionSet.cs: Updated to match latest unit tests, i.e. match
623         Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
624         * SecurityElement.cs: FromString is now internal before NET_2_0.
626 2004-09-01  Sebastien Pouliot  <sebastien@ximian.com>
628         * NamedPermissionSet.cs: FromXml now calls base class instead of an
629         internal method of PermissionSet. This should allow class to inherit
630         from NamedPermissionSet properly.
631         * PermissionSet.cs: Added an internal PolicyLevel property to allow
632         policy file class name resolution. Fixed IsEmpty to return true if
633         the list contains "empty" permissions. Fixed Copy to copy permissions
634         even for unrestricted sets (again because of IUnrestrictedPermission).
635         * SecurityManager.cs: Fixed Resolve(Evidence) because permission 
636         classes Intersect methods can either return null or an empty 
637         PermissionSet.  Fixed ResolvePolicy(Evidence[]) for null (NET_2_0).
639 2004-08-31  Sebastien Pouliot  <sebastien@ximian.com>
641         * PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
642         in unit tests). Fixed SetPermission (null).
644 2004-08-30  Sebastien Pouliot  <sebastien@ximian.com>
646         * NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
647         Equals (for NET_2_0). Fixed handling of null Name when deserialized 
648         from XML.
649         * PermissionSet.cs: AddPermission now unions permissions of the same
650         type. CopyTo throw (most) exceptions only if there are items in the
651         set. Implemented Demand (but without support for Assert, Deny and 
652         PermitOnly). Fixed deserialized from XML when no class is specified.
653         Started implementation of ConvertPermissionSet (error cases). Fixed
654         Intersect to be compatible (including bugs like FDBK14612) with MS.
655         RemovePermission now compatible with MS (bug? FDBK14622). Fixed Union
656         to work with permissions that do not implement IUnrestrictedPermission.
658 2004-08-26  Sebastien Pouliot  <sebastien@ximian.com>
660         * SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a 
661         deep copy. Throw proper exceptions in FromString (Fx 2.0).
662         * SecurityManager.cs: Throw a NullReference exception in 
663         SavePolicyLevel as MS won't fix it (FDBK13121).
665 2004-08-19  Atsushi Enomoto  <atsushi@ximian.com>
667         * CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
668           CS0136 error detection (variable identifiers in switch cases share
669           the scope).
671 2004-08-17  Sebastien Pouliot  <sebastien@ximian.com>
673         * CodeAccessPermission.cs: Added common methods to help building all
674         Permissions classes in corlib. Most are declared static as they can 
675         also help non CodeAccessPermission-derived permissions.
677 2004-08-12  Sebastien Pouliot  <sebastien@ximian.com>
679         * SecurityManager.cs: Change ResolvePolicy to only care about host
680         provided evidence to create identity permissions.
681         * SecurityContextSwitcher.cs: Added missing [ReliabilityContract] to 
682         Undo method.
684 2004-08-11  Sebastien Pouliot  <sebastien@ximian.com>
686         * CodeAccessPermission.cs: Basic implementation for Demand (without
687         full stack trace, i.e. Assert, Deny and PermitOnly aren't considered).
688         Added TODO to unimplemented NET_2_0 methods.
689         * HostSecurityManager.cs: Added comments (as it looked not implemented
690         even to myself).
691         * PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
692         ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
693         more robust.
694         * SecurityManager.cs: Implemented IsGranted using Assembly.Demand. 
695         Basic implementation for policy resolution.
697 2004-08-03  Sebastien Pouliot  <sebastien@ximian.com>
699         * PermissionSetCollection.cs: New class in Fx 2.0.
700         * SecureString.cs: New class in Fx 2.0. Not yet encrypted.
702 2004-08-02  Sebastien Pouliot  <sebastien@ximian.com>
704         * PolicyTypeLevel.cs: Removed duplicate license.
705         * SecurityManager.cs: Moved secuirty demands as attributes (but mcs 
706         doesn't seem to encode them properly as they show up in corcompare).
707         Implemented IsGranted, ResolvePolicy (but some code is still missing
708         in related classes) and SavePolicy/SavePolicyLevel.
710 2004-07-14  Sebastien Pouliot  <sebastien@ximian.com>
712         * CodeAccessPermission.cs: Added CheckAssert, CheckDemand, CheckDeny,
713         CheckPermitOnly, Equals and GetHashCode to NET_2_0 profile. Actualized
714         TODOs. Removed duplicate license.
715         * NamedPermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
716         Removed duplicate license.
717         * PermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile. 
718         Removed duplicate license.
719         * SecurityElement.cs: Added Copy and FromString methods to NET_2_0 
720         profile. Removed duplicate license.
721         * SecurityException.cs: Added new constructors and properties to 
722         NET_2_0 profile. Removed duplicate license.
723         * SecurityManager.cs: Added GetZoneAndOrigin and ResolvePolicy to 
724         NET_2_0 profile. Removed duplicate license.
725         * VerificationException.cs: Implements _Exception for NET_2_0 profile.
726         Removed duplicate license.
727         * XmlSyntaxException.cs: Implements _Exception for NET_2_0 profile. 
728         Removed duplicate license.
730 2004-07-14  Sebastien Pouliot  <sebastien@ximian.com>
732         * HostProtectionException.cs: New class in Fx 2.0.
733         * HostSecurityManager.cs: New class in Fx 2.0.
734         * HostSecurityManagerFlags.cs: New enum in Fx 2.0.
735         * SecurityContext.cs: New class in Fx 2.0.
736         * SecurityContextSwitcher.cs: New structure in Fx 2.0.
738 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
740         * XmlSyntaxException.cs: added missing serialization ctor
741         * SecurityException.cs: fixed typo
743 2004-03-05  Atsushi Enomoto <atsushi@ximian.com>
745         * SecurityElement.cs : ignore prefix; this enables RSA.FromXmlString()
746           to allow namespaced elements.
748 2004-01-27  Sebastien Pouliot  <spouliot@videotron.ca>
750         * SecurityElement.cs: Attributes are now kept in an ArrayList (but
751         still returned in an Hashtable) so the attributes order can be
752         kept like MS implementation (but Hashtable cannot guarantee this).
754 2004-01-26  Sebastien Pouliot  <spouliot@videotron.ca>
756         * NamedPermissionSet.cs: Changed internal constructor 
757         NamedPermissionSet (SecurityElement e) to NamedPermissionSet ().
758         * PermissionSet.cs: Changed internal constructor 
759         PermissionSet (SecurityElement e) to PermissionSet ().
761 2004-01-24  David Sheldon <dave-mono@earth.li>
763        * SecurityElement.cs: Changed indentation in ToString, it seems
764         MS indent by 3 spaces, not 4. Also added NewLine to childless 
765         elements.
767 2004-01-24  David Sheldon <dave-mono@earth.li>
769        * SecurityElement.cs: Changed newline distribution in ToString.
770          Matches MS better.
772 2004-01-06  Sebastien Pouliot  <spouliot@videotron.ca>
774         * CodeAccessPermission.cs: Fixed Demand for custom permissions 
775         (permissions that do not implement, the internal, IBuiltInPermission).
776         Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
777         * SecurityException.cs: Fixed ToString() which could, when no 
778         PermissionType where specified, throws a NullReferenceException.
779         Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
781 2004-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
783         * CodeAccessPermission.cs: Fixed Union to match 1.1/1.2 documentation. 
784         Simplified ToString to match MS implementation. Added LAMESPEC to 
785         Assert, Demand, Deny and PermitOnly as they aren't virtual.
786         * NamedPermissionSet.cs: Added internal constructor for PolicyLevel. 
787         * PermissionSet.cs: Added internal constructor for PolicyLevel. 
788         * SecurityManager.cs: Moved some stuff to PolicyLevel class (e.g. Load).
790 2004-01-03  Sebastien Pouliot  <spouliot@videotron.ca>
792         * SecurityManager.cs: Added some basic stuff to make some security unit
793         tests works (mostly when using PolicyHierarchy).
795 2004-01-02  Sebastien Pouliot  <spouliot@videotron.ca>
797         * AllowPartiallyTrustedCallersAttribute.cs: Fixed AttributeUsage using
798         1.2 documentation (AllowMultiple=false, Inherited=false)
799         * NamedPermissionSet.cs: Changes to match unit tests.
800         * PermissionSet.cs: Implemented Copy, Intersect, IsSubsetOf and Union 
801         methods. Corrected FromXml.
802         * PolicyLevelType.cs: Added missing [Serializable].
803         * SecurityElement.cs: Fixed constructor to match unit tests.
804         * SecurityException.cs: Added support for GrantedSet and RefusedSet 
805         properties (since 1.1). Set HResult to 0x8013150A.
806         * SecurityZone.cs: Added missing [Serializable].
807         * SuppressUnmanagedCodeSecurityAttribute.cs: Fixed AttributeUsage using
808         1.2 documentation (AllowMultiple=true, Inherited=false)
809         * UnverifiableCodeAttribute.cs: Fixed AttributeUsage using 1.2 
810         documentation (AllowMultiple=true, Inherited=false)
812 2003-06-29  Sebastien Pouliot  <spouliot@videotron.ca>
814         * PermissionSet.cs: Added missing "virtual" to Count, IsSynchronized 
815         and SyncRoot.
817 2003-06-29  Nick Drochak  <ndrochak@gol.com>
819         * NamedPermissionSet.cs : Fix buglet/typo/thinko. Thank you unit tests.
821 2003-06-28  Sebastien Pouliot  <spouliot@videotron.ca>
823         * CodeAccessPermission.cs: Added missing methods. Removed old XML
824         documentation (present in monodoc). Added missing MonoTODO attrs.
825         * NamedPermissionSet.cs : Changed some code from result of unit 
826         tests. Updated MonoTODO attributes.
827         * PermissionSet.cs: Added missing methods. Removed old XML
828         documentation (present in monodoc). Added missing MonoTODO attrs.
829         Added code to some methods.
830         * SecurityManager.cs: Added missing MonoTODO attributes.
832 2003-05-09  Sebastien Pouliot  <spouliot@videotron.ca>
834         * AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
835         from original 1.0 documentation (but inclufed in framework 1.0)
837 2002-06-10  Duncan Mak  <duncan@ximian.com>
839         * IEvidenceFactory.cs (Evidence): Added missing method.
840         
841         * SuppressUnmanagedCodeSecurityAttribute.cs:
842         * UnverifiableCodeAttribute.cs: Added missing
843         AttributeUsage attribute.
845 2002-06-05  Nick Drochak  <ndrochak@gol.com>
847         * SecurityElement.cs: Fixed couple of hard to spot typos which were
848         causing valid names and keys to be rejected.
850 2002-04-28  Lawrence Pit <loz@cable.a2000.nl>
852         * CodeAccessPermission.cs : implemented ToString method
854 2002-04-27  Lawrence Pit <loz@cable.a2000.nl>
856         * SecurityElement.cs: fixed bugs, implemented several methods
858 2002-03-12  Duncan Mak  <duncan@ximian.com>
860         * SecurityException.cs: Inherit from SystemException, not Exception.
862 2002-02-23  Nick Drochak  <ndrochak@gol.com>
864         * SecurityElement.cs: fixed typo
866 2002-02-13  Dan Lewis <dihlewis@yahoo.co.uk>
867         
868         * NamedPermissionSet.cs: New file (stub)
870 2002-02-07  Duncan Mak  <duncan@ximian.com>
872         * SecurityException.cs: Reformatted to fit the form of other
873         Exceptions. Added serialization bits.
875 2002-01-05  Ravi Pratap  <ravi@ximian.com>
877         * SecurityElement.cs : Insert MonoTODO attribute.
879 2002-01-02  Nick Drochak  <ndrochak@gol.com>
881         * CodeAccessPermission.cs: Fix syntax error hidden by exclusion in .build file
883 2001-12-30  Nick Drochak  <ndrochak@gol.com>
885         * PermissionSet.cs SecurityManager.cs: New Files
886         * CodeAccessPermission.cs: Add Skeleton code
887         * IPermission.cs: Make public and inherit from ISecurityEncodable 
888         * ISecurityEncodable.cs: Make interface public
889         * ISecurityPolicyEncodable.cs: Ditto
890         * IStackWalk.cs: Ditto
892 2001-12-29  Nick Drochak  <ndrochak@gol.com>
894         * ISecurityPolicyEncodable.cs, PolicyLevelType.cs, 
895         SecurityZone.cs, SecurityException.cs, UnverifiableCodeAttribute.cs,
896         SuppressUnmanagedCodeSecurityAttribute.cs,
897         VerificationException.cs, XmlSyntaxException.cs: New files
899 2001-12-21  Miguel de Icaza  <miguel@ximian.com>
901         * SecurityElement.cs, CodeAccessPermission.cs IPermission.cs
902         IStackWalk.cs SecurityElement.cs ISecurityEncodable.cs: New files.
903