Commit Graph
93 Commits
Author SHA1 Message Date
Jb Evain f5872f06f6 use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153671
2010-03-16 12:25:55 +00:00
Sebastien Pouliot fe3e735aa1 2009-09-22 Sebastien Pouliot <[email protected]>
* PermissionSetAttribute.cs: Don't create a pset for NET_2_1


svn path=/trunk/mcs/; revision=142395
2009-09-22 13:30:41 +00:00
Sebastien Pouliot 3314a5b408 2009-09-18 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionAttribute.cs, FileIOPermissionAttribute.cs,
	HostProtectionAttribute.cs, ReflectionPermissionAttribute.cs,
	SecurityPermissionAttribute.cs, StrongNamePermissionAttribute.cs: 
	Return a null IPermission for NET_2_1
	* PermissionSetAttribute.cs: Return null when paring from XML for 
	NET_2_1


svn path=/trunk/mcs/; revision=142215
2009-09-18 18:18:08 +00:00
Marek Safar a4a749d6a3 2009-07-30 Marek Safar <[email protected]>
* ReflectionPermission.cs: RestrictedMemberAccess can be set.

	* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.


svn path=/trunk/mcs/; revision=139075
2009-07-30 13:19:58 +00:00
Sebastien Pouliot 162e6b6477 2009-06-05 Sebastien Pouliot <[email protected]>
* SecurityPermissionFlag.cs: Add [Obsolete] on NET_2_1 since CAS 
	stuff is not available in Moonlight.


svn path=/trunk/mcs/; revision=135544
2009-06-05 18:19:00 +00:00
Sebastien Pouliot 354894ef6f 2009-05-01 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs, SecurityAction.cs, 
	SecurityAttribute.cs, SecurityPermissionAttribute.cs: Add [Obsolete]
	on NET_2_1 since CAS stuff is not available in Moonlight. Note that
	the types needs to be present because compiler insert them inside
	assemblies.


svn path=/trunk/mcs/; revision=133279
2009-05-01 18:21:16 +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
Andreas N 683117895e 2008-07-06 Andreas Nahr <[email protected]>
* ReflectionPermissionFlag.cs: Add missing member
	* ReflectionPermissionAttribute.cs: Implement missing member

svn path=/trunk/mcs/; revision=107321
2008-07-06 12:36:42 +00:00
Andreas N a4120bc9c2 2008-07-02 Andreas Nahr <[email protected]>
* SecurityPermission.cs:
	* RegistryPermission.cs:
	* PrincipalPermission.cs:
	* KeyContainerPermissionAccessEntry.cs:
	* KeyContainerPermission.cs:
	* GacIdentityPermission.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107105
