* SecurityManager.cs: Add stub for new methods (so code compiles
correctly under other profiles)
* SecurityManager_2_1.cs: Implement [Check|Ensure]ElevatedPermissions
for Moonlight Elevated Trust
svn path=/trunk/mcs/; revision=155633
* SecurityManager_2_1.cs: Add an internal HasElevatedPermissions
property to mscorlib since the "real" (i.e. visible) one in
System.Windows.dll is not accessible by most code.
svn path=/trunk/mcs/; revision=154099
* SecurityManager_2_1.cs: Return to duty for SecurityEnabled, it
will allow us to distinguish between running in the browser
(coreclr active) and on the console (e.g. smcs) from managed code
svn path=/trunk/mcs/; revision=144732
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-05-02 Sebastien Pouliot <[email protected]>
* CodeAccessPermission.cs (ThrowSecurityException): Don't include
CAS-specific information when throwing a SecurityException in
NET_2_1
In System:
2009-05-02 Sebastien Pouliot <[email protected]>
* Console.cs: Remove Windows-specific p/invokes and SSC code
from the NET_2_1 build.
In System.Security.Cryptography.X509Certificates:
2009-05-02 Sebastien Pouliot <[email protected]>
* X509Certificate.cs: Remove code to initialize from an handle
in NET_2_1 since this is only possible from Windows and would be
SC anyway.
In System.Reflection:
2009-05-02 Sebastien Pouliot <[email protected]>
* Assembly.cs: Exclude CAS-specific code for NET_2_1
svn path=/trunk/mcs/; revision=133384
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
* SecurityManager.cs: Remove VerificationException (not used from
the runtime anymore) and add FieldAccessException (which is now,
or soon will be, required/used by the runtime).
svn path=/trunk/mcs/; revision=129771
* SecuritySafeCriticalAttribute.cs: Include SecuritySafeCritical in
the net_2_0 profile, as a recent sp includes it.
svn path=/trunk/mcs/; revision=113038
* CodeAccessPermission.cs,
* PermissionSet.cs,
* SecurityManager.cs: Provide better MonoTODO messages for the
next version of MoMA.
svn path=/trunk/mcs/; revision=104578
* SecurityElement.cs :
set_Text() should unescape the input string. get_Text() should
return unescaped string. It also applies to attribute value.
ToString() should return valid (escaped) XML.
* SecurityElementTest.cs : enabled test for #333699 and added
couple more.
svn path=/trunk/mcs/; revision=89135
ensure exception message match that of MS. In Tag property, set name
of parameter in ArgumentNullException and do not filter out
namespace prefixes. Modified Text property to allow null values
after change to IsValidText that no longer considers null value as
valid. Avoid NRE in Escape.
* SecurityElementTest.cs: No longer derive from Assertion. Added and
improved ctor tests. Improved AddAttribute and AddChild tests.
Added comment to mono's Attributes test and added test that passes
on MS (to track fix for MS bug). Improved IsValid* tests. Added tests
for Tag and Text. Improved FromString test to verify behavior wrt
namespace prefixes. Added test for bug #333699.
svn path=/trunk/mcs/; revision=87459
* SecurityManager.cs: Changed method argument of
LinkDemandSecurityException to IntPtr and removed the assembly
argument (which can be gotten to via the method), to avoid having
to embed reference object values in the native code.
svn path=/trunk/mcs/; revision=84932
* SecurityManager.cs: Changed arguments of MethodAccessException
to IntPtr, to avoid having to embed reference object values in the
native code.
svn path=/trunk/mcs/; revision=84456
* 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
* SecureString.cs: Completed InsertAt, fixed Alloc not to re-alloc a
block of the same size. Fixed missing encryption for the char* ctor.
Only missing is access to ProtectedMemory do to the [en|de]cryption.
svn path=/trunk/mcs/; revision=52910
* SecureString.cs: Changed the previous (and partial) managed
implementation to one (that will be) based on ProtectedMemory. Work in
progress...
svn path=/trunk/mcs/; revision=52329
* PermissionSet.cs: If the current permission set is unrestricted then
we must allow "permit only" for unrestricted (all other case are known
to be too restrictive).
svn path=/trunk/mcs/; revision=51807
* SecurityManager.cs: Added [Obsolete] on SecurityEnabled for 2.0 (as
it cannot be turned off on MS runtime anymore). Removed dependecies
on PermissionSetCollection as this class (related to *Choice actions)
didn't make it to 2.0 RC.
svn path=/trunk/mcs/; revision=50498
* SecurityManager.cs: Added AppDomain support in InheritanceDemand.
Fixed some another small difference between 1.x and 2.0 (wrt
unrestricted permissions). Fixed error reporting for InheritanceDemand
(was LinkDemand).
svn path=/trunk/mcs/; revision=49347
* CodeAccessPermission.cs: Fix Deny for permissions that do not return
null for empty intersection (common on flags-based permissions).
* PermissionBuilder.cs: Add an helper call to create an empty
(PermissionState.None) permission from a type.
svn path=/trunk/mcs/; revision=49339
* 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
* CodeAccessPermission.cs: Removed redundant and unrequired TODO.
* PermissionSet.cs: Some 2.0 optimizations (because sets are simpler
without the special case for identity permissions).
* SecurityManager.cs: Shortcut for ResolveIdentityPermissions (in 2.0)
and some more declarative security syntax updates.
svn path=/trunk/mcs/; revision=46249
IsSubsetOf method.
* SecurityManager.cs: Simplified IsGranted and added support for 2.0
(where all permissions support unrestricted). Changed desclarative
security syntax not to use flags (like the rest of the source code).
2005-06-16 Sebastien Pouliot <[email protected]>
svn path=/trunk/mcs/; revision=46102