2007-08-20 Mark Probst <mark.probst@gmail.com>
[mono.git] / mcs / class / corlib / System.Security / ChangeLog
1 2007-08-20  Mark Probst  <mark.probst@gmail.com>
2
3         * SecurityManager.cs: Changed arguments of MethodAccessException
4         to IntPtr, to avoid having to embed reference object values in the
5         native code.
6
7 2007-08-20  Mark Probst  <mark.probst@gmail.com>
8
9         * SecurityManager.cs: Added two methods needed for CoreCLR
10         security.
11
12 2007-08-08  Atsushi Enomoto  <atsushi@ximian.com>
13
14         * SecureString.cs : commenting out internal call. It somehow seems
15           to cause timeout on the buildbots :(
16
17 2007-08-07  Atsushi Enomoto  <atsushi@ximian.com>
18
19         * SecureString.cs : adding notes that ProtectedMemory is not
20           implemented for non-windows environment.
21
22 2007-08-07  Atsushi Enomoto  <atsushi@ximian.com>
23
24         * SecureString.cs : Decrypt() and Encrypt() now use icall wrapper
25           to ProtectedMemory in System.Security.dll.
26
27 2007-02-23  Sebastien Pouliot  <sebastien@ximian.com>
28
29         * PermissionSet.cs: Fix InvalidCastException on non-CAS permissions.
30         Fix bug #80936.
31
32 2006-06-16  Sebastien Pouliot  <sebastien@ximian.com>
33
34         * SecurityContext.cs: Don't skip the calling callBack if we don't call
35         CompressedStack.Run (#78652).
36
37 2006-06-15  Sebastien Pouliot  <sebastien@ximian.com>
38
39         * SecurityContext.cs: Don't call CompressedStack.Run if we don't have
40         a compressed stack in the context (which can now happen because of 
41         #78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).
42
43 2006-04-07  Sebastien Pouliot  <sebastien@ximian.com>
44
45         * SecurityException.cs: Show Evidence correctly (it's a collection) 
46         but avoid showing the Hash evidence (it's way too big to be useful).
47
48 2005-11-11  Sebastien Pouliot  <sebastien@ximian.com> 
49
50         * SecureString.cs: Completed InsertAt, fixed Alloc not to re-alloc a
51         block of the same size. Fixed missing encryption for the char* ctor.
52         Only missing is access to ProtectedMemory do to the [en|de]cryption.
53
54 2005-10-30  Sebastien Pouliot  <sebastien@ximian.com> 
55  
56         * PermissionSet.cs: Forgot to remove virtual from 2.0 IsSubsetOf.
57
58 2005-10-29  Sebastien Pouliot  <sebastien@ximian.com> 
59  
60         * PermissionSet.cs: Another update to corcompare shows that even more
61         methods are not virtual in 2.0 final.
62
63 2005-10-28  Sebastien Pouliot  <sebastien@ximian.com> 
64  
65         * PermissionSet.cs: Some methods are no more virtual in 2.0 final.
66
67 2005-10-28  Sebastien Pouliot  <sebastien@ximian.com>
68
69         * SecureString.cs: Changed the previous (and partial) managed 
70         implementation to one (that will be) based on ProtectedMemory. Work in
71         progress...
72
73 2005-10-17  Sebastien Pouliot  <sebastien@ximian.com>
74
75         * PermissionSet.cs: If the current permission set is unrestricted then
76         we must allow "permit only" for unrestricted (all other case are known
77         to be too restrictive).
78
79 2005-09-22  Sebastien Pouliot  <sebastien@ximian.com>
80
81         * SecurityManager.cs: Added [Obsolete] on SecurityEnabled for 2.0 (as 
82         it cannot be turned off on MS runtime anymore). Removed dependecies
83         on PermissionSetCollection as this class (related to *Choice actions)
84         didn't make it to 2.0 RC.
85
86 2005-09-02  Sebastien Pouliot  <sebastien@ximian.com>
87  
88         * CodeAccessPermission.cs: Fix Deny for permissions that do not return
89         null for empty intersection (common on flags-based permissions).
90         * PermissionBuilder.cs: Add an helper call to create an empty 
91         (PermissionState.None) permission from a type.
92         * SecurityManager.cs: Added AppDomain support in InheritanceDemand. 
93         Fixed some another small difference between 1.x and 2.0 (wrt 
94         unrestricted permissions). Fixed error reporting for InheritanceDemand
95         (was LinkDemand).
96
97 2005-06-30  Sebastien Pouliot  <sebastien@ximian.com> 
98
99         * SecurityManager.cs: Fixed inheritance demands for 1.x.
100
101 2005-06-22  Sebastien Pouliot  <sebastien@ximian.com> 
102
103         * CodeAccessPermission.cs: Fix Unrestricted PermitOnly (which is like
104         a no-op). Speed up Assert if Unrestricted.
105         * HostSecurityManager.cs: Updated FIXME description.
106         * PermissionSet.cs: Remove Copy() of the permission set when non-CAS
107         permissions are used (replaced by an array of bools). Completed Assert
108         support by re-using the array of bools. Updated TODO descriptions.
109         * SecurityException.cs: Added evidence (if available) in the ToString
110         description of the exception.
111         * SecurityManager.cs: Reworked CheckExecutionRights to get the correct
112         behavior.
113
114 2005-06-20  Sebastien Pouliot  <sebastien@ximian.com> 
115
116         * CodeAccessPermission.cs: Removed redundant and unrequired TODO.
117         * PermissionSet.cs: Some 2.0 optimizations (because sets are simpler
118         without the special case for identity permissions).
119         * SecurityManager.cs: Shortcut for ResolveIdentityPermissions (in 2.0)
120         and some more declarative security syntax updates.
121
122 2005-06-16  Sebastien Pouliot  <sebastien@ximian.com> 
123
124         * PermissionSet.cs: Added support for non-CAS permissions in the
125         IsSubsetOf method.
126         * SecurityManager.cs: Simplified IsGranted and added support for 2.0
127         (where all permissions support unrestricted). Changed desclarative 
128         security syntax not to use flags (like the rest of the source code).
129
130 2005-06-16  Sebastien Pouliot  <sebastien@ximian.com> 
131  
132         * NamedPermissionSet.cs: A default NamedPermissionSet is Unrestricted.
133         * SecurityManager.cs: Simplified LinkDemandFullTrust as FullTrust is
134         immutable.
135
136 2005-06-14  Sebastien Pouliot  <sebastien@ximian.com>
137
138         * SecurityManager.cs: Added ResolvingPolicyLevel property to enable
139         support for FullTrustAssemblies during policy resolution. Reworked
140         (simplified) locking. Moved check for CheckExecutionRights to the 
141         "right" place.
142         * PermissionSet.cs: Added shortcut in GetPermission(Type).
143
144 2005-06-08  Sebastien Pouliot  <sebastien@ximian.com>
145
146         * AllowPartiallyTrustedCallersAttribute.cs, HostSecurityManagerFlags.cs
147         IEvidenceFactory.cs, IPermission.cs, ISecurityEncodable.cs,
148         ISecurityPolicyEncodable.cs, IStackWalk.cs, NamedPermissionSet.cs,
149         PolicyLevelType.cs, SecureString.cs, SecurityElement.cs, 
150         SecurityZone.cs, UnverifiableCodeAttribute.cs, VerificationException.cs
151         XmlSyntaxException.cs: Fix 2.0 beta2 API changes (which is mostly 
152         adding ComVisible attributes to classes).
153
154 2005-06-01  Sebastien Pouliot  <sebastien@ximian.com>
155
156         * PermissionBuilder.cs: Removed unification stuff. This is done at a 
157         lower level.
158         * SecurityManager.cs: Split loading PolicyLevel in two phases. The
159         PolicyHierarchy is now available after phase 1 which ensures we can
160         load permission from outside corlib.
161
162 2005-05-28  Sebastien Pouliot  <sebastien@ximian.com>
163
164         * HostSecurityManager.cs: Added check for ActivationArguments in 
165         application evidences.
166
167 2005-05-27  Sebastien Pouliot  <sebastien@ximian.com>
168
169         * CodeAccessPermission.cs: Allow unrestricted identity permissions in
170         2.0.
171         * PermissionBuilder.cs: New. Internal class to help create permission
172         instances from XML or with a fully qualified name. This class also 
173         deals with unification.
174         * PermissionSet.cs: Use PermissionBuilder to create permissions in 
175         FromXml method. Many 2.0 fixes (mostly to support unrestricted 
176         identity permissions)
177
178 2005-05-26  Sebastien Pouliot  <sebastien@ximian.com>
179
180         * CodeAccessPermission.cs: Fix typo for PermitOnly. Added ComVisible 
181         attribute for NET_2_0 profile.
182         * PermissionSet.cs: Changed static string to const. Added ComVisible 
183         attribute for NET_2_0 profile.
184         * SecurityContext.cs: Capture the identity token but don't create a 
185         WindowsIdentity instance unless required (e.g. Run). This requires 
186         less privileges (so it runs better that way under CAS).
187
188 2005-05-25  Sebastien Pouliot  <sebastien@ximian.com>
189
190         * SecurityException.cs: PermissionState isn't always serialized 
191         (depending on the security policy) so it cannot always be deserialized
192         too (and this must work without throwing exceptions).
193
194 2005-05-20  Sebastien Pouliot  <sebastien@ximian.com>
195
196         * SecurityContext.cs: Includes more methods in NET_1_1 to enable 
197         ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
198         stack propagation).
199
200 2005-05-16  Sebastien Pouliot  <sebastien@ximian.com>
201
202         * PermissionSet.cs: Add support for "hidden" read-only mode (as used
203         by PolicyStatement).
204         * SecurityFrame.cs: Add some debugging code in the ToString method.
205         * SecurityManager.cs: Changed internal API so we can display the 
206         permission that failed in a PermissionSet (e.g. assembly or appdomain).
207
208 2005-05-11  Sebastien Pouliot  <sebastien@ximian.com>
209
210         * SecurityManager.cs: GetZoneAndOrigin is present in 1.1 too (but is 
211         hidden from mono-api-info because of the LinkDemand for ECMA key).
212
213 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com> 
214  
215         * SecurityContext.cs: That was the wrong place to capture the stack.
216
217 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
218
219         * SecurityContext.cs: Capture the CompressedStack when the current 
220         context one is empty.
221         * SecurityManager.cs: Class is now static (2.0).
222         * SecurityTreatAsSafeAttribute.cs: Fixed AttributeTargets.
223
224 2005-05-06  Sebastien Pouliot  <sebastien@ximian.com>
225
226         * CodeAccessPermission.cs: Reworked frames check to check only for
227         the stack modifiers. Throwing a SecurityException now calls Assembly.
228         UnprotectedGetName () to avoid throwing (recursively) other 
229         SecurityExceptions.
230         * PermissionSet.cs: Reworked frames check to include Assembly (moved) 
231         and AppDomain (new) transitions.
232         * SecurityFrame.cs: Added Domain member to match the runtime structure
233         definition. Removed debugging code (will be moved into the runtime 
234         later) as it can cause SecurityException is some cases.
235         * SecurityManager.cs: Added a method to check if a PermissionSet is
236         granted by an AppDomain.
237
238 2005-04-28  Sebastien Pouliot  <sebastien@ximian.com>
239
240         * PermissionSetCollection.cs: Updated wrt beta2. Seems this will be
241         removed before 2.0 final.
242         * HostProtectionException.cs: Updated wrt beta2. Added TODO as it 
243         isn't support by the runtime.
244         * SecurityContext.cs: Updated wrt beta2. Class is now internal in 
245         NET_1_1 to allow the compressed stack propagation to other threads.
246         * SecurityCriticalAttribute.cs: Added support for property Scope.
247         * SecurityException.cs: Removed PermitOnlySetInstance property to 
248         match beta2.
249         * SecurityTransparentAttribute.cs: Fixed AttributeUsage. Added TODO
250         as it isn't support by the runtime.
251         * SuppressUnmanagedCodeSecurityAttribute.cs: Added delegates to usage
252         in NET_2_0.
253
254 2005-04-27  Sebastien Pouliot  <sebastien@ximian.com>
255
256         * SecurityCriticalScope.cs: New. Enum introduced in 2.0 beta2.
257         * SecurityTreatAsSafeAttribute.cs: New. Attribute introducted in 2.0
258         beta2.
259
260 2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
261
262         * HostSecurityManager.cs: Now refers to HostSecurityManagerOptions.
263         * HostSecurityManagerFlags.cs: Renamed enum to 
264         HostSecurityManagerOptions.
265
266 2005-03-31  Sebastien Pouliot  <sebastien@ximian.com>
267
268         * SecurityException.cs: Added try/catch in GetObjectData because the
269         PermissionState property is serialized only if both ControlEvidence 
270         and ControlPolicy are granted.
271
272 2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
273
274         * CodeAccessPermission.cs: Fixed PermitOnly when used in a set. Added
275         an InheritanceDemand for ControlEvidence and ControlPolicy on the 
276         class.
277         * PermissionSet.cs: Added an InheritanceDemand for MS public key on 
278         class.
279         * SecurityException.cs: Moved PermissionType up in ToString as this
280         property isn't restricted (i.e. will be part of the output even if
281         the other properties can't make it).
282
283 2005-03-15  Sebastien Pouliot  <sebastien@ximian.com>
284
285         * CodeAccessPermission.cs: Fixed depth for starting the stack walk
286         (imperative) and fixed assert condition.
287         * PermissionSet.cs: Fixed depth for starting the stack walk.
288         * SecurityFrame.cs: Reversed stack. Added optional debugging code.
289
290 2005-03-14  Sebastien Pouliot  <sebastien@ximian.com>
291
292         * SecurityManager.cs: Fix CodeAccessPermissionTest.CustomCAS unit test
293         when --security is enabled (code was over-optimized ;-).
294
295 2005-03-11  Sebastien Pouliot  <sebastien@ximian.com>
296
297         * SecurityManager.cs: Added methods to support reflection query and 
298         invoke for LinkDemand and InheritanceDemand. Added method to do a
299         stack walk (demand) when a p/invoking (called by JIT generated code).
300
301 2005-03-02  Sebastien Pouliot  <sebastien@ximian.com>
302
303         * CodeAccessPermission.cs,
304         * PermissionSet.cs: Don't throw NotSupportedException if the security 
305         manager (SecurityManager.SecurityEnabled) is off.
306
307 2005-02-25  Sebastien Pouliot  <sebastien@ximian.com> 
308
309         * CodeAccessPermission.cs: Implement Equals for NET_2_0 profile.
310         * PermissionSet.cs: Added code to decode the metadata format used for
311         declarative security in 2.0 (except enums and arrays now).
312         * PermissionSetCollection.cs: Added code to decode from the new metadata
313         format used for declarative security in 2.0.
314         * SecurityManager.cs: Added support for LinkDemandChoice, Inheritance
315         DemandChoice and DemandChoice (2.0). Added support for reflected 
316         LinkDemand (promotes the demand to a full Demand).
317
318 2005-02-15  Sebastien Pouliot  <sebastien@ximian.com> 
319
320         * SecurityException.cs: Show the method informations when displaying a
321         SecurityException.
322         * SecurityManager.cs: Reworked InheritanceDemand implementation. Added
323         a new method to throw a SecurityException for an InheritanceDemand.
324
325 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com> 
326  
327         * SecurityManager.cs: Reduced the number of parameters for LinkDemand.
328         Removed a (forgotten) debugging message.
329
330 2005-02-10  Sebastien Pouliot  <sebastien@ximian.com>
331
332         * SecurityException.cs: Show more information when a SecurityException
333         occurs to help debugging.
334         * SecurityManager.cs: Reworked LinkDemand implementation. Supply more
335         informations when throwing a SecurityException for LinkDemand.
336         * PermissionSet.cs: Remove (now) unused code for LinkDemand.
337
338 2005-02-08  Sebastien Pouliot  <sebastien@ximian.com>
339
340         * SecurityManager.cs: Updated code for LinkDemand (and it's special
341         cases).
342
343 2005-01-27  Sebastien Pouliot  <sebastien@ximian.com>
344
345         * CodeAccessPermission.cs: Process Deny for empty PermissionSet (e.g.
346         an unrestricted permission set must deny all permissions).
347         * SecurityException.cs: Added missing HResult to NET_2_0 constructors.
348         Added securiy permissions for GrantedSet, RefusedSet and 
349         PermissionState properties (to avoid leaking policy informations). 
350         Make sure that ToString() always works.
351         * SecurityManager.cs: Remove outdated comments (now that the 
352         declarative attributes are in place).
353
354 2005-01-25  Sebastien Pouliot  <sebastien@ximian.com>
355
356         * SecurityManager.cs: Now use Environment.InternalGetFolderPath to
357         avoid recursion when initializing security policies.
358
359 2005-01-24  Sebastien Pouliot  <sebastien@ximian.com>
360
361         * CodeAccessPermission.cs: Made ThrowSecurityException static so it 
362         can be reused from PermissionSet.
363         * SecurityManager.cs: Use the new icalls for SecurityEnabled and
364         CheckExecutionRights properties. Fix IsGranted for unrestricted 
365         permissions. Set type correctly when loading policy files.
366         * PermissionSet.cs: Now supports unrestricted permission set when
367         evaluating demands.
368
369 2005-01-22  Sebastien Pouliot  <sebastien@ximian.com>
370
371         * SecurityFrame.cs: Keep RuntimeDeclSecurityEntry enum in sync with
372         runtime (added index to allow AOT to work with declarative security).
373
374 2005-01-19  Sebastien Pouliot  <sebastien@ximian.com>
375
376         * SecurityManager.cs: Fix the regressions on NET_1_1 introduced by my
377         refactoring 10 days ago.
378
379 2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
380
381         * PermissionSet.cs: Simplified GetHashCode as two exact copies may 
382         have different hash codes (documented as such). This fix some unit
383         tests for 2.0.
384
385 2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>
386
387         * HostSecurityManager.cs: Fix signature as DetermineApplicationTrust
388         doesn't return a boolean anymore.
389         * SecurityElement.cs: The attributes and children elements are not
390         indented in 2.0. This fix many unit tests that do string compares.
391         * PermissionSetCollection.cs: We can't trust all IList implementations
392         to throw the ArgumentOutOfRangeException - so we better do it here.
393
394 2005-01-09  Sebastien Pouliot  <sebastien@ximian.com>
395
396         * CodeAccessPermission.cs: CheckAssert, CheckDemand, CheckDeny and
397         CheckPermitOnly are no more publicly avaiable in Fx 2.0 and have been
398         changed to internal for all profiles. Updated comments to reflect the
399         (better) documentation available with 2.0.
400         * HostSecurityManager.cs: Updated to Dec CTP specs. There is missing
401         documentation (and/or classes) to implement completly the 
402         DetermineApplicationTrust method at this point.
403         * PermissionSetCollection.cs: Completed implementation.
404         * PermissionSet.cs: Fix the case where Assert, Deny and PermitOnly 
405         must be ignored for non-CAS permissions.
406         * SecurityManager.cs: Refactored resolve methods to implements 
407         ResolveSystemPolicy (a resolve without the AppDomain policy level).
408         Added a default implementation for GetZoneAndOrigin (empty ArrayList) 
409         which seems to be right (at least) for FullTrust. 
410
411 2005-01-08  Sebastien Pouliot  <sebastien@ximian.com>
412
413         * AllowPartiallyTrustedCallersAttribute.cs: Cleanup;
414         * HostSecurityManagerFlags.cs: Updated flags for 2.0 Dec CTP.
415         * SecurityCriticalAttribute.cs: New. New 2.0 attribute.
416         * SecurityTransparentAttribute.cs: New. New 2.0 attribute.
417         * SuppressUnmanagedCodeSecurityAttribute.cs: Cleanup;
418
419 2004-12-20  Sebastien Pouliot  <sebastien@ximian.com>
420
421         * CodeAccessPermission.cs: Refactored to play more nicely with 
422         PermissionSet and the new functionalities in the runtime.
423         * PermissionSet.cs: Modified to use the new functionalities in the
424         runtime. This allows the declarative stack modifiers to work in a 
425         stack walk.
426         * SecurityFrame.cs: New. This is the managed representation of the
427         security informations associated with a stack frame. This current
428         version only support declarative stack modifiers.
429         * SecurityManager.cs: Modified to use the new functionalities in the
430         runtime.
431
432 2004-11-30  Sebastien Pouliot  <sebastien@ximian.com>
433
434         * CodeAccessPermission.cs:
435         * NamedPermissionSet.cs:
436         * PermissionSet.cs:
437         * SecurityElement.cs:
438         * SecurityException.cs:
439                 Added ComVisible attributes to match 2.0 October Preview.
440         * SecureString.cs: Added an internal method to get the unencrypted 
441         string (required to use the string inside mscorlib).
442
443 2004-10-19  Sebastien Pouliot  <sebastien@ximian.com>
444
445         * SecurityManager.cs: Changed private static methods to use a single
446         parameter (as method permissions overrides class permissions for
447         demand, assert, deny and permitonly).
448
449 2004-10-15  Sebastien Pouliot  <sebastien@ximian.com>
450
451         * CodeAccessPermission.cs: Implemented stubs (soon to be icalls) to
452         get/set/clear the current security frame on the stack. Implemented
453         Assert, Deny and PermitOnly with the new methods. Changed Demand to
454         use the CheckAssert, CheckDeny, CheckPermitOnly and CheckDemand 
455         introduced in 2.0.
456         * PermissionSet.cs: Fixed IsEmpty using documentation from 2.0 beta 1.
457         Implemented immediate (i.e. no stack walk) caller demand (CAS and 
458         non-CAS) required for LinkDemand and InheritanceDemand. Implemented
459         Assert, Deny and PermitOnly using CodeAccessPermission new methods.
460         Re-implement Demand to separate CAS and non-CAS permissions.
461         * SecurityManager.cs: Added new private static methods that will 
462         either be called by the JIT (linkdemand), runtime (inheritancedemand)
463         or by code emitted by the JIT (demand, assert, deny and permitonly).
464
465 2004-10-15  Sebastien Pouliot  <sebastien@ximian.com>
466
467         * SecurityException.cs: Provide more details when a security exception
468         is raised (to help debugging).
469
470 2004-09-02  Sebastien Pouliot  <sebastien@ximian.com>
471
472         * PermissionSet.cs: Updated to match latest unit tests, i.e. match
473         Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
474         * SecurityElement.cs: FromString is now internal before NET_2_0.
475
476 2004-09-01  Sebastien Pouliot  <sebastien@ximian.com>
477
478         * NamedPermissionSet.cs: FromXml now calls base class instead of an
479         internal method of PermissionSet. This should allow class to inherit
480         from NamedPermissionSet properly.
481         * PermissionSet.cs: Added an internal PolicyLevel property to allow
482         policy file class name resolution. Fixed IsEmpty to return true if
483         the list contains "empty" permissions. Fixed Copy to copy permissions
484         even for unrestricted sets (again because of IUnrestrictedPermission).
485         * SecurityManager.cs: Fixed Resolve(Evidence) because permission 
486         classes Intersect methods can either return null or an empty 
487         PermissionSet.  Fixed ResolvePolicy(Evidence[]) for null (NET_2_0).
488
489 2004-08-31  Sebastien Pouliot  <sebastien@ximian.com>
490
491         * PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
492         in unit tests). Fixed SetPermission (null).
493
494 2004-08-30  Sebastien Pouliot  <sebastien@ximian.com>
495
496         * NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
497         Equals (for NET_2_0). Fixed handling of null Name when deserialized 
498         from XML.
499         * PermissionSet.cs: AddPermission now unions permissions of the same
500         type. CopyTo throw (most) exceptions only if there are items in the
501         set. Implemented Demand (but without support for Assert, Deny and 
502         PermitOnly). Fixed deserialized from XML when no class is specified.
503         Started implementation of ConvertPermissionSet (error cases). Fixed
504         Intersect to be compatible (including bugs like FDBK14612) with MS.
505         RemovePermission now compatible with MS (bug? FDBK14622). Fixed Union
506         to work with permissions that do not implement IUnrestrictedPermission.
507
508 2004-08-26  Sebastien Pouliot  <sebastien@ximian.com>
509
510         * SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a 
511         deep copy. Throw proper exceptions in FromString (Fx 2.0).
512         * SecurityManager.cs: Throw a NullReference exception in 
513         SavePolicyLevel as MS won't fix it (FDBK13121).
514
515 2004-08-19  Atsushi Enomoto  <atsushi@ximian.com>
516
517         * CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
518           CS0136 error detection (variable identifiers in switch cases share
519           the scope).
520
521 2004-08-17  Sebastien Pouliot  <sebastien@ximian.com>
522
523         * CodeAccessPermission.cs: Added common methods to help building all
524         Permissions classes in corlib. Most are declared static as they can 
525         also help non CodeAccessPermission-derived permissions.
526
527 2004-08-12  Sebastien Pouliot  <sebastien@ximian.com>
528
529         * SecurityManager.cs: Change ResolvePolicy to only care about host
530         provided evidence to create identity permissions.
531         * SecurityContextSwitcher.cs: Added missing [ReliabilityContract] to 
532         Undo method.
533
534 2004-08-11  Sebastien Pouliot  <sebastien@ximian.com>
535
536         * CodeAccessPermission.cs: Basic implementation for Demand (without
537         full stack trace, i.e. Assert, Deny and PermitOnly aren't considered).
538         Added TODO to unimplemented NET_2_0 methods.
539         * HostSecurityManager.cs: Added comments (as it looked not implemented
540         even to myself).
541         * PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
542         ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
543         more robust.
544         * SecurityManager.cs: Implemented IsGranted using Assembly.Demand. 
545         Basic implementation for policy resolution.
546
547 2004-08-03  Sebastien Pouliot  <sebastien@ximian.com>
548
549         * PermissionSetCollection.cs: New class in Fx 2.0.
550         * SecureString.cs: New class in Fx 2.0. Not yet encrypted.
551
552 2004-08-02  Sebastien Pouliot  <sebastien@ximian.com>
553
554         * PolicyTypeLevel.cs: Removed duplicate license.
555         * SecurityManager.cs: Moved secuirty demands as attributes (but mcs 
556         doesn't seem to encode them properly as they show up in corcompare).
557         Implemented IsGranted, ResolvePolicy (but some code is still missing
558         in related classes) and SavePolicy/SavePolicyLevel.
559
560 2004-07-14  Sebastien Pouliot  <sebastien@ximian.com>
561
562         * CodeAccessPermission.cs: Added CheckAssert, CheckDemand, CheckDeny,
563         CheckPermitOnly, Equals and GetHashCode to NET_2_0 profile. Actualized
564         TODOs. Removed duplicate license.
565         * NamedPermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile.
566         Removed duplicate license.
567         * PermissionSet.cs: Added Equals/GetHashCode to NET_2_0 profile. 
568         Removed duplicate license.
569         * SecurityElement.cs: Added Copy and FromString methods to NET_2_0 
570         profile. Removed duplicate license.
571         * SecurityException.cs: Added new constructors and properties to 
572         NET_2_0 profile. Removed duplicate license.
573         * SecurityManager.cs: Added GetZoneAndOrigin and ResolvePolicy to 
574         NET_2_0 profile. Removed duplicate license.
575         * VerificationException.cs: Implements _Exception for NET_2_0 profile.
576         Removed duplicate license.
577         * XmlSyntaxException.cs: Implements _Exception for NET_2_0 profile. 
578         Removed duplicate license.
579
580 2004-07-14  Sebastien Pouliot  <sebastien@ximian.com>
581
582         * HostProtectionException.cs: New class in Fx 2.0.
583         * HostSecurityManager.cs: New class in Fx 2.0.
584         * HostSecurityManagerFlags.cs: New enum in Fx 2.0.
585         * SecurityContext.cs: New class in Fx 2.0.
586         * SecurityContextSwitcher.cs: New structure in Fx 2.0.
587
588 2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
589
590         * XmlSyntaxException.cs: added missing serialization ctor
591         * SecurityException.cs: fixed typo
592
593 2004-03-05  Atsushi Enomoto <atsushi@ximian.com>
594
595         * SecurityElement.cs : ignore prefix; this enables RSA.FromXmlString()
596           to allow namespaced elements.
597
598 2004-01-27  Sebastien Pouliot  <spouliot@videotron.ca>
599
600         * SecurityElement.cs: Attributes are now kept in an ArrayList (but
601         still returned in an Hashtable) so the attributes order can be
602         kept like MS implementation (but Hashtable cannot guarantee this).
603
604 2004-01-26  Sebastien Pouliot  <spouliot@videotron.ca>
605
606         * NamedPermissionSet.cs: Changed internal constructor 
607         NamedPermissionSet (SecurityElement e) to NamedPermissionSet ().
608         * PermissionSet.cs: Changed internal constructor 
609         PermissionSet (SecurityElement e) to PermissionSet ().
610
611 2004-01-24  David Sheldon <dave-mono@earth.li>
612
613        * SecurityElement.cs: Changed indentation in ToString, it seems
614         MS indent by 3 spaces, not 4. Also added NewLine to childless 
615         elements.
616
617 2004-01-24  David Sheldon <dave-mono@earth.li>
618
619        * SecurityElement.cs: Changed newline distribution in ToString.
620          Matches MS better.
621
622 2004-01-06  Sebastien Pouliot  <spouliot@videotron.ca>
623
624         * CodeAccessPermission.cs: Fixed Demand for custom permissions 
625         (permissions that do not implement, the internal, IBuiltInPermission).
626         Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
627         * SecurityException.cs: Fixed ToString() which could, when no 
628         PermissionType where specified, throws a NullReferenceException.
629         Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
630
631 2004-01-05  Sebastien Pouliot  <spouliot@videotron.ca>
632
633         * CodeAccessPermission.cs: Fixed Union to match 1.1/1.2 documentation. 
634         Simplified ToString to match MS implementation. Added LAMESPEC to 
635         Assert, Demand, Deny and PermitOnly as they aren't virtual.
636         * NamedPermissionSet.cs: Added internal constructor for PolicyLevel. 
637         * PermissionSet.cs: Added internal constructor for PolicyLevel. 
638         * SecurityManager.cs: Moved some stuff to PolicyLevel class (e.g. Load).
639
640 2004-01-03  Sebastien Pouliot  <spouliot@videotron.ca>
641
642         * SecurityManager.cs: Added some basic stuff to make some security unit
643         tests works (mostly when using PolicyHierarchy).
644
645 2004-01-02  Sebastien Pouliot  <spouliot@videotron.ca>
646
647         * AllowPartiallyTrustedCallersAttribute.cs: Fixed AttributeUsage using
648         1.2 documentation (AllowMultiple=false, Inherited=false)
649         * NamedPermissionSet.cs: Changes to match unit tests.
650         * PermissionSet.cs: Implemented Copy, Intersect, IsSubsetOf and Union 
651         methods. Corrected FromXml.
652         * PolicyLevelType.cs: Added missing [Serializable].
653         * SecurityElement.cs: Fixed constructor to match unit tests.
654         * SecurityException.cs: Added support for GrantedSet and RefusedSet 
655         properties (since 1.1). Set HResult to 0x8013150A.
656         * SecurityZone.cs: Added missing [Serializable].
657         * SuppressUnmanagedCodeSecurityAttribute.cs: Fixed AttributeUsage using
658         1.2 documentation (AllowMultiple=true, Inherited=false)
659         * UnverifiableCodeAttribute.cs: Fixed AttributeUsage using 1.2 
660         documentation (AllowMultiple=true, Inherited=false)
661
662 2003-06-29  Sebastien Pouliot  <spouliot@videotron.ca>
663
664         * PermissionSet.cs: Added missing "virtual" to Count, IsSynchronized 
665         and SyncRoot.
666
667 2003-06-29  Nick Drochak  <ndrochak@gol.com>
668
669         * NamedPermissionSet.cs : Fix buglet/typo/thinko. Thank you unit tests.
670
671 2003-06-28  Sebastien Pouliot  <spouliot@videotron.ca>
672
673         * CodeAccessPermission.cs: Added missing methods. Removed old XML
674         documentation (present in monodoc). Added missing MonoTODO attrs.
675         * NamedPermissionSet.cs : Changed some code from result of unit 
676         tests. Updated MonoTODO attributes.
677         * PermissionSet.cs: Added missing methods. Removed old XML
678         documentation (present in monodoc). Added missing MonoTODO attrs.
679         Added code to some methods.
680         * SecurityManager.cs: Added missing MonoTODO attributes.
681
682 2003-05-09  Sebastien Pouliot  <spouliot@videotron.ca>
683
684         * AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
685         from original 1.0 documentation (but inclufed in framework 1.0)
686
687 2002-06-10  Duncan Mak  <duncan@ximian.com>
688
689         * IEvidenceFactory.cs (Evidence): Added missing method.
690         
691         * SuppressUnmanagedCodeSecurityAttribute.cs:
692         * UnverifiableCodeAttribute.cs: Added missing
693         AttributeUsage attribute.
694
695 2002-06-05  Nick Drochak  <ndrochak@gol.com>
696
697         * SecurityElement.cs: Fixed couple of hard to spot typos which were
698         causing valid names and keys to be rejected.
699
700 2002-04-28  Lawrence Pit <loz@cable.a2000.nl>
701
702         * CodeAccessPermission.cs : implemented ToString method
703
704 2002-04-27  Lawrence Pit <loz@cable.a2000.nl>
705
706         * SecurityElement.cs: fixed bugs, implemented several methods
707
708 2002-03-12  Duncan Mak  <duncan@ximian.com>
709
710         * SecurityException.cs: Inherit from SystemException, not Exception.
711
712 2002-02-23  Nick Drochak  <ndrochak@gol.com>
713
714         * SecurityElement.cs: fixed typo
715
716 2002-02-13  Dan Lewis <dihlewis@yahoo.co.uk>
717         
718         * NamedPermissionSet.cs: New file (stub)
719
720 2002-02-07  Duncan Mak  <duncan@ximian.com>
721
722         * SecurityException.cs: Reformatted to fit the form of other
723         Exceptions. Added serialization bits.
724
725 2002-01-05  Ravi Pratap  <ravi@ximian.com>
726
727         * SecurityElement.cs : Insert MonoTODO attribute.
728
729 2002-01-02  Nick Drochak  <ndrochak@gol.com>
730
731         * CodeAccessPermission.cs: Fix syntax error hidden by exclusion in .build file
732
733 2001-12-30  Nick Drochak  <ndrochak@gol.com>
734
735         * PermissionSet.cs SecurityManager.cs: New Files
736         * CodeAccessPermission.cs: Add Skeleton code
737         * IPermission.cs: Make public and inherit from ISecurityEncodable 
738         * ISecurityEncodable.cs: Make interface public
739         * ISecurityPolicyEncodable.cs: Ditto
740         * IStackWalk.cs: Ditto
741
742 2001-12-29  Nick Drochak  <ndrochak@gol.com>
743
744         * ISecurityPolicyEncodable.cs, PolicyLevelType.cs, 
745         SecurityZone.cs, SecurityException.cs, UnverifiableCodeAttribute.cs,
746         SuppressUnmanagedCodeSecurityAttribute.cs,
747         VerificationException.cs, XmlSyntaxException.cs: New files
748
749 2001-12-21  Miguel de Icaza  <miguel@ximian.com>
750
751         * SecurityElement.cs, CodeAccessPermission.cs IPermission.cs
752         IStackWalk.cs SecurityElement.cs ISecurityEncodable.cs: New files.
753