Commit Graph
15 Commits
Author SHA1 Message Date
James Bellinger 4fb4aa1120 Implemented the .NET 4.0 generic versions of AccessRule and AuditRule.
Details worth being aware of, that aren't well documented in MS.NET:

(1) The Rights property is just a casted AccessMask.
I've checked this by testing with MS.NET -- if you use AccessRule<Test>
with an arbitrary struct Test { }, MS.NET has an InvalidCastException
on the Rights getter if you create with ObjectSecurity's factory method
(which is passed an int), and in the constructor if you use AccessRule's
constructor.

(2) The string constructor overloads call 'new NTAccount(identity)'.
What these methods do for AccessRule is not documented by MS.NET,
but this *is* documented for SemaphoreAccessRule, and my testing
with C# shows AccessRule does the same thing. So, I've implemented
this behavior to match.

I will submit a separate patch afterwards to make AuthorizationRule's
accept NTAccount, which is required for the string overloads to work.
Contrary to the MS.NET *documentation* (which Mono follows), AuthorizationRule
actually accepts NTAccount as well as (the documented) SecurityIdentifier.
I verified this by deriving a class from AuthorizationRule.
2012-06-30 13:21:46 -04:00
Zoltan Varga 6854adc9c7 2009-08-29 Zoltan Varga <[email protected]>
* ObjectSecurity_T.cs: New file, empty stub for new net 4.0 class.

svn path=/trunk/mcs/; revision=140928
2009-08-29 23:58:51 +00:00
Andreas N 22240ad0a0 2008-07-02 Andreas Nahr <[email protected]>
* MutexAccessRule.cs:
	* MutexAuditRule.cs: Fix parameter names

svn path=/trunk/mcs/; revision=107103
2008-07-02 21:44:34 +00:00
Andreas N 774797f4d0 2008-04-02 Andreas Nahr <[email protected]>
* CompoundAce.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99617
2008-04-02 07:43:42 +00:00
Atsushi Eno 001d97de25 2007-09-21 Atsushi Enomoto <[email protected]>
* AccessRule.cs AceEnumerator.cs AuditRule.cs AuthorizationRule.cs
	  AuthorizationRuleCollection.cs CommonAce.cs CommonAcl.cs
	  CommonObjectSecurity.cs CompoundAce.cs CryptoKeyAccessRule.cs
	  CryptoKeyAuditRule.cs CryptoKeySecurity.cs CustomAce.cs
	  DirectoryObjectSecurity.cs DirectorySecurity.cs
	  DiscretionaryAcl.cs EventWaitHandleAccessRule.cs
	  EventWaitHandleAuditRule.cs EventWaitHandleSecurity.cs
	  FileSecurity.cs FileSystemAccessRule.cs FileSystemAuditRule.cs
	  FileSystemSecurity.cs GenericAce.cs GenericAcl.cs KnownAce.cs
	  MutexAccessRule.cs MutexAuditRule.cs MutexSecurity.cs
	  NativeObjectSecurity.cs ObjectAccessRule.cs ObjectAce.cs
	  ObjectAuditRule.cs ObjectSecurity.cs QualifiedAce.cs
	  RawAcl.cs RegistryAccessRule.cs RegistryAuditRule.cs
	  RegistrySecurity.cs SystemAcl.cs :
	  they are not still functional, but being implemented.


svn path=/trunk/mcs/; revision=86129
2007-09-21 09:19:42 +00:00
Sebastien Pouliot f990319586 2006-10-31 Sebastien Pouliot <[email protected]>
* AccessRule.cs, AceEnumerator.cs, AuditRule.cs, 
	AuthorizationRuleCollection.cs, AuthorizationRule.cs, CommonAcl.cs,
	CommonObjectSecurity.cs, FileSystemSecurity.cs, GenericAce.cs,
	KnownAce.cs, NativeObjectSecurity.cs, ObjectSecurity.cs, 
	QualifiedAce.cs: Hide extraneous public empty .ctor.


svn path=/trunk/mcs/; revision=67199
2006-11-01 00:17:14 +00:00
Sebastien Pouliot 5e0563d728 2006-10-30 Sebastien Pouliot <[email protected]>
* PrivilegeNotHeldException.cs: Fix namespace.


