* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
* 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
* PolicyLevel.cs: Set SecurityManager.ResolvingPolicyLevel to the
current policylevel instance if we want to use the FullTrustAssemblies
collection.
svn path=/trunk/mcs/; revision=49143
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* Evidence.cs: Faster default evidence creation by using an internal
call to check for a possible Authenticode signature of the assembly.
Previously we had to make several I/O to verify this (quite rare)
presence (but the runtime already had a good hint about this).
svn path=/trunk/mcs/; revision=36639
* Evidence.cs: Fix the case where GetPublicKey returns a 0 length
byte array so that we don't create an invalid StrongName evidence.
svn path=/trunk/mcs/; revision=35169
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
the MS implementation.
* UnionCodeGroup.cs: Resolve() will now perform union on child code
groups.
* FileCodeGroup.cs: Resolve() will now perform union on child code
groups.
* NetCodeGroup.cs: Resolve() will now perform union on child code
groups.
svn path=/trunk/mcs/; revision=34075
* CodeGroup.cs: Creates an empty PermissionSet (and not an empty
NamedPermissionSet). Required to run the MSDN library samples.
* FileCodeGroup.cs: Fixed Copy so that CodeGroup.Equals would work
preperly. Required to run the MSDN library samples.
* FirstMatchCodeGroup.cs: Reworked the Resolve* logic to run the MSDN
library samples.
* PolicyLevel.cs: Fixed RemoveNamedPermissionSet and (more) complete
CreateAppDomainLevel to run the MSDN library samples.
* StrongNameMembershipCondition.cs: Fix ToXml to run the MSDN library
samples.
svn path=/trunk/mcs/; revision=33267
* PolicyLevel.cs: Fixed Reset not to delete/load policy file for
AppDomain level. Added internal Resolve method for class names.
svn path=/trunk/mcs/; revision=33153
* ApplicationDirectory.cs: Now use Uri class to create the local
application directory.
* ApplicationDirectoryMembershipCondition.cs: Now use Uri class to
CheckEvidence.
* Site.cs: Implemented CreateFromUrl using Uri class.
* Url.cs: Now use Uri class to prepare URLs.
* UrlMembershipCondition.cs: Now use Url class (instead of a string)
for URLs.
* Zone.cs: Implemented default CreateFromUrl using Uri class.
svn path=/trunk/mcs/; revision=33063
* ApplicationSecurityManager.cs: New stub for Fx 2.0 application trust
security manager.
* ApplicationSecurityManagerCodeGroup.cs: New stubbed code group for
NET_2_0 profile.
* ApplicationTrustCollection.cs: New. ApplicationTrust collection for
NET_2_0 profile.
* ApplicationTrustEnumerator.cs: New. ApplicationTrust enumerator for
NET_2_0 profile.
svn path=/trunk/mcs/; revision=32905
* ApplicationDirectory.cs: Fixed directory validation and ToString.
* CodeGroup.cs: Fixed PermissionSetName when policy is null.
* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
unit tests.
* Gac.cs: Implemented IBuiltInEvidence methods.
* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
with Mono ;-). Fixed properties for use with NET_2_0.
* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
copies of hash value (not references).
* PermissionRequestEvidence.cs: Now make copies of permission sets.
* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
* Site.cs: Namespace cleanup, implemented GetRequiredSize.
* StrongName.cs: Namespace cleanup.
* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
* Url.cs: Namespace cleanup, implemented GetRequiredSize.
* Zone.cs: Namespace cleanup, globalization and added more details in
exception.
svn path=/trunk/mcs/; revision=32888
* UrlMembershipCondition.cs: Check now only iterate host provided
evidences.
* ZoneMembershipCondition.cs: FromXml doesn't throw exceptions if Zone
attribute is missing.
svn path=/trunk/mcs/; revision=32771
* AllMembershipCondition.cs: Use common template for membership
condition.
* ApplicationDirectoryMembershipCondition.cs: Use common template for
membership condition. Limit evidences checks to host provided.
"Mostly" functionnal - still need to check c14n issues.
* ApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* DomainApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* GacMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* HashMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* MembershipConditionHelper.cs: Internal class for common membership
condition classes functionalities.
* PublisherMembershipCondition.cs: Use common template for membership
condition.
* SiteMembershipCondition.cs: Use common template for membership
condition.
* StrongNameMembershipCondition.cs: Use common template for membership
condition.
* UrlMembershipCondition.cs: Use common template for membership
condition.
* ZoneMembershipCondition.cs: Use common template for membership
condition.
svn path=/trunk/mcs/; revision=32727
* ApplicationSecurityInfo.cs: Added missing interfaces.
* PolicyLevel.cs: Load policies from files, using *.default files if
policy is missing (like Fx 2.0). Fixed Resolve never to return null.
Added hardcoded policy defaults (to be updated as CAS progress) in
case no policy file, nor default files, are available.
* PolicyStatement.cs: Fixed AttributeString. Added internal static
Empty method (helper).
svn path=/trunk/mcs/; revision=32221
* Evidence.cs: Added new static internal method to create default
host evidences for an assembly.
* FileCodeGroup.cs: Added incomplete (no children) policy resolution
in order to load more complex policies.
* Hash.cs: Added ISerialization support (required for cross-domain
evidence support, like nunit).
* NetCodeGroup.cs: Added incomplete (no children) policy resolution in
order to load more complex policies.
svn path=/trunk/mcs/; revision=32040