* Actually use the SpecialFolderPathOptions where we need them
-> Create is acknowledged
-> DoNotVerify is ignored, as Mono historically did not throw an
exception on missing directories.
* Rename InternalGetFolderPath to UnixGetFolderPath as this is what it is.
* Fix existing references to the code
* Fix indentation in routine that was never properly formatted (ReadXdgUserDir)
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
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.
* 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