Commit Graph
8 Commits
Author SHA1 Message Date
Miguel de Icaza 4baa1d2bc2 More removal of old defines
svn path=/trunk/mcs/; revision=145609
2009-11-06 21:25:38 +00:00
Sebastien Pouliot 16a79daec3 2005-06-22 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Fix Unrestricted PermitOnly (which is like
	a no-op). Speed up Assert if Unrestricted.
	* HostSecurityManager.cs: Updated FIXME description.
	* PermissionSet.cs: Remove Copy() of the permission set when non-CAS
	permissions are used (replaced by an array of bools). Completed Assert
	support by re-using the array of bools. Updated TODO descriptions.
	* SecurityException.cs: Added evidence (if available) in the ToString
	description of the exception.
	* SecurityManager.cs: Reworked CheckExecutionRights to get the correct
	behavior.


svn path=/trunk/mcs/; revision=46378
2005-06-22 18:35:41 +00:00
Sebastien Pouliot 6ca0e3d1ea 2005-05-28 Sebastien Pouliot <[email protected]>
* HostSecurityManager.cs: Added check for ActivationArguments in 
	application evidences.


svn path=/trunk/mcs/; revision=45136
2005-05-28 14:50:25 +00:00
Sebastien Pouliot 616ae24869 Update HostSecurityManager and HostSecurityManagerOptions for beta2
svn path=/trunk/mcs/; revision=43551
2005-04-25 16:41:57 +00:00
Sebastien Pouliot 510706a095 2005-01-10 Sebastien Pouliot <[email protected]>
* HostSecurityManager.cs: Fix signature as DetermineApplicationTrust
	doesn't return a boolean anymore.
	* SecurityElement.cs: The attributes and children elements are not
	indented in 2.0. This fix many unit tests that do string compares.
	* PermissionSetCollection.cs: We can't trust all IList implementations
	to throw the ArgumentOutOfRangeException - so we better do it here.


svn path=/trunk/mcs/; revision=38662
2005-01-11 01:07:14 +00:00
Sebastien Pouliot 24f1097b09 2005-01-09 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: CheckAssert, CheckDemand, CheckDeny and
	CheckPermitOnly are no more publicly avaiable in Fx 2.0 and have been
	changed to internal for all profiles. Updated comments to reflect the
	(better) documentation available with 2.0.
	* HostSecurityManager.cs: Updated to Dec CTP specs. There is missing
	documentation (and/or classes) to implement completly the 
	DetermineApplicationTrust method at this point.
	* PermissionSetCollection.cs: Completed implementation.
	* PermissionSet.cs: Fix the case where Assert, Deny and PermitOnly 
	must be ignored for non-CAS permissions.
	* SecurityManager.cs: Refactored resolve methods to implements 
	ResolveSystemPolicy (a resolve without the AppDomain policy level).
	Added a default implementation for GetZoneAndOrigin (empty ArrayList) 
	which seems to be right (at least) for FullTrust. 


svn path=/trunk/mcs/; revision=38571
2005-01-09 23:06:21 +00:00
Sebastien Pouliot a6cdac22f8 2004-08-11 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Basic implementation for Demand (without
	full stack trace, i.e. Assert, Deny and PermitOnly aren't considered).
	Added TODO to unimplemented NET_2_0 methods.
	* HostSecurityManager.cs: Added comments (as it looked not implemented
	even to myself).
	* PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
	ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
	more robust.
	* SecurityManager.cs: Implemented IsGranted using Assembly.Demand.
	Basic implementation for policy resolution.

svn path=/trunk/mcs/; revision=32223
2004-08-11 16:54:45 +00:00
Sebastien Pouliot 748a1ef357 2004-07-14 Sebastien Pouliot <[email protected]>
* HostProtectionException.cs: New class in Fx 2.0.
	* HostSecurityManager.cs: New class in Fx 2.0.
	* HostSecurityManagerFlags.cs: New enum in Fx 2.0.
	* SecurityContext.cs: New class in Fx 2.0.
	* SecurityContextSwitcher.cs: New structure in Fx 2.0.

svn path=/trunk/mcs/; revision=31127
2004-07-14 11:53:49 +00:00