1 2007-08-20 Mark Probst <mark.probst@gmail.com>
3 * SecurityManager.cs: Changed arguments of MethodAccessException
4 to IntPtr, to avoid having to embed reference object values in the
7 2007-08-20 Mark Probst <mark.probst@gmail.com>
9 * SecurityManager.cs: Added two methods needed for CoreCLR
12 2007-08-08 Atsushi Enomoto <atsushi@ximian.com>
14 * SecureString.cs : commenting out internal call. It somehow seems
15 to cause timeout on the buildbots :(
17 2007-08-07 Atsushi Enomoto <atsushi@ximian.com>
19 * SecureString.cs : adding notes that ProtectedMemory is not
20 implemented for non-windows environment.
22 2007-08-07 Atsushi Enomoto <atsushi@ximian.com>
24 * SecureString.cs : Decrypt() and Encrypt() now use icall wrapper
25 to ProtectedMemory in System.Security.dll.
27 2007-02-23 Sebastien Pouliot <sebastien@ximian.com>
29 * PermissionSet.cs: Fix InvalidCastException on non-CAS permissions.
32 2006-06-16 Sebastien Pouliot <sebastien@ximian.com>
34 * SecurityContext.cs: Don't skip the calling callBack if we don't call
35 CompressedStack.Run (#78652).
37 2006-06-15 Sebastien Pouliot <sebastien@ximian.com>
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).
43 2006-04-07 Sebastien Pouliot <sebastien@ximian.com>
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).
48 2005-11-11 Sebastien Pouliot <sebastien@ximian.com>
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.
54 2005-10-30 Sebastien Pouliot <sebastien@ximian.com>
56 * PermissionSet.cs: Forgot to remove virtual from 2.0 IsSubsetOf.
58 2005-10-29 Sebastien Pouliot <sebastien@ximian.com>
60 * PermissionSet.cs: Another update to corcompare shows that even more
61 methods are not virtual in 2.0 final.
63 2005-10-28 Sebastien Pouliot <sebastien@ximian.com>
65 * PermissionSet.cs: Some methods are no more virtual in 2.0 final.
67 2005-10-28 Sebastien Pouliot <sebastien@ximian.com>
69 * SecureString.cs: Changed the previous (and partial) managed
70 implementation to one (that will be) based on ProtectedMemory. Work in
73 2005-10-17 Sebastien Pouliot <sebastien@ximian.com>
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).
79 2005-09-22 Sebastien Pouliot <sebastien@ximian.com>
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.
86 2005-09-02 Sebastien Pouliot <sebastien@ximian.com>
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
97 2005-06-30 Sebastien Pouliot <sebastien@ximian.com>
99 * SecurityManager.cs: Fixed inheritance demands for 1.x.
101 2005-06-22 Sebastien Pouliot <sebastien@ximian.com>
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
114 2005-06-20 Sebastien Pouliot <sebastien@ximian.com>
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.
122 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
124 * PermissionSet.cs: Added support for non-CAS permissions in the
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).
130 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
132 * NamedPermissionSet.cs: A default NamedPermissionSet is Unrestricted.
133 * SecurityManager.cs: Simplified LinkDemandFullTrust as FullTrust is
136 2005-06-14 Sebastien Pouliot <sebastien@ximian.com>
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
142 * PermissionSet.cs: Added shortcut in GetPermission(Type).
144 2005-06-08 Sebastien Pouliot <sebastien@ximian.com>
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).
154 2005-06-01 Sebastien Pouliot <sebastien@ximian.com>
156 * PermissionBuilder.cs: Removed unification stuff. This is done at a
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.
162 2005-05-28 Sebastien Pouliot <sebastien@ximian.com>
164 * HostSecurityManager.cs: Added check for ActivationArguments in
165 application evidences.
167 2005-05-27 Sebastien Pouliot <sebastien@ximian.com>
169 * CodeAccessPermission.cs: Allow unrestricted identity permissions in
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)
178 2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
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).
188 2005-05-25 Sebastien Pouliot <sebastien@ximian.com>
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).
194 2005-05-20 Sebastien Pouliot <sebastien@ximian.com>
196 * SecurityContext.cs: Includes more methods in NET_1_1 to enable
197 ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
200 2005-05-16 Sebastien Pouliot <sebastien@ximian.com>
202 * PermissionSet.cs: Add support for "hidden" read-only mode (as used
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).
208 2005-05-11 Sebastien Pouliot <sebastien@ximian.com>
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).
213 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
215 * SecurityContext.cs: That was the wrong place to capture the stack.
217 2005-05-09 Sebastien Pouliot <sebastien@ximian.com>
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.
224 2005-05-06 Sebastien Pouliot <sebastien@ximian.com>
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
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.
238 2005-04-28 Sebastien Pouliot <sebastien@ximian.com>
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
249 * SecurityTransparentAttribute.cs: Fixed AttributeUsage. Added TODO
250 as it isn't support by the runtime.
251 * SuppressUnmanagedCodeSecurityAttribute.cs: Added delegates to usage
254 2005-04-27 Sebastien Pouliot <sebastien@ximian.com>
256 * SecurityCriticalScope.cs: New. Enum introduced in 2.0 beta2.
257 * SecurityTreatAsSafeAttribute.cs: New. Attribute introducted in 2.0
260 2005-04-25 Sebastien Pouliot <sebastien@ximian.com>
262 * HostSecurityManager.cs: Now refers to HostSecurityManagerOptions.
263 * HostSecurityManagerFlags.cs: Renamed enum to
264 HostSecurityManagerOptions.
266 2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
268 * SecurityException.cs: Added try/catch in GetObjectData because the
269 PermissionState property is serialized only if both ControlEvidence
270 and ControlPolicy are granted.
272 2005-03-24 Sebastien Pouliot <sebastien@ximian.com>
274 * CodeAccessPermission.cs: Fixed PermitOnly when used in a set. Added
275 an InheritanceDemand for ControlEvidence and ControlPolicy on the
277 * PermissionSet.cs: Added an InheritanceDemand for MS public key on
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).
283 2005-03-15 Sebastien Pouliot <sebastien@ximian.com>
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.
290 2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
292 * SecurityManager.cs: Fix CodeAccessPermissionTest.CustomCAS unit test
293 when --security is enabled (code was over-optimized ;-).
295 2005-03-11 Sebastien Pouliot <sebastien@ximian.com>
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).
301 2005-03-02 Sebastien Pouliot <sebastien@ximian.com>
303 * CodeAccessPermission.cs,
304 * PermissionSet.cs: Don't throw NotSupportedException if the security
305 manager (SecurityManager.SecurityEnabled) is off.
307 2005-02-25 Sebastien Pouliot <sebastien@ximian.com>
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).
318 2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
320 * SecurityException.cs: Show the method informations when displaying a
322 * SecurityManager.cs: Reworked InheritanceDemand implementation. Added
323 a new method to throw a SecurityException for an InheritanceDemand.
325 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
327 * SecurityManager.cs: Reduced the number of parameters for LinkDemand.
328 Removed a (forgotten) debugging message.
330 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
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.
338 2005-02-08 Sebastien Pouliot <sebastien@ximian.com>
340 * SecurityManager.cs: Updated code for LinkDemand (and it's special
343 2005-01-27 Sebastien Pouliot <sebastien@ximian.com>
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).
354 2005-01-25 Sebastien Pouliot <sebastien@ximian.com>
356 * SecurityManager.cs: Now use Environment.InternalGetFolderPath to
357 avoid recursion when initializing security policies.
359 2005-01-24 Sebastien Pouliot <sebastien@ximian.com>
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
369 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>
371 * SecurityFrame.cs: Keep RuntimeDeclSecurityEntry enum in sync with
372 runtime (added index to allow AOT to work with declarative security).
374 2005-01-19 Sebastien Pouliot <sebastien@ximian.com>
376 * SecurityManager.cs: Fix the regressions on NET_1_1 introduced by my
377 refactoring 10 days ago.
379 2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
381 * PermissionSet.cs: Simplified GetHashCode as two exact copies may
382 have different hash codes (documented as such). This fix some unit
385 2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
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.
394 2005-01-09 Sebastien Pouliot <sebastien@ximian.com>
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.
411 2005-01-08 Sebastien Pouliot <sebastien@ximian.com>
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;
419 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
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
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
432 2004-11-30 Sebastien Pouliot <sebastien@ximian.com>
434 * CodeAccessPermission.cs:
435 * NamedPermissionSet.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).
443 2004-10-19 Sebastien Pouliot <sebastien@ximian.com>
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).
449 2004-10-15 Sebastien Pouliot <sebastien@ximian.com>
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
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).
465 2004-10-15 Sebastien Pouliot <sebastien@ximian.com>
467 * SecurityException.cs: Provide more details when a security exception
468 is raised (to help debugging).
470 2004-09-02 Sebastien Pouliot <sebastien@ximian.com>
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.
476 2004-09-01 Sebastien Pouliot <sebastien@ximian.com>
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).
489 2004-08-31 Sebastien Pouliot <sebastien@ximian.com>
491 * PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
492 in unit tests). Fixed SetPermission (null).
494 2004-08-30 Sebastien Pouliot <sebastien@ximian.com>
496 * NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
497 Equals (for NET_2_0). Fixed handling of null Name when deserialized
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.
508 2004-08-26 Sebastien Pouliot <sebastien@ximian.com>
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).
515 2004-08-19 Atsushi Enomoto <atsushi@ximian.com>
517 * CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
518 CS0136 error detection (variable identifiers in switch cases share
521 2004-08-17 Sebastien Pouliot <sebastien@ximian.com>
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.
527 2004-08-12 Sebastien Pouliot <sebastien@ximian.com>
529 * SecurityManager.cs: Change ResolvePolicy to only care about host
530 provided evidence to create identity permissions.
531 * SecurityContextSwitcher.cs: Added missing [ReliabilityContract] to
534 2004-08-11 Sebastien Pouliot <sebastien@ximian.com>
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
541 * PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
542 ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
544 * SecurityManager.cs: Implemented IsGranted using Assembly.Demand.
545 Basic implementation for policy resolution.
547 2004-08-03 Sebastien Pouliot <sebastien@ximian.com>
549 * PermissionSetCollection.cs: New class in Fx 2.0.
550 * SecureString.cs: New class in Fx 2.0. Not yet encrypted.
552 2004-08-02 Sebastien Pouliot <sebastien@ximian.com>
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.
560 2004-07-14 Sebastien Pouliot <sebastien@ximian.com>
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.
580 2004-07-14 Sebastien Pouliot <sebastien@ximian.com>
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.
588 2004-06-15 Gert Driesen <drieseng@users.sourceforge.net>
590 * XmlSyntaxException.cs: added missing serialization ctor
591 * SecurityException.cs: fixed typo
593 2004-03-05 Atsushi Enomoto <atsushi@ximian.com>
595 * SecurityElement.cs : ignore prefix; this enables RSA.FromXmlString()
596 to allow namespaced elements.
598 2004-01-27 Sebastien Pouliot <spouliot@videotron.ca>
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).
604 2004-01-26 Sebastien Pouliot <spouliot@videotron.ca>
606 * NamedPermissionSet.cs: Changed internal constructor
607 NamedPermissionSet (SecurityElement e) to NamedPermissionSet ().
608 * PermissionSet.cs: Changed internal constructor
609 PermissionSet (SecurityElement e) to PermissionSet ().
611 2004-01-24 David Sheldon <dave-mono@earth.li>
613 * SecurityElement.cs: Changed indentation in ToString, it seems
614 MS indent by 3 spaces, not 4. Also added NewLine to childless
617 2004-01-24 David Sheldon <dave-mono@earth.li>
619 * SecurityElement.cs: Changed newline distribution in ToString.
622 2004-01-06 Sebastien Pouliot <spouliot@videotron.ca>
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
631 2004-01-05 Sebastien Pouliot <spouliot@videotron.ca>
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).
640 2004-01-03 Sebastien Pouliot <spouliot@videotron.ca>
642 * SecurityManager.cs: Added some basic stuff to make some security unit
643 tests works (mostly when using PolicyHierarchy).
645 2004-01-02 Sebastien Pouliot <spouliot@videotron.ca>
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)
662 2003-06-29 Sebastien Pouliot <spouliot@videotron.ca>
664 * PermissionSet.cs: Added missing "virtual" to Count, IsSynchronized
667 2003-06-29 Nick Drochak <ndrochak@gol.com>
669 * NamedPermissionSet.cs : Fix buglet/typo/thinko. Thank you unit tests.
671 2003-06-28 Sebastien Pouliot <spouliot@videotron.ca>
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.
682 2003-05-09 Sebastien Pouliot <spouliot@videotron.ca>
684 * AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
685 from original 1.0 documentation (but inclufed in framework 1.0)
687 2002-06-10 Duncan Mak <duncan@ximian.com>
689 * IEvidenceFactory.cs (Evidence): Added missing method.
691 * SuppressUnmanagedCodeSecurityAttribute.cs:
692 * UnverifiableCodeAttribute.cs: Added missing
693 AttributeUsage attribute.
695 2002-06-05 Nick Drochak <ndrochak@gol.com>
697 * SecurityElement.cs: Fixed couple of hard to spot typos which were
698 causing valid names and keys to be rejected.
700 2002-04-28 Lawrence Pit <loz@cable.a2000.nl>
702 * CodeAccessPermission.cs : implemented ToString method
704 2002-04-27 Lawrence Pit <loz@cable.a2000.nl>
706 * SecurityElement.cs: fixed bugs, implemented several methods
708 2002-03-12 Duncan Mak <duncan@ximian.com>
710 * SecurityException.cs: Inherit from SystemException, not Exception.
712 2002-02-23 Nick Drochak <ndrochak@gol.com>
714 * SecurityElement.cs: fixed typo
716 2002-02-13 Dan Lewis <dihlewis@yahoo.co.uk>
718 * NamedPermissionSet.cs: New file (stub)
720 2002-02-07 Duncan Mak <duncan@ximian.com>
722 * SecurityException.cs: Reformatted to fit the form of other
723 Exceptions. Added serialization bits.
725 2002-01-05 Ravi Pratap <ravi@ximian.com>
727 * SecurityElement.cs : Insert MonoTODO attribute.
729 2002-01-02 Nick Drochak <ndrochak@gol.com>
731 * CodeAccessPermission.cs: Fix syntax error hidden by exclusion in .build file
733 2001-12-30 Nick Drochak <ndrochak@gol.com>
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
742 2001-12-29 Nick Drochak <ndrochak@gol.com>
744 * ISecurityPolicyEncodable.cs, PolicyLevelType.cs,
745 SecurityZone.cs, SecurityException.cs, UnverifiableCodeAttribute.cs,
746 SuppressUnmanagedCodeSecurityAttribute.cs,
747 VerificationException.cs, XmlSyntaxException.cs: New files
749 2001-12-21 Miguel de Icaza <miguel@ximian.com>
751 * SecurityElement.cs, CodeAccessPermission.cs IPermission.cs
752 IStackWalk.cs SecurityElement.cs ISecurityEncodable.cs: New files.