Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2006-07-06 19:35:13 +0400
committerDick Porter <dick@acm.org>2006-07-06 19:35:13 +0400
commite046a41d7daa5c3d3b8005937298f895c72c247f (patch)
treef181404d0a8a4cecc574a570f2e944097e9f1ac7 /mcs/class/System/System.Security.AccessControl
parentae88ac9013c94d0373e5e5a749ce7b861e9c18b1 (diff)
2006-07-06 Dick Porter <dick@ximian.com>
* 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 <dick@ximian.com> * System.dll.sources: Added System.Security.AccessControl/SemaphoreAccessRule.cs System.Security.AccessControl/SemaphoreAuditRule.cs 2006-07-06 Dick Porter <dick@ximian.com> * Completely stubbed the System.Security.AccessControl namespace for the 2.0 profile. svn path=/trunk/mcs/; revision=62321
Diffstat (limited to 'mcs/class/System/System.Security.AccessControl')
-rw-r--r--mcs/class/System/System.Security.AccessControl/ChangeLog5
-rw-r--r--mcs/class/System/System.Security.AccessControl/SemaphoreAccessRule.cs63
-rw-r--r--mcs/class/System/System.Security.AccessControl/SemaphoreAuditRule.cs56
-rw-r--r--mcs/class/System/System.Security.AccessControl/SemaphoreSecurity.cs101
4 files changed, 219 insertions, 6 deletions
diff --git a/mcs/class/System/System.Security.AccessControl/ChangeLog b/mcs/class/System/System.Security.AccessControl/ChangeLog
index d17e2d555c2..5b3d4fb238f 100644
--- a/mcs/class/System/System.Security.AccessControl/ChangeLog
+++ b/mcs/class/System/System.Security.AccessControl/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-06 Dick Porter <dick@ximian.com>
+
+ * Completely stubbed the System.Security.AccessControl namespace
+ for the 2.0 profile.
+
2005-12-23 Dick Porter <dick@ximian.com>
* SemaphoreRights.cs: Make the [Flags] enum more obvious
diff --git a/mcs/class/System/System.Security.AccessControl/SemaphoreAccessRule.cs b/mcs/class/System/System.Security.AccessControl/SemaphoreAccessRule.cs
new file mode 100644
index 00000000000..a885b7db026
--- /dev/null
+++ b/mcs/class/System/System.Security.AccessControl/SemaphoreAccessRule.cs
@@ -0,0 +1,63 @@
+//
+// System.Security.AccessControl.SemaphoreAccessRule implementation
+//
+// Author:
+// Dick Porter <dick@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Runtime.InteropServices;
+using System.Security.Principal;
+
+namespace System.Security.AccessControl {
+ [ComVisible (false)]
+ public sealed class SemaphoreAccessRule : AccessRule
+ {
+ SemaphoreRights semaphoreRights;
+
+ public SemaphoreAccessRule (IdentityReference identity,
+ SemaphoreRights semaphoreRights,
+ AccessControlType type)
+ {
+ this.semaphoreRights = semaphoreRights;
+ }
+
+ public SemaphoreAccessRule (string identity,
+ SemaphoreRights semaphoreRights,
+ AccessControlType type)
+ {
+ this.semaphoreRights = semaphoreRights;
+ }
+
+ public SemaphoreRights SemaphoreRights
+ {
+ get {
+ return(semaphoreRights);
+ }
+ }
+ }
+}
+
+#endif
diff --git a/mcs/class/System/System.Security.AccessControl/SemaphoreAuditRule.cs b/mcs/class/System/System.Security.AccessControl/SemaphoreAuditRule.cs
new file mode 100644
index 00000000000..9976a877c66
--- /dev/null
+++ b/mcs/class/System/System.Security.AccessControl/SemaphoreAuditRule.cs
@@ -0,0 +1,56 @@
+//
+// System.Security.AccessControl.SemaphoreAuditRule implementation
+//
+// Author:
+// Dick Porter <dick@ximian.com>
+//
+// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_2_0
+
+using System.Runtime.InteropServices;
+using System.Security.Principal;
+
+namespace System.Security.AccessControl {
+ [ComVisible (false)]
+ public sealed class SemaphoreAuditRule : AuditRule
+ {
+ SemaphoreRights semaphoreRights;
+
+ public SemaphoreAuditRule (IdentityReference identity,
+ SemaphoreRights semaphoreRights,
+ AuditFlags flags)
+ {
+ this.semaphoreRights = semaphoreRights;
+ }
+
+ public SemaphoreRights SemaphoreRights
+ {
+ get {
+ return(semaphoreRights);
+ }
+ }
+ }
+}
+
+#endif
diff --git a/mcs/class/System/System.Security.AccessControl/SemaphoreSecurity.cs b/mcs/class/System/System.Security.AccessControl/SemaphoreSecurity.cs
index 7360507a609..764d1a9cbdf 100644
--- a/mcs/class/System/System.Security.AccessControl/SemaphoreSecurity.cs
+++ b/mcs/class/System/System.Security.AccessControl/SemaphoreSecurity.cs
@@ -1,10 +1,11 @@
//
// System.Security.AccessControl.SemaphoreSecurity class
//
-// Author:
+// Authors:
// Sebastien Pouliot <sebastien@ximian.com>
+// Dick Porter <dick@ximian.com>
//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005, 2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -29,16 +30,104 @@
#if NET_2_0
using System.Runtime.InteropServices;
+using System.Security.Principal;
namespace System.Security.AccessControl {
-
- [MonoTODO ("incomplete - required for compilation of Semaphore")]
[ComVisible (false)]
- public sealed class SemaphoreSecurity {
-
+ public sealed class SemaphoreSecurity : NativeObjectSecurity {
public SemaphoreSecurity ()
{
}
+
+ public SemaphoreSecurity (string name, AccessControlSections includesections)
+ {
+ }
+
+ public override Type AccessRightType
+ {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public override Type AccessRuleType
+ {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public override Type AuditRuleType
+ {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public override AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void AddAccessRule (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void AddAuditRule (SemaphoreAuditRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public bool RemoveAccessRule (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RemoveAccessRuleAll (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RemoveAccessRuleSpecific (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public bool RemoveAuditRule (SemaphoreAuditRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RemoveAuditRuleAll (SemaphoreAuditRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RemoveAuditRuleSpecific (SemaphoreAuditRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ResetAccessRule (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void SetAccessRule (SemaphoreAccessRule rule)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void SetAuditRule (SemaphoreAuditRule rule)
+ {
+ throw new NotImplementedException ();
+ }
}
}