svn path=/trunk/mcs/; revision=67152
2006-10-30 21:56:27 +00:00
Dick Porter e046a41d7d 2006-07-06 Dick Porter <[email protected]>
* corlib.dll.sources: Added
          System.Security.AccessControl/AccessControlModification.cs
          System.Security.AccessControl/AccessControlType.cs
          System.Security.AccessControl/AccessRule.cs
          System.Security.AccessControl/AceEnumerator.cs
          System.Security.AccessControl/AceFlags.cs
          System.Security.AccessControl/AceQualifier.cs
          System.Security.AccessControl/AceType.cs
          System.Security.AccessControl/AuditFlags.cs
          System.Security.AccessControl/AuditRule.cs
          System.Security.AccessControl/AuthorizationRule.cs
          System.Security.AccessControl/AuthorizationRuleCollection.cs
          System.Security.AccessControl/CommonAce.cs
          System.Security.AccessControl/CommonAcl.cs
          System.Security.AccessControl/CommonSecurityDescriptor.cs
          System.Security.AccessControl/CompoundAce.cs
          System.Security.AccessControl/CompoundAceType.cs
          System.Security.AccessControl/ControlFlags.cs
          System.Security.AccessControl/CryptoKeyAccessRule.cs
          System.Security.AccessControl/CryptoKeyAuditRule.cs
          System.Security.AccessControl/CryptoKeyRights.cs
          System.Security.AccessControl/CustomAce.cs
          System.Security.AccessControl/DirectoryObjectSecurity.cs
          System.Security.AccessControl/DiscretionaryAcl.cs
          System.Security.AccessControl/EventWaitHandleAccessRule.cs
          System.Security.AccessControl/EventWaitHandleAuditRule.cs
          System.Security.AccessControl/FileSecurity.cs
          System.Security.AccessControl/FileSystemAccessRule.cs
          System.Security.AccessControl/FileSystemAuditRule.cs
          System.Security.AccessControl/FileSystemRights.cs
          System.Security.AccessControl/FileSystemSecurity.cs
          System.Security.AccessControl/GenericAce.cs
          System.Security.AccessControl/GenericAcl.cs
          System.Security.AccessControl/GenericSecurityDescriptor.cs
          System.Security.AccessControl/InheritanceFlags.cs
          System.Security.AccessControl/KnownAce.cs
          System.Security.AccessControl/MutexAccessRule.cs
          System.Security.AccessControl/MutexAuditRule.cs
          System.Security.AccessControl/ObjectAccessRule.cs
          System.Security.AccessControl/ObjectAce.cs
          System.Security.AccessControl/ObjectAceFlags.cs
          System.Security.AccessControl/ObjectAuditRule.cs
          System.Security.AccessControl/PrivilegeNotHeldException.cs
          System.Security.AccessControl/PropagationFlags.cs
          System.Security.AccessControl/QualifiedAce.cs
          System.Security.AccessControl/RawAcl.cs
          System.Security.AccessControl/RawSecurityDescriptor.cs
          System.Security.AccessControl/RegistryAccessRule.cs
          System.Security.AccessControl/RegistryAuditRule.cs
          System.Security.AccessControl/RegistryRights.cs
          System.Security.AccessControl/RegistrySecurity.cs
          System.Security.AccessControl/ResourceType.cs
          System.Security.AccessControl/SecurityInfos.cs
          System.Security.AccessControl/SystemAcl.cs

2006-07-06  Dick Porter  <[email protected]>

        * System.dll.sources: Added
        System.Security.AccessControl/SemaphoreAccessRule.cs
        System.Security.AccessControl/SemaphoreAuditRule.cs


2006-07-06  Dick Porter  <[email protected]>

        * Completely stubbed the System.Security.AccessControl namespace
        for the 2.0 profile.




svn path=/trunk/mcs/; revision=62321
2006-07-06 15:35:13 +00:00
Dick Porter 8265935e1b 2005-12-23 Dick Porter <[email protected]>
* EventWaitHandle.cs: 
        * Mutex.cs: Implement OpenExisting

        * NativeEventCalls.cs: Add OpenEvent icall for OpenExisting in
        2.0.  Add a "created" boolean out parameter to CreateEvent icall.

        * ManualResetEvent.cs: 
        * AutoResetEvent.cs: Update CreateEvent icall signature (now has
        "created" boolean out parameter.)

2005-12-23  Dick Porter  <[email protected]>

        * Semaphore.cs: Implement OpenExisting

2005-12-23  Dick Porter  <[email protected]>

        * MutexRights.cs: New for 2.0 profile

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreRights.cs: Make the [Flags] enum more obvious

2005-12-23  Dick Porter  <[email protected]>

        * SemaphoreTest.cs: Enable another test

2005-12-23  Dick Porter  <[email protected]>

        * corlib.dll.sources: Added System.Security.AccessControl.MutexRights



svn path=/trunk/mcs/; revision=54801
2005-12-23 20:29:06 +00:00
Dick Porter f6ce484bf8 2005-12-17 Dick Porter <[email protected]>
* ThreadStartException.cs: 
        * EventWaitHandle.cs: 
        * EventResetMode.cs: 
        * AbandonedMutexException.cs: New for 2.0 profile

        * ThreadState.cs: 
        * Interlocked.cs: 
        * RegisteredWaitHandle.cs: 
        * Monitor.cs: 
        * ThreadPriority.cs: 
        * Mutex.cs: 
        * ManualResetEvent.cs: 
        * AutoResetEvent.cs: Updated for 2.0 profile

2005-12-17  Dick Porter  <[email protected]>

        * EventWaitHandleRights.cs: New for 2.0 profile

        * MutexSecurity.cs: 
        * EventWaitHandleSecurity.cs: 
        * CommonObjectSecurity.cs: 
        * NativeObjectSecurity.cs: 
        * ObjectSecurity.cs: New partial stub for 2.0 profile

2005-12-17  Dick Porter  <[email protected]>

        * corlib.dll.sources: Added in System.Security.AccessControl:
        CommonObjectSecurity.cs, EventWaitHandleRights.cs,
        EventWaitHandleSecurity.cs, ObjectSecurity.cs, MutexSecurity.cs,
        NativeObjectSecurity.cs.  Added in System.Threading:
        AbandonedMutexException.cs, EventResetMode.cs, EventWaitHandle.cs,
        ThreadStartException.cs



svn path=/trunk/mcs/; revision=54567
2005-12-17 18:17:58 +00:00
Sebastien Pouliot 7a037e0b59 2005-12-14 Sebastien Pouliot <[email protected]>
* AccessControlSections.cs: New (2.0). Enum required for DirectoryInfo
	* DirectorySecurity.cs: New (2.0). Partial stub for DirectoryInfo


svn path=/trunk/mcs/; revision=54392
2005-12-14 19:00:31 +00:00
Sebastien Pouliot 39188e9c6f 2005-04-22 Sebastien Pouliot <[email protected]>
* AccessControlActions.cs: Removed [ComVisible] and [Serializable] to
	match beta2.


svn path=/trunk/mcs/; revision=43465
2005-04-23 02:26:14 +00:00
Sebastien Pouliot 6cfedacdea 2005-01-10 Sebastien Pouliot <[email protected]>
* CryptoKeySecurity.cs: Class declaration to complete CspParameters 
	and CspKeyContainerInfo in System.Security.Cryptography.


svn path=/trunk/mcs/; revision=38665
2005-01-11 01:11:21 +00:00
Sebastien Pouliot fdb13aa520 2004-07-08 Sebastien Pouliot <[email protected]>
* AccessControlActions.cs: Fixed enum values. Added missing attributes.

svn path=/trunk/mcs/; revision=30891
2004-07-08 17:53:32 +00:00
Sebastien Pouliot 367427ab6f 2004-07-07 Sebastien Pouliot <[email protected]>
* AccessControlActions.cs: New enum in Fx 2.0. Required for new stuff
	in System.Security.Permissions. Will also "creates" the namespace for
	"corcompare".

svn path=/trunk/mcs/; revision=30849
2004-07-07 19:24:06 +00:00