2008-07-02 21:45:13 +00:00
Sebastien Pouliot b00600afd3 2006-08-21 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Fix union of paths (#79118). Implement subpaths
	handling correctly. Change some internal methods to static.


svn path=/trunk/mcs/; revision=64145
2006-08-21 14:31:04 +00:00
Sebastien Pouliot 9bf5491baa 2006-05-30 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs: Under 2.0 the ctor is protected.
	* IsolatedStoragePermissionAttribute.cs: Under 2.0 the ctor is 
	protected.
	* IsolatedStoragePermission.cs: Under 2.0 the ctor is protected.
	* SecurityAttribute.cs: Under 2.0 the ctor is protected.


svn path=/trunk/mcs/; revision=61264
2006-05-30 15:58:34 +00:00
Sebastien Pouliot 58ec03fa7f 2006-04-07 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Ensure the "bad" path characters match the OS
	ones. Reworked the code to avoid the modifiable array trap present in
	Fx 1.x and to be more precise in the 2.0 profile.


svn path=/trunk/mcs/; revision=59197
2006-04-07 17:21:45 +00:00
Carlos Alberto Cortez d15cec641c 2005-11-14 Carlos Alberto Cortez <[email protected]>
* IsolatedStoragePermission.cs: Updated FromXml with
	the latest signature modifications to Parse methods 
	inside System ns.


svn path=/trunk/mcs/; revision=53032
2005-11-14 20:41:00 +00:00
Sebastien Pouliot be0688822c 2005-11-09 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionAccess.cs: Added missing [Serializable] (2.0).
	* FileIOPermissionAccess.cs: Added missing [Serializable] (2.0).
	* PermissionState.cs: Added missing [Serializable] (2.0).
	* ReflectionPermissionFlag.cs: Added missing [Serializable] (2.0).
	* RegistryPermissionAccess.cs: Added missing [Serializable] (2.0).
	* UIPermissionClipboard.cs: Added missing [Serializable] (2.0).
	* UIPermissionWindow.cs: Added missing [Serializable] (2.0).


svn path=/trunk/mcs/; revision=52784
2005-11-09 15:03:46 +00:00
Sebastien Pouliot b566770930 2005-09-22 Sebastien Pouliot <[email protected]>
* ReflectionPermissionAttribute.cs: TypeInformation is obsolete.
	* SecurityAction.cs: *Choice security actions are removed in 2.0 RC.


svn path=/trunk/mcs/; revision=50486
2005-09-22 13:56:08 +00:00
Sebastien Pouliot 817c99f682 2005-06-22 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs, IsolatedStorageFilePermission.cs, 
	KeyContainerPermission.cs, RegistryPermission.cs: better comments on
	remaining TODO (all 2.0 related) to ease grepping.


svn path=/trunk/mcs/; revision=46387
2005-06-22 19:54:38 +00:00
Sebastien Pouliot f57c2be0b1 2005-06-16 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed IsSubsetOf method when permission is
	empty.


svn path=/trunk/mcs/; revision=46103
2005-06-16 19:30:35 +00:00
Sebastien Pouliot e0cc36e994 2005-06-10 Sebastien Pouliot <[email protected]>
* StrongNamePublicKeyBlob.cs: Reduce casts in Equals.


svn path=/trunk/mcs/; revision=45745
2005-06-10 10:50:07 +00:00
Sebastien Pouliot d14ba5bfe9 2005-06-09 Sebastien Pouliot <[email protected]>
* all: Added ComVisible(true) and some Obsolete attributes for NET_2_0


svn path=/trunk/mcs/; revision=45686
2005-06-09 11:12:35 +00:00
Sebastien Pouliot f38eba71cc 2005-06-07 Sebastien Pouliot <[email protected]>
* IsolatedStorageFilePermission.cs: Removed unrequired TODO on ctor.
	Added ComVisible for NET_2_0.
	* GacIdentityPermissionAttribute.cs: Removed FIXME. Added ComVisible 
	for NET_2_0.


svn path=/trunk/mcs/; revision=45596
2005-06-07 19:41:36 +00:00
Sebastien Pouliot 388893fee0 2005-05-18 Sebastien Pouliot <[email protected]>
* HostProtectionAttribute.cs: Fixes flag cleaning logical 
	operation (found by Jordi).
	* SecurityPermissionAttribute.cs: Fixes flag cleaning logical 
	operation (this is the original sinner ;-).


svn path=/trunk/mcs/; revision=44708
2005-05-18 19:16:05 +00:00
Sebastien Pouliot f93c536550 2005-05-16 Sebastien Pouliot <[email protected]>
* IsolatedStoragePermission.cs: Added UserQuota attribute in XML.


svn path=/trunk/mcs/; revision=44555
2005-05-16 12:03:08 +00:00
Atsushi Eno 0e388c1237 2005-05-12 Atsushi Enomoto <[email protected]>
* corlib.dll.sources: replaced MiniParser.cs with SmallXmlParser.cs.

	* SmallXmlParser.cs,
	  SecurityParser.cs : Use new SmallXmlParser.cs instead of MiniParser.

	* RemotingConfiguration.cs : MiniParser->SmallXmlParser changes.

	* PermissionSetAttribute.cs : MiniParser->SmallXmlParser changes.


svn path=/trunk/mcs/; revision=44422
2005-05-12 03:40:00 +00:00
Sebastien Pouliot c95a9bb660 2005-04-26 Sebastien Pouliot <[email protected]>
* IBuiltInPermission.cs: Fixed index values for GacIdentityPermission
	and KeyContainerPermission. Removed DataProtectionPermission.
	* IsolatedStorageContainment.cs: Fixed ApplicationIsolationByUser 
	value to 0x15.
	* UrlIdentityPermission.cs: Fixed differences between 1.x and 2.0.


svn path=/trunk/mcs/; revision=43611
2005-04-26 18:24:00 +00:00
Sebastien Pouliot 304cd242d2 2005-03-24 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Now use InsecureGetFullPath to add paths to 
	it's lists (as GetFullPath is more restricted than the permission).
	Removed unrequired use of GetFullPath in union and subset ops.
	* IsolatedStoragePermission.cs: Added InheritanceDemand for 
	ControlEvidence and ControlPolicy on class.


svn path=/trunk/mcs/; revision=42216
2005-03-24 14:30:33 +00:00
Sebastien Pouliot d0a385dd41 2005-03-17 Sebastien Pouliot <[email protected]>
* IsolatedStorageContainment.cs: Add missing BOOTSTRAP_NET_2_0 to new
	enum values. Fix bug #73046.


svn path=/trunk/mcs/; revision=41958
2005-03-17 19:41:21 +00:00
Martin Baulig a5ec1e40d7 2005-03-17 Martin Baulig <[email protected]>
* SecurityAction.cs: Use `#if NET_2_0 || BOOTSTRAP_NET_2_0'.


svn path=/trunk/mcs/; revision=41956
2005-03-17 18:26:01 +00:00
Sebastien Pouliot 07e0df646f 2005-02-24 Sebastien Pouliot <[email protected]>
* GacIdentityPermission.cs: Fixed warning.
	* StrongNameIdentityPermission.cs: Added support for multiple entries
	for NET_2_0 profile (required for SecurityAction.*DemandChoice).


svn path=/trunk/mcs/; revision=41172
2005-02-25 02:41:09 +00:00
Sebastien Pouliot 88acf2faaa 2005-01-24 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Removed old commented code and a LAMESPEC (as 
	current documentation has been corrected).


svn path=/trunk/mcs/; revision=39457
2005-01-25 02:18:30 +00:00
Sebastien Pouliot 6b76ff6aea 2005-01-19 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Fix case were the wildcard '*' is present
	but not the first character of the site.


svn path=/trunk/mcs/; revision=39185
2005-01-19 16:35:19 +00:00
Sebastien Pouliot 6c59f1dfc1 2005-01-11 Sebastien Pouliot <[email protected]>
* PermissionSetAttribute.cs: Throw proper exception if XML cannot be
	decoded. Actually load (not just creates) the XML permissions.


svn path=/trunk/mcs/; revision=38726
2005-01-11 20:01:35 +00:00
Sebastien Pouliot c9eea6e61f 2005-01-08 Sebastien Pouliot <[email protected]>
* PermissionSetAttribute.cs: Implemented Hex property (2.0) now that
	it is documented.
	* RegistryPermission.cs: Added text to MonoTODO, i.e. lack of access 
	control support.
	* KeyContainerPermissionFlags.cs: Fixed values for ViewAcl and 
	ChangeAcl (a hole as been left). This also corrects AllFlags.


svn path=/trunk/mcs/; revision=38539
2005-01-08 20:26:20 +00:00
Sebastien Pouliot 123f7b77e3 2005-01-05 Sebastien Pouliot <[email protected]>
* DataProtectionPermission.cs: Moving to System.Security assembly.
	* DataProtectionPermissionAttribute.cs: Moving to System.Security.dll.
	* DataProtectionFlags.cs: Moving to System.Security assembly.
	* KeyContainerPermissionFlags.cs: Added ViewAcl and ChangeAcl (added
	after beta1). Corrected AllFlags (with new entries).


svn path=/trunk/mcs/; revision=38355
2005-01-05 15:20:59 +00:00
Sebastien Pouliot e905086406 2004-11-26 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs:
	* IsolatedStorageFilePermission.cs:
	* PrincipalPermission.cs:
		Added ComVisible attributes to match 2.0 October Preview.


svn path=/trunk/mcs/; revision=36641
2004-11-26 15:32:08 +00:00
Sebastien Pouliot 2a13d37d29 2004-10-15 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug in Intersect (thanks to Alain
	Normandin). Changed XML tag to "Permission" (not "IPermission").

svn path=/trunk/mcs/; revision=35030
2004-10-15 13:55:10 +00:00
Sebastien Pouliot 1eebc646d3 2004-10-05 Sebastien Pouliot <[email protected]>
* PrincipalPermission.cs: Fixed bug where a change to a permission
	(e.g. Copy, Union) could affect multiple instances. Fixed FromXml
	to clear existing entries.

svn path=/trunk/mcs/; revision=34724
2004-10-05 15:57:43 +00:00
Sebastien Pouliot 6c95d9bff3 2004-09-16 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Fixed warning (l4) for unused variable.
	* StrongNameIdentityPermissionAttribute.cs: Fixed warning (l4)...

svn path=/trunk/mcs/; revision=33987
2004-09-16 23:17:04 +00:00
Sebastien Pouliot 9e04fb421c 2004-09-04 Sebastien Pouliot <[email protected]>
* FileIOPermission.cs: Reworked to support partial paths, non-c14n
	paths (like ..) and PathDiscovery in XML. Now runs MSDN sample.
	* RegistryPermission.cs: Removed unrequired variable.

svn path=/trunk/mcs/; revision=33353
2004-09-04 23:00:19 +00:00
Sebastien Pouliot 44ca984acc 2004-09-03 Sebastien Pouliot <[email protected]>
* EnvironmentPermission.cs: Fixed Unrestricted in FromXml.
	* RegistryPermission.cs: Completed implementation wrt Fx 1.1.

svn path=/trunk/mcs/; revision=33320
2004-09-03 22:49:00 +00:00
Sebastien Pouliot 0bc21191a2 2004-09-03 Sebastien Pouliot <[email protected]>
* EnvironmentPermission.cs: Fixed GetPathList which has little
	differences between Fx 1.1 and 2.0. Required to run the MSDN samples.
	* FileDialogPermission.cs: Fixed IsSubsetOf and Intersect.
	* RegistryPermission.cs: Fixed ToXml to avoid NullReferenceException.
	Required to run the MSDN library samples.
	* SecurityPermission.cs: Return null for an empty intersection.
	Required to run the MSDN library samples.
	* SiteIdentityPermission.cs: Implemented wildcard support in
	Intersect, IsSubsetOf and Union.
	* StrongNameIdentityPermission.cs: Implemented wildcard support in
	Intersect, IsSubsetOf and Union. Fixed ToXml to pass the MSDN samples.
	* UrlIdentityPermission.cs: Implemented wildcard support in Intersect,
	IsSubsetOf and Union. Fixed difference between Fx1.1 and 2.0 in Copy.

svn path=/trunk/mcs/; revision=33268
2004-09-03 11:51:52 +00:00
Sebastien Pouliot 1d1ea40e05 2004-09-02 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Updated to match latest unit tests, i.e.
	match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* StrongNameIdentityPermission.cs: Updated to match latest unit tests,
	i.e. match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
	* UrlIdentityPermission.cs: Updated to match latest unit tests, i.e.
	match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.

svn path=/trunk/mcs/; revision=33205
2004-09-02 10:47:50 +00:00
Sebastien Pouliot 9fd3f66265 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Do not include "Zone" attribute in XML if
	zone == NoZone (so the permission can be considered as empty).

svn path=/trunk/mcs/; revision=33152
2004-09-01 12:28:00 +00:00
Sebastien Pouliot 84dad1fad9 2004-08-20 Sebastien Pouliot <[email protected]>
* UrlIdentityPermission.cs: Basic (without wildcards) implementation
	for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.

svn path=/trunk/mcs/; revision=32587
2004-08-20 17:50:39 +00:00
Sebastien Pouliot b1213a660e 2004-08-20 Sebastien Pouliot <[email protected]>
* SiteIdentityPermission.cs: Basic (without wildcards) implementation
	for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.

svn path=/trunk/mcs/; revision=32573
2004-08-20 13:25:32 +00:00
Sebastien Pouliot 0a21246208 2004-08-19 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttribute.cs: Namespace clean-up (removing System.)
	* EnvironmentPermission.cs: Common exception for flags validation.
	Fixed Fx 2.0 return values (String.Empty not null).
	* EnvironmentPermissionAttribute.cs: Namespace clean-up.
	* FileIOPermission.cs: Updated to use the common template. Added Fx
	2.0 properties.
	* FileIOPermissionAttribute.cs: Added Fx 2.0 properties.
	* HostProtectionAttribute.cs: Namespace clean-up (removing System.)
	* IsolatedStoragePermissionAttribute.cs: Namespace cleanup.
	* KeyContainerPermissionAttribute.cs: Added default values. Removed
	unrequired flags validations. Can now create unrestricted permissions.
	* PermissionSetAttribute.cs: Added new Fx 2.0 Hex property.
	* PrincipalPermission.cs: Updated to use the common template.
	* PrincipalPermissionAttribute.cs: Namespace cleanup.
	* PublisherIdentityPermissionAttribute.cs: Namespace cleanup.
	* RegistryPermission.cs: Updated to use the common template.
	* RegistryPermissionAttribute.cs: Added Fx 2.0 properties.
	* SecurityAttribute.cs: Namespace clean-up (removing System.)
	* SiteIdentityPermission.cs: Updated to use the common template.
	* SiteIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to SiteIdentityPermission constructor.
	* StrongNamePermissionAttribute.cs: Move unrestricted responsability
	check to StrongNameIdentityPermission constructor.
	* UrlIdentityPermission.cs: Updated to use the common template.
	* UrlIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to UrlIdentityPermission constructor.
	* ZoneIdentityPermissionAttribute.cs: Move unrestricted responsability
	check to ZoneIdentityPermission constructor.

svn path=/trunk/mcs/; revision=32537
2004-08-19 18:29:23 +00:00
Sebastien Pouliot 123dedbb75 2004-08-19 Sebastien Pouliot <[email protected]>
* SecurityPermission.cs: Updated to use the common template. Now
	pass all unit tests.

svn path=/trunk/mcs/; revision=32523
2004-08-19 11:28:15 +00:00
Sebastien Pouliot 97426dead1 2004-08-18 Sebastien Pouliot <[email protected]>
* IsolatedStorageContainment.cs: Added new enums values for NET_2_0.
	* IsolatedStorageFilePermissionAttribute.cs: Removed unrequired using
	clause.
	* IsolatedStorageFilePermission.cs: Updated to use the common template.
	Completed TODOs	and now pass all unit tests.
	* IsolatedStoragePermission.cs: Updated to use the common template.
	Completed TODOs	and now pass all unit tests.

svn path=/trunk/mcs/; revision=32490
2004-08-18 14:54:31 +00:00
Sebastien Pouliot 867942d7fa 2004-08-18 Sebastien Pouliot <[email protected]>
* GacIdentityPermission.cs: Update to use the common template. Now
	pass all unit tests.
	* GacIdentityPermissionAttribute.cs: Added FIXME comment.

svn path=/trunk/mcs/; revision=32480
2004-08-18 11:41:06 +00:00
Sebastien Pouliot 61baec6662 2004-08-17 Sebastien Pouliot <[email protected]>
* StrongNameIdentityPermission.cs: Update to use the common template.
	Completed TODOs	and now pass all unit tests.
	* StrongNamePermissionAttribute.cs: Fixed public key convertion (as it
	wasn't base64 encoded).
	* StrongNamePublicKeyBlob.cs: Made static FromString() more robust.

svn path=/trunk/mcs/; revision=32459
2004-08-17 19:48:22 +00:00
Sebastien Pouliot 5a318fb1ad 2004-08-17 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermission.cs: Update to use the common template. Now
	pass all unit tests.

svn path=/trunk/mcs/; revision=32432
2004-08-17 14:13:31 +00:00