Commit Graph
5 Commits
Author SHA1 Message Date
Sebastien Pouliot bc6f1e1ba3 2005-05-16 Sebastien Pouliot <[email protected]>
* PermissionSet.cs: Add support for "hidden" read-only mode (as used
	by PolicyStatement).
	* SecurityFrame.cs: Add some debugging code in the ToString method.
	* SecurityManager.cs: Changed internal API so we can display the 
	permission that failed in a PermissionSet (e.g. assembly or appdomain).


svn path=/trunk/mcs/; revision=44585
2005-05-16 19:44:29 +00:00
Sebastien Pouliot 0edd74fe56 2005-05-06 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Reworked frames check to check only for
	the stack modifiers. Throwing a SecurityException now calls Assembly.
	UnprotectedGetName () to avoid throwing (recursively) other 
	SecurityExceptions.
	* PermissionSet.cs: Reworked frames check to include Assembly (moved) 
	and AppDomain (new) transitions.
	* SecurityFrame.cs: Added Domain member to match the runtime structure
	definition. Removed debugging code (will be moved into the runtime 
	later) as it can cause SecurityException is some cases.
	* SecurityManager.cs: Added a method to check if a PermissionSet is
	granted by an AppDomain.


svn path=/trunk/mcs/; revision=44124
2005-05-06 11:40:40 +00:00
Sebastien Pouliot 69158eed22 2005-03-15 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Fixed depth for starting the stack walk
	(imperative) and fixed assert condition.
	* PermissionSet.cs: Fixed depth for starting the stack walk.
	* SecurityFrame.cs: Reversed stack. Added optional debugging code.


svn path=/trunk/mcs/; revision=41834
2005-03-15 13:03:49 +00:00
Sebastien Pouliot 7a4f3920f8 * SecurityFrame.cs: Keep RuntimeDeclSecurityEntry enum in sync with runtime (added index to allow AOT to work with declarative security).
svn path=/trunk/mcs/; revision=39349
2005-01-22 15:10:14 +00:00
Sebastien Pouliot 2ee233cb81 2004-12-20 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs: Refactored to play more nicely with 
	PermissionSet and the new functionalities in the runtime.
	* PermissionSet.cs: Modified to use the new functionalities in the
	runtime. This allows the declarative stack modifiers to work in a 
	stack walk.
	* SecurityFrame.cs: New. This is the managed representation of the
	security informations associated with a stack frame. This current
	version only support declarative stack modifiers.
	* SecurityManager.cs: Modified to use the new functionalities in the
	runtime.


svn path=/trunk/mcs/; revision=37973
2004-12-20 15:28:38 +00:00