Commit Graph
142 Commits
Author SHA1 Message Date
Rodrigo Kumpera dba5f60e67 Remove moonlight sources in corlib that were only used by moonlight. 2013-02-11 16:03:37 -05:00
Rodrigo Kumpera b96d05dac3 Kill the MOONLIGHT define in corlib. 2013-02-11 16:03:28 -05:00
Marek Safar c45375b4c8 Fix types signature 2012-07-27 12:25:43 +01:00
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Jb Evain a3f7ce80a7 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153667
2010-03-16 12:19:11 +00:00
Rodrigo Kumpera 6e05ab9396 2010-02-27 Rodrigo Kumpera <[email protected]>
* Type.cs: Make cor-compare happy.

2010-02-27 Rodrigo Kumpera  <[email protected]>

	* Evidence.cs: Add some v4 bits.

svn path=/trunk/mcs/; revision=152609
2010-02-27 22:08:59 +00:00
Marek Safar d02179ed24 Warnings cleanup
svn path=/trunk/mcs/; revision=149459
2010-01-13 13:14:15 +00:00
Marek Safar 3086e99d75 Warnings cleanup
svn path=/trunk/mcs/; revision=146142
2009-11-13 14:52:59 +00:00
Miguel de Icaza 3c39ac4586 Jumbo patch for NET_2_0, mscorlib is now clean
svn path=/trunk/mcs/; revision=145621
2009-11-06 22:23:59 +00:00
Marek Safar 0f31173c59 2009-10-02 Marek Safar <[email protected]>
* Array.cs, Decimal.cs, String.cs, Console.cs, _AppDomain.cs,
	AppDomain.cs: Removed prehistoric mcs workarounds.


svn path=/trunk/mcs/; revision=143250
2009-10-02 07:56:45 +00:00
Sebastien Pouliot b3c836fb05 2009-09-22 Sebastien Pouliot <[email protected]>
* Evidence_2_1.cs: New.

svn path=/trunk/mcs/; revision=142403
2009-09-22 13:58:47 +00:00
Sebastien Pouliot 30d4dbc5ab 2009-09-22 Sebastien Pouliot <[email protected]>
* PolicyLevel_2_1.cs: Remove use of NamedPermissionSet


svn path=/trunk/mcs/; revision=142396
2009-09-22 13:32:39 +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
Jb Evain 288e614ea4 bring Mono Security to monotouch
svn path=/trunk/mcs/; revision=141615
2009-09-09 15:34:58 +00:00
Marek Safar ff23ffb22f 2009-07-30 Marek Safar <[email protected]>
* ApplicationTrust.cs: Add FullTrustAssemblies.


svn path=/trunk/mcs/; revision=139076
2009-07-30 13:23:09 +00:00
Sebastien Pouliot 708e9ef50c minor NET_2_1 tweaks to remove 12 unneeded [SecuritySafeCritical] inside Moonlight 2
svn path=/trunk/mcs/; revision=133184
2009-04-30 14:03:27 +00:00
Sebastien Pouliot 1957b68645 In System.Security:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* SecurityException.cs: Remove CAS-specific stuff from ToString
	* SecurityManager.cs: Do not include for NET_2_1 build
	* SecurityManager_2_1.cs: Alternate implementation for NET_2_1

In .:
2009-04-27  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add new specific to 2.1 version of some 
	classes.

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

	* Evidence.cs: Custom GetDefaultHostEvidence for NET_2_1
	* Hash.cs: Do not include for NET_2_1 build
	* HashMembershipCondition.cs: Do not include for NET_2_1 build
	* PolicyLevel.cs: Do not include for NET_2_1 build
	* PolicyLevel_2_1.cs: Alternate implementation for NET_2_1
	* Zone.cs: Do not include for NET_2_1 build
	* ZoneMembershipCondition.cs: Do not include for NET_2_1 build


svn path=/trunk/mcs/; revision=132774
2009-04-27 19:07:56 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Andreas N a70b6ce2b3 2008-07-06 Andreas Nahr <[email protected]>
* ApplicationTrust.cs: Add missing attribute

svn path=/trunk/mcs/; revision=107320
2008-07-06 12:21:00 +00:00
Andreas N b587523abc 2008-07-03 Andreas Nahr <[email protected]>
* ZoneMembershipCondition.cs:
	* UrlMembershipCondition.cs:
	* UnionCodeGroup.cs:
	* PolicyStatement.cs:
	* PolicyException.cs:
	* PermissionRequestEvidence.cs:
	* NetCodeGroup.cs:
	* HashMembershipCondition.cs:
	* GacMembershipCondition.cs:
	* ApplicationDirectory.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107177
