Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Security.AccessControl.NativeObjectSecurity Class Referenceabstract

Public Member Functions

virtual void AddAccessRule (AccessRule< T > rule)
 
virtual void SetAccessRule (AccessRule< T > rule)
 
virtual void ResetAccessRule (AccessRule< T > rule)
 
virtual bool RemoveAccessRule (AccessRule< T > rule)
 
virtual void RemoveAccessRuleAll (AccessRule< T > rule)
 
virtual void RemoveAccessRuleSpecific (AccessRule< T > rule)
 
virtual void AddAuditRule (AuditRule< T > rule)
 
virtual void SetAuditRule (AuditRule< T > rule)
 
virtual bool RemoveAuditRule (AuditRule< T > rule)
 
virtual void RemoveAuditRuleAll (AuditRule< T > rule)
 
virtual void RemoveAuditRuleSpecific (AuditRule< T > rule)
 
AuthorizationRuleCollection GetAccessRules (bool includeExplicit, bool includeInherited, Type targetType)
 
AuthorizationRuleCollection GetAuditRules (bool includeExplicit, bool includeInherited, Type targetType)
 
IdentityReferenceGetOwner (Type targetType)
 
void SetOwner (IdentityReference identity)
 
IdentityReferenceGetGroup (Type targetType)
 
void SetGroup (IdentityReference identity)
 
virtual void PurgeAccessRules (IdentityReference identity)
 
virtual void PurgeAuditRules (IdentityReference identity)
 
void SetAccessRuleProtection (bool isProtected, bool preserveInheritance)
 
void SetAuditRuleProtection (bool isProtected, bool preserveInheritance)
 
string GetSecurityDescriptorSddlForm (AccessControlSections includeSections)
 
void SetSecurityDescriptorSddlForm (string sddlForm)
 
void SetSecurityDescriptorSddlForm (string sddlForm, AccessControlSections includeSections)
 
byte[] GetSecurityDescriptorBinaryForm ()
 
void SetSecurityDescriptorBinaryForm (byte[] binaryForm)
 
void SetSecurityDescriptorBinaryForm (byte[] binaryForm, AccessControlSections includeSections)
 
virtual bool ModifyAccessRule (AccessControlModification modification, AccessRule rule, out bool modified)
 
virtual bool ModifyAuditRule (AccessControlModification modification, AuditRule rule, out bool modified)
 
AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
 
override AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
 
AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
 
override AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
 

Static Public Member Functions

static bool IsSddlConversionSupported ()
 

Protected Member Functions

 NativeObjectSecurity (bool isContainer, ResourceType resourceType)
 
 NativeObjectSecurity (bool isContainer, ResourceType resourceType, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
 
 NativeObjectSecurity (bool isContainer, ResourceType resourceType, string? name, AccessControlSections includeSections, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
 
 NativeObjectSecurity (bool isContainer, ResourceType resourceType, string? name, AccessControlSections includeSections)
 
 NativeObjectSecurity (bool isContainer, ResourceType resourceType, SafeHandle? handle, AccessControlSections includeSections, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
 
 NativeObjectSecurity (bool isContainer, ResourceType resourceType, SafeHandle? handle, AccessControlSections includeSections)
 
override void Persist (string name, AccessControlSections includeSections)
 
void Persist (string name, AccessControlSections includeSections, object? exceptionContext)
 
override void Persist (SafeHandle handle, AccessControlSections includeSections)
 
void Persist (SafeHandle handle, AccessControlSections includeSections, object? exceptionContext)
 
override bool ModifyAccess (AccessControlModification modification, AccessRule rule, out bool modified)
 
override bool ModifyAudit (AccessControlModification modification, AuditRule rule, out bool modified)
 
void AddAccessRule (AccessRule rule)
 
void SetAccessRule (AccessRule rule)
 
void ResetAccessRule (AccessRule rule)
 
bool RemoveAccessRule (AccessRule rule)
 
void RemoveAccessRuleAll (AccessRule rule)
 
void RemoveAccessRuleSpecific (AccessRule rule)
 
void AddAuditRule (AuditRule rule)
 
void SetAuditRule (AuditRule rule)
 
bool RemoveAuditRule (AuditRule rule)
 
void RemoveAuditRuleAll (AuditRule rule)
 
void RemoveAuditRuleSpecific (AuditRule rule)
 
void ReadLock ()
 
void ReadUnlock ()
 
void WriteLock ()
 
void WriteUnlock ()
 
virtual void Persist (bool enableOwnershipPrivilege, string name, AccessControlSections includeSections)
 

Package Functions

delegate? Exception ExceptionFromErrorCode (int errorCode, string? name, SafeHandle? handle, object? context)
 
 NativeObjectSecurity (ResourceType resourceType, CommonSecurityDescriptor securityDescriptor, ExceptionFromErrorCode exceptionFromErrorCode)
 
void Persist (SafeHandle handle)
 
void Persist (string name)
 

Package Attributes

readonly CommonSecurityDescriptor _securityDescriptor
 

Properties

CommonSecurityDescriptor SecurityDescriptor [get]
 
bool OwnerModified [get, set]
 
bool GroupModified [get, set]
 
bool AuditRulesModified [get, set]
 
bool AccessRulesModified [get, set]
 
bool IsContainer [get]
 
bool IsDS [get]
 
bool AreAccessRulesProtected [get]
 
bool AreAuditRulesProtected [get]
 
bool AreAccessRulesCanonical [get]
 
bool AreAuditRulesCanonical [get]
 
Type AccessRightType [get]
 
override Type AccessRightType [get]
 
Type AccessRuleType [get]
 
override Type AccessRuleType [get]
 
Type AuditRuleType [get]
 
override Type AuditRuleType [get]
 

Private Member Functions

void Persist (string name, SafeHandle handle, AccessControlSections includeSections, object exceptionContext)
 
AuthorizationRuleCollection GetRules (bool access, bool includeExplicit, bool includeInherited, Type targetType)
 
bool AceNeedsTranslation ([NotNullWhen(true)] CommonAce ace, bool isAccessAce, bool includeExplicit, bool includeInherited)
 
void UpdateWithNewSecurityDescriptor (RawSecurityDescriptor newOne, AccessControlSections includeSections)
 
AccessControlSections GetAccessControlSectionsFromChanges ()
 

Static Private Member Functions

static CommonSecurityDescriptor CreateInternal (ResourceType resourceType, bool isContainer, string name, SafeHandle handle, AccessControlSections includeSections, bool createByName, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
 
static bool IsValidTargetTypeStatic (Type targetType)
 

Private Attributes

readonly ResourceType _resourceType
 
readonly ExceptionFromErrorCode _exceptionFromErrorCode
 
readonly object _exceptionContext
 
readonly uint ProtectedDiscretionaryAcl = 2147483648u
 
readonly uint ProtectedSystemAcl = 1073741824u
 
readonly uint UnprotectedDiscretionaryAcl = 536870912u
 
readonly uint UnprotectedSystemAcl = 268435456u
 
readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion)
 
bool _ownerModified
 
bool _groupModified
 
bool _saclModified
 
bool _daclModified
 

Detailed Description

Definition at line 7 of file NativeObjectSecurity.cs.


The documentation for this class was generated from the following file: