Commit Graph
16 Commits
Author SHA1 Message Date
Marek Safar b26fc714dd Manually remove code which is disabled but compiler cannot remove automatically. 2013-03-04 09:14:08 +01:00
Sebastien Pouliot 7de2d7b467 Ensure the linker can eliminate most CAS-related types in the MOBILE-based profiles 2011-07-20 08:28:42 -04:00
Marek Safar 0781122a85 Add missing 4.0 api 2011-04-20 12:41:29 +01:00
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 e65d4332ac 2009-09-23 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Remove NET_2_1 defines since the type is
	now unused in NET_2_1 profile


svn path=/trunk/mcs/; revision=142482
2009-09-23 12:59:17 +00:00
Sebastien Pouliot 5d8f11c64a 2009-09-22 Sebastien Pouliot <[email protected]>
* CodeAccessPermission_2_1.cs: New. Stub to compile NET_2_1
	* IPermission.cs: Remove ISecurityEncodable for NET_2_1
	* PermissionSet_2_1.cs: New. Stub to compile NET_2_1
	* SecurityContext.cs: Remove usage of CompressedStack for NET_2_1
	* SecurityException_2_1.cs: New, CAS-less version for NET_2_1
	* SecurityException.cs: Remove NET_2_1 conditions
	* SecurityFrame.cs: Keep structures (needed by the runtime) but
	remove SecurityFrame itself for NET_2_1


svn path=/trunk/mcs/; revision=142400
2009-09-22 13:40:44 +00:00
Sebastien Pouliot 5d0ed14755 In System.Threading:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* Thread.cs: Remove CurrentPrincipal property for NET_2_1
	* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* AppDomain.cs: Remove use of IPrincipal, Evidence and 
	PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
	Remove most of System.Security.Policy and System.Security.Principal
	and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <[email protected]>

	* PolicyLevel_2_1.cs: Remove use of PolicyStatement


svn path=/trunk/mcs/; revision=142324
2009-09-21 11:54:24 +00:00
Andreas N 631b4a2a32 2008-04-02 Andreas Nahr <[email protected]>
* VerificationException.cs
	* SecurityElement.cs
	* SecurityContext.cs
	* NamedPermissionSet.cs
	* HostProtectionException.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99618
2008-04-02 07:44:20 +00:00
Sebastien Pouliot e823667b5f 2006-06-16 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Don't skip the calling callBack if we don't call
	CompressedStack.Run (#78652).


svn path=/trunk/mcs/; revision=61796
2006-06-16 13:18:06 +00:00
Sebastien Pouliot f49f4becc9 2006-06-15 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Don't call CompressedStack.Run if we don't have
	a compressed stack in the context (which can now happen because of 
	#78652). This should fix MWF bug #78652 (BeginInvoke under 2.0).


svn path=/trunk/mcs/; revision=61755
2006-06-15 13:49:09 +00:00
Sebastien Pouliot cbe2286cc8 2005-05-26 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Fix typo for PermitOnly. Added ComVisible 
	attribute for NET_2_0 profile.
	* PermissionSet.cs: Changed static string to const. Added ComVisible 
	attribute for NET_2_0 profile.
	* SecurityContext.cs: Capture the identity token but don't create a 
	WindowsIdentity instance unless required (e.g. Run). This requires 
	less privileges (so it runs better that way under CAS).


svn path=/trunk/mcs/; revision=45039
2005-05-26 12:34:41 +00:00
Sebastien Pouliot b3c3d40516 2005-05-20 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Includes more methods in NET_1_1 to enable 
	ThreadPool.UnsafeQueueUserWorkItem to work properly (i.e. without
	stack propagation).


svn path=/trunk/mcs/; revision=44817
2005-05-20 14:10:58 +00:00
Sebastien Pouliot cf4ff8ba00 2005-05-09 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: That was the wrong place to capture the stack.


svn path=/trunk/mcs/; revision=44271
2005-05-09 12:59:17 +00:00
Sebastien Pouliot 6e58169922 2005-05-09 Sebastien Pouliot <[email protected]>
* SecurityContext.cs: Capture the CompressedStack when the current 
	context one is empty.
	* SecurityManager.cs: Class is now static (2.0).
	* SecurityTreatAsSafeAttribute.cs: Fixed AttributeTargets.


svn path=/trunk/mcs/; revision=44265
2005-05-09 10:59:34 +00:00
Sebastien Pouliot 3ed164a91a 2005-04-28 Sebastien Pouliot <[email protected]>
* PermissionSetCollection.cs: Updated wrt beta2. Seems this will be
	removed before 2.0 final.
	* HostProtectionException.cs: Updated wrt beta2. Added TODO as it 
	isn't support by the runtime.
	* SecurityContext.cs: Updated wrt beta2. Class is now internal in 
	NET_1_1 to allow the compressed stack propagation to other threads.
	* SecurityCriticalAttribute.cs: Added support for property Scope.
	* SecurityException.cs: Removed PermitOnlySetInstance property to 
	match beta2.
	* SecurityTransparentAttribute.cs: Fixed AttributeUsage. Added TODO
	as it isn't support by the runtime.
	* SuppressUnmanagedCodeSecurityAttribute.cs: Added delegates to usage
	in NET_2_0.


svn path=/trunk/mcs/; revision=43714
2005-04-28 12:09:31 +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