2008-07-03 19:20:58 +00:00
Sebastien Pouliot d0de38b50f 2008-05-30 Sebastien Pouliot <[email protected]>
* ApplicationSecurityManager.cs: Provide better MonoTODO messages 
	for the next version of MoMA.


svn path=/trunk/mcs/; revision=104579
2008-05-31 02:01:11 +00:00
Sebastien Pouliot 64052ddcb1 2008-02-02 Sebastien Pouliot <[email protected]>
* Evidence.cs: Fix missing assignement (thanks to Gendarme :)


svn path=/trunk/mcs/; revision=94660
2008-02-03 00:34:51 +00:00
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Sebastien Pouliot b903c22a16 2006-05-30 Sebastien Pouliot <[email protected]>
* CodeGroup.cs: Under 2.0 the ctor is protected (not public).


svn path=/trunk/mcs/; revision=61263
2006-05-30 15:56:12 +00:00
Sebastien Pouliot 798b371d19 2006-01-05 Sebastien Pouliot <[email protected]>
* Evidence.cs: Use EscapedCodeBase instead of CodeBase. Fix nunit 
	under Windows.


svn path=/trunk/mcs/; revision=55107
2006-01-05 17:26:40 +00:00
Sebastien Pouliot b3b1df1b20 2005-09-25 Sebastien Pouliot <[email protected]>
* ApplicationTrustCollection.cs: RC changed the constructor to non
	public.
	* PolicyLevel.cs: All stuff related to FullyTrustedAssemblies is 
	obsoleted in 2.0 because (a) all permission must be installed into the
	GAC, (b) everything in the GAC gets fulltrust and (c) full trust now
	means even identity permissions (like StrongNameIdentityPermission)
	succeed for unrestricted (even if it doesn't match).


svn path=/trunk/mcs/; revision=50743
2005-09-26 03:12:19 +00:00
Sebastien Pouliot e94b6fc3fa 2005-08-30 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Set SecurityManager.ResolvingPolicyLevel to the 
	current policylevel instance if we want to use the FullTrustAssemblies
	collection.


svn path=/trunk/mcs/; revision=49143
2005-08-30 18:49:03 +00:00
Kornél Pál 431f1b3485 Moved assembly version and assembly reference constants to a common Consts.cs file. Updated 2.0.3600.0 assembly versions to 2.0.0.0. Updated some old beta version numbers to recent ones. Fixed hard coded assembly references to use constants with the appropriate version number.
svn path=/trunk/mcs/; revision=48519
2005-08-18 19:36:17 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Sebastien Pouliot 0724c393fe 2005-06-23 Sebastien Pouliot <[email protected]>
* ApplicationSecurityManager.cs: Added basic calls to MonoTrustManager
	* MonoTrustManager.cs: New. Default (non SWF) trust manager.


svn path=/trunk/mcs/; revision=46440
2005-06-23 17:17:05 +00:00
Sebastien Pouliot 402e8ca874 2005-06-23 Sebastien Pouliot <[email protected]>
* ApplicationDirectory.cs, CodeConnectAccess.cs, Hash.cs, 
	NetCodeGroup.cs, PermissionRequestEvidence.cs, PolicyLevel.cs,
	Publisher.cs. Site.cs, StrongName.cs, TrustManagerContext.cs. Url.cs:
	better comments on remaining TODO (all 2.0 related) to ease grepping.
	Reduced the number of casts in some Equals methods.


svn path=/trunk/mcs/; revision=46438
2005-06-23 17:12:20 +00:00
Sebastien Pouliot 7c14ebefce 2005-06-16 Sebastien Pouliot <[email protected]>
* StrongName.cs: Empty names are only verified in NET_2_0.


svn path=/trunk/mcs/; revision=46104
2005-06-16 19:31:25 +00:00
Sebastien Pouliot 6ba03dc8d3 2005-06-14 Sebastien Pouliot <[email protected]>
* Evidence.cs: Avoid creating the synchronized array lists unless they
	are needed.
	* PolicyLevel.cs: Fixed System.Drawing public key. IsFullTrustAssembly
	can now executed without a Demand for the AssemblyName. Added the
	UnionCodeGroup in the default policies. Reworked initialization to
	support FullyTrustedAssemblies.


svn path=/trunk/mcs/; revision=45968
2005-06-14 14:14:36 +00:00
Sebastien Pouliot 8735507b04 svn path=/trunk/mcs/; revision=45746 2005-06-10 11:09:35 +00:00
Sebastien Pouliot bcecf2e0fd 2005-06-08 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Added some missing initialization. More code reuse.


svn path=/trunk/mcs/; revision=45646
2005-06-08 16:35:11 +00:00
Sebastien Pouliot e8a41d0bfa 2005-06-01 Sebastien Pouliot <[email protected]>
* DefaultPolicies.cs: Added a method to create the default FullTrust
	assemblies in the policy configuration files.
	* PolicyLevel.cs: Splitted loading/initializing of PolicyLevel so it's
	now possible to load permissions outside corlib when resolving a 
	policy. However FullTrustAssemblies is still ignored at this stage.


svn path=/trunk/mcs/; revision=45304
2005-06-01 18:52:46 +00:00
Sebastien Pouliot 2cdf9baca5 2005-05-27 Sebastien Pouliot <[email protected]>
* DefaultPolicies.cs: Refactored code to use the new PermissionBuilder
	class. Removed references to SWF WebBrowserPermission as it is 
	documented as obsolete and will be removed before 2.0 final.


svn path=/trunk/mcs/; revision=45116
2005-05-27 17:55:41 +00:00
Sebastien Pouliot c5e894e378 2005-05-26 Sebastien Pouliot <[email protected]>
* DefaultPolicies.cs: New. Creates the default security policies. 
	Permissions outside corlib are commented due to a bug with CAS when 
	loading them.
	* PolicyLevel.cs: Fixed TODO for Recover method and for reserved names
	in RemoveNamedPermissionSet method. Moved IsReserved method to new 
	DefaultPolicies class.


svn path=/trunk/mcs/; revision=45069
2005-05-26 19:24:44 +00:00
Sebastien Pouliot 67cac60830 2005-05-16 Sebastien Pouliot <[email protected]>
* FileCodeGroup.cs: Deal with null PolicyStatement.
	* NetCodeGroup.cs: Deal with null PolicyStatement.


svn path=/trunk/mcs/; revision=44588
2005-05-16 20:14:55 +00:00
Sebastien Pouliot b62761f304 2005-05-16 Sebastien Pouliot <[email protected]>
* FileCodeGroup.cs: Now use PermissionSet.Union when resolving.
	* NetCodeGroup.cs: Now use PermissionSet.Union when resolving.
	* PolicyStatement.cs: Fix some minor behaviours wrt to new unit tests.
	* UnionCodeGroup.cs: Now use PermissionSet.Union when resolving.


svn path=/trunk/mcs/; revision=44584
2005-05-16 19:42:16 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot 27309218cc 2005-04-26 Sebastien Pouliot <[email protected]>
* ApplicationTrust.cs: Completed TODO. Added missing set for 
	ApplicationIdentity property.
	* ApplicationTrustCollection.cs: Completed TODO.


svn path=/trunk/mcs/; revision=43630
2005-04-26 23:07:41 +00:00
Sebastien Pouliot 06f245b898 2005-04-25 Sebastien Pouliot <[email protected]>
* AllMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* ApplicationDirectory.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Removed FIXME - confirmed as "by design" by MS.
	* ApplicationDirectoryMembershipCondition.cs: Added [ComVisible (true)]
	in NET_2_0 to match beta2.
	* ApplicationSecurityInfo.cs: Updated to match beta2.
	* ApplicationSecurityManager.cs: Updated to match beta2.
	* ApplicationTrust.cs: Updated to match beta2.
	* ApplicationTrustCollection.cs: Updated to match beta2.
	* ApplicationTrustEnumerator.cs: Added [ComVisible (true)] to match 
	beta2.
	* ApplicationVersionMatch.cs: Added [ComVisible (true)] to match beta2.
	* CodeConnectAccess.cs: Added [ComVisible (true)] to match beta2.
	* CodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* Evidence.cs: Updated to match beta2. Now use internal method 
	Assembly.UnprotectedGetName during security manager initialization.
	* FileCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* FirstMatchCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Gac.cs: Renamed class to GacInstalled. Added [ComVisible (true)] to
	match beta2.
	* GacMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2.
	* Hash.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* HashMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2. Reworked Equals to avoid multiple typecast.
	* IApplicationTrustManager.cs: Added [ComVisible (true)] to match 
	beta2.
	* IIdentityPermissionFactory.cs: Added [ComVisible (true)] in NET_2_0
	to match beta2.
	* IMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* NetCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2. Removed Scope property (didn't survive beta2).
	* PermissionRequestEvidence.cs: Added [ComVisible (true)] in NET_2_0 
	to match beta2.
	* PolicyException.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* PolicyLevel.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* PolicyStatementAttribute.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* PolicyStatement.cs: Added [ComVisible (true)] in NET_2_0 to match 
	beta2.
	* ProvideAssemblyEvidenceEventArgs.cs: Added [ComVisible (true)] to 
	match beta2.
	* Publisher.cs: Added [ComVisible (true)] in NET_2_0 to	match beta2. 
	Reworked Equals to avoid multiple typecast.
	* PublisherMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2. Reworked Equals to avoid multiple typecast.
	* Site.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	allowed characters accepted in site names (different in 2.0 from 1.x).
	* SiteMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.
	* StrongName.cs: Added [ComVisible (true)] in NET_2_0 to match beta2.
	* StrongNameMembershipCondition.cs: Added [ComVisible (true)] in 
	NET_2_0 to match beta2.
	* TrustManagerContext.cs: Updated to match beta2.
	* TrustManagerUIContext.cs: Added [ComVisible (true)] to match beta2.
	* UnionCodeGroup.cs: Added [ComVisible (true)] in NET_2_0 to match
	beta2.
	* Url.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. Fixed
	the difference in Url matching between 1.x and 2.0. Reworked Equals to
	avoid multiple typecast.
	* UrlMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to 
	match beta2. Fixed the difference in Url matching between 1.x and 2.0.
	* Zone.cs: Added [ComVisible (true)] in NET_2_0 to match beta2. 
	Reworked Equals to avoid multiple typecast.
	* ZoneMembershipCondition.cs: Added [ComVisible (true)] in NET_2_0 to
	match beta2.


svn path=/trunk/mcs/; revision=43550
2005-04-25 16:25:03 +00:00
Sebastien Pouliot eed2ceb512 2005-04-05 Sebastien Pouliot <[email protected]>
* Hash.cs: Added Assert for FileIOPermission to GetData so it's 
	possible to get the Hash evidence under partial trust.


svn path=/trunk/mcs/; revision=42586
2005-04-05 22:44:39 +00:00
Sebastien Pouliot c0143493d6 2005-04-04 Sebastien Pouliot <[email protected]>
* Evidence.cs: Build the default host evidences requires access to the
	file system even if running on partial trust (so we assert it).


svn path=/trunk/mcs/; revision=42514
2005-04-04 12:29:12 +00:00
Sebastien Pouliot f8c6950c9a 2005-01-19 Sebastien Pouliot <[email protected]>
* PolicyLevel.cs: Fixed RemoveNamedPermissionSet when used with a
	permission instance.
	* Zone.cs: Fixed zone for URIs without a scheme.


svn path=/trunk/mcs/; revision=39183
2005-01-19 16:12:44 +00:00
Sebastien Pouliot 4fce0d929b 2005-01-19 Sebastien Pouliot <[email protected]>
* ApplicationTrustCollection.cs: Updated for Dec CTP.
	* ApplicationTrust.cs: Updated for Dec CTP.
	* ApplicationSecurityInfo.cs: Updated for Dec CTP.
	* ApplicationSecurityManager.cs: Updated for Dec CTP.


svn path=/trunk/mcs/; revision=39182
2005-01-19 16:10:33 +00:00
Sebastien Pouliot 4e0786ee8e * Evidence.cs: Fix problem with default evidence when ICU is enabled. Fix bug #71366.
svn path=/trunk/mcs/; revision=39102
2005-01-18 17:39:29 +00:00
Sebastien Pouliot d4ab0b0442 2005-01-11 Sebastien Pouliot <[email protected]>
* Hash.cs: Fix regression in 2.0 to load default (hash) evidences.


svn path=/trunk/mcs/; revision=38728
2005-01-11 20:28:39 +00:00
Sebastien Pouliot 0ca2e0d7da 2005-01-10 Sebastien Pouliot <[email protected]>
* Hash.cs: Fix exception reporting for new methods in 2.0.
	* Publisher.cs: Fixed unit tests failures under 2.0 (some exceptions
	were changed).
	* PublisherMembershipCondition.cs: Fixed unit tests failures under 2.0
	(some exceptions were changed).


svn path=/trunk/mcs/; revision=38664
2005-01-11 01:09:36 +00:00