Revert "add System.Net.Http.Formatting to monodroid build"
Revert "added System.Configuration and System.Security to monodroid build to fix it"
This reverts commit 85cb9e3176 and
commit 6566273367.
NativeObjectSecurity is implemented.
I've done it in such a way that, for OSes that do not have a unified API for all ACLs,
overrides can be done in subclasses such as FileSystemSecurity without trouble.
ObjectSecurity, CommonObjectSecurity, and DirectoryObjectSecurity all implemented.
MutexSecurity, PipeSecurity, etc. all just add type specialization and nothing else. Implemented all of these as well.
Access and Audit rules now correctly use NTAccount in their string overloads (see unit tests).
The constructors all provide correct AccessMasks now. In other words, these classes are all now un-broken/no longer stubs.
More unit tests for CommonSecurityDescriptor and fixes to pass them.
A few had checks that were redundant (implemented by (Authorization|Audit|Access)Rule) as well. These have been removed.
The Allow Everyone Full Access default for null DiscretionaryAcls in CommonSecurityDescriptor is, I think,
properly implemented. This required some changes to GenericSecurityDescriptor as well, but now Mono matches
MS.NET on GetSddl/GetBinaryForm for null DiscretionaryAcl including roundtrip.
What's still missing:
(1) CommonAcl's RemoveAccess/RemoveAudit. RemoveAll and RemoveSpecific work so it's not a big issue.
(2) CommonAcl merging will not yet try to merge a CommonAce together with an ObjectAce.
(3) The various *Security constructors. Get/SetAccessControl work on files and directories.
However, you still have to create and then set. I am not too familiar with Mono runtime internal
calls, but to someone who is: If the SECURITY_ATTRIBUTES parameter to Create*'s lpSecurityDescriptor
pointed to the output of GenericSecurityDescriptor's GetBinaryForm, that would be a complete
implementation.
* Directory.cs: Ensure elevated trust when calling on
Moonlight.
* DirectoryInfo.cs: Ensure elevated trust when calling a .ctor
on Moonlight.
* File.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileInfo.cs: Ensure elevated trust when calling a .ctor on
Moonlight.
* FileStream.cs: Ensure elevated trust when calling a .ctor on
Moonlight. Name property returns "[Unknown]" unless a Moonlight
application is executed with elevated trust.
* Path.cs: Ensure elevated trust when calling a GetTempPath,
GetTempFileName or GetFullPath on Moonlight. Add a shared
internal method to validate paths to reduce code duplication.
svn path=/trunk/mcs/; revision=155643
2010-03-12 Sebastien Pouliot <[email protected]>
* Tuple.cs, Tuples.cs: Add them to NET_2_1 since they are parts
of SL4
In System.Collections:
2010-03-12 Sebastien Pouliot <[email protected]>
* IStructuralComparable.cs, IStructuralEquatable.cs: Add them to
NET_2_1 since they are parts of SL4
In System.IO:
2010-03-12 Sebastien Pouliot <[email protected]>
* File.cs: Enable some NET_4_0 features in NET_2_1 since they are
part of SL4. Throw a SecurityException in Moonlight in non-debug
builds until we're ready for elevated trust.
svn path=/trunk/mcs/; revision=153506
indicates whether the original path should only container the last
part of the directory. Moved logic for determining the Name and
Parent to Initialize method, to allow it to be re-used on
deserialization. Renamed argument names to fix corcompare issues.
Added missing argument checks.
* Directory.cs (CreateDirectoriesInternal): Use internal ctor for
DirectoryInfo to ensure OriginalPath only contains last part of
the directory.
* File.cs: Removed redundant checks from Create. On 2.0 profile, pass
FileOptions to FileStream. Removed redundant directory check from
Delete and modified exceptions to more closely match MS.
* FileInfo.cs: Added argument check to ctor to match MS. Added missing
deserialization ctor. Modified argument checks in MoveTo, and removed
redundant checks. Added missing argument checks in CopyTo. Code
formatting.
* FileSystemInfo.cs: Modified argument checks in CheckPath to more
closely match MS.
* MonoIO.cs: Added msg that does not disclose filename for
ERROR_FILE_EXISTS.
* Path.cs: Use String.Length instead of comparing with String.Empty.
Removed exceptions argument names to match MS.
* File.cs: Added/improved tests for Create and Move.
* DirectoryInfoTest.cs: No longer derive from deprecated Assertion
class. Improved tests for ctor, Create, Name, Parent, ...
* FileInfoTest.cs: No longer derive from deprecated Assertion class.
Improved/added tests,
* PathTest.cs: Added tests for IsPathRooted and GetFullPath.
* FileSystemInfoTest.cs: Fixed test. Now passes on both Mono and MS.
svn path=/trunk/mcs/; revision=101006
* File.cs: Pretty up the file share exception with the path name.
2008-04-04 Dick Porter <[email protected]>
* FileTest.cs: Test moving a file when the access mode disallows
it. Test from Eric Albright <[email protected]>, see bug 377049.
svn path=/trunk/mcs/; revision=99860
Implementing System.IO.File.Replace
*File.cs: Add implementation for IO.File.Replace methods.
*MonoIO.cs: Declared an internal call for ReplaceFile
*FileTest.cs: Added a test for IO.File.Replace.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=84485
* File.cs: Add stubs for Encrypt and Decrypt that throws
NotSupportedException just like non-NTFS file systems would with MS.
Remove nested #if NET_2_0.
* FileInfo.cs: Add stubs for Encrypt and Decrypt that throws
NotSupportedException just like non-NTFS file systems would with MS.
svn path=/trunk/mcs/; revision=69956
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
IOException if specified path does not exist. Fixes bug #77641.
* FileTest.cs: In 2.0 profile, no longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641). Renamed tests and removed trailing tabs. Removed
duplicate test. Fixed GetLastWriteTime(Utc) tests that used
GetLastAccessTime(Utc) instead of GetLastWriteTime(Utc).
* DirectoryTest.cs: No longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641).
svn path=/trunk/mcs/; revision=57338
2006-01-12 Ben Maurer <[email protected]>
* FileTest.cs: Tests tests for read/writealltext.
In System.IO:
2006-01-12 Ben Maurer <[email protected]>
* File.cs: Support for Read/WriteAllText
svn path=/trunk/mcs/; revision=55475
* Dictionary.cs: Remove the `Hash' name from the Dictionary
internal classes, make them public.
2005-05-26 Miguel de Icaza <[email protected]>
* File.cs (ReadAllBytes): add.
svn path=/trunk/mcs/; revision=45058
2005-05-06 Ben Maurer <[email protected]>
* FileTest.cs (OpenAppend): Test for #71088.
In System.IO:
2005-05-06 Ben Maurer <[email protected]>
* File.cs (Open): If a stream is opened with Append access, you
only want Write access. Fixes bug #71088.
svn path=/trunk/mcs/; revision=44163
* Test/System.IO/FileTest.cs: test for invalid characters in file names.
* System.IO/File.cs: Exists does not throw when there are invalid
characters in the file name.
* System.IO/MonoIOError.cs: uncommented INVALID_NAME.
svn path=/trunk/mcs/; revision=40208
* File.cs: Added Gettextification, provide a better error message
for #62112
2004-09-08 Miguel de Icaza <[email protected]>
* Locale.cs: Added overload that calls String.Format.
svn path=/trunk/mcs/; revision=33597
* CheckPermission.cs:
* File.cs:
* FileInfo.cs:
* MonoIO.cs:
* FileStream.cs: Give the filename when throwing
FileNotFoundException. Fixes bug 61120, based on patch from
Carlos Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30744
* File.cs: File.Move() should check that the destination doesn't
already exist. Fixes bug 60915, patch based on one from Carlos
Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30741
is a directory.
* MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
svn path=/trunk/mcs/; revision=24527