10 private bool everyOneFullAccessForNullDacl;
12 internal bool EveryOneFullAccessForNullDacl
16 return everyOneFullAccessForNullDacl;
20 everyOneFullAccessForNullDacl = value;
43 : base(isContainer, isDS, revision, capacity)
54 : this(isContainer, isDS, rawAcl, trusted: false)
71 CheckAccessType(accessType);
72 CheckFlags(inheritanceFlags, propagationFlags);
73 everyOneFullAccessForNullDacl =
false;
85 CheckAccessType(accessType);
86 CheckFlags(inheritanceFlags, propagationFlags);
87 everyOneFullAccessForNullDacl =
false;
101 CheckAccessType(accessType);
102 everyOneFullAccessForNullDacl =
false;
114 CheckAccessType(accessType);
115 everyOneFullAccessForNullDacl =
false;
143 CheckAccessType(accessType);
144 CheckFlags(inheritanceFlags, propagationFlags);
145 everyOneFullAccessForNullDacl =
false;
146 AddQualifiedAce(sid, (accessType != 0) ?
AceQualifier.AccessDenied :
AceQualifier.AccessAllowed, accessMask,
GenericAce.AceFlagsFromInheritanceFlags(inheritanceFlags, propagationFlags), objectFlags, objectType, inheritedObjectType);
173 CheckAccessType(accessType);
174 CheckFlags(inheritanceFlags, propagationFlags);
175 everyOneFullAccessForNullDacl =
false;
176 SetQualifiedAce(sid, (accessType != 0) ?
AceQualifier.AccessDenied :
AceQualifier.AccessAllowed, accessMask,
GenericAce.AceFlagsFromInheritanceFlags(inheritanceFlags, propagationFlags), objectFlags, objectType, inheritedObjectType);
206 CheckAccessType(accessType);
207 everyOneFullAccessForNullDacl =
false;
208 return RemoveQualifiedAces(sid, (accessType != 0) ?
AceQualifier.AccessDenied :
AceQualifier.AccessAllowed, accessMask,
GenericAce.AceFlagsFromInheritanceFlags(inheritanceFlags, propagationFlags), saclSemantics:
false, objectFlags, objectType, inheritedObjectType);
235 CheckAccessType(accessType);
236 everyOneFullAccessForNullDacl =
false;
237 RemoveQualifiedAcesSpecific(sid, (accessType != 0) ?
AceQualifier.AccessDenied :
AceQualifier.AccessAllowed, accessMask,
GenericAce.AceFlagsFromInheritanceFlags(inheritanceFlags, propagationFlags), objectFlags, objectType, inheritedObjectType);
240 internal override void OnAclModificationTried()
242 everyOneFullAccessForNullDacl =
false;
245 internal static DiscretionaryAcl CreateAllowEveryoneFullAccess(
bool isDS,
bool isContainer)
249 discretionaryAcl.everyOneFullAccessForNullDacl =
true;
250 return discretionaryAcl;
DiscretionaryAcl(bool isContainer, bool isDS, RawAcl rawAcl)
Initializes a new instance of the T:System.Security.AccessControl.DiscretionaryAcl class with the spe...
PropagationFlags
Specifies how Access Control Entries (ACEs) are propagated to child objects. These flags are signific...
internal int AccessMask
Gets the access mask for this rule.
void RemoveAccessSpecific(AccessControlType accessType, SecurityIdentifier sid, ObjectAccessRule rule)
Removes the specified Access Control Entry (ACE) from the current T:System.Security....
void SetAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType)
Sets the specified access control for the specified T:System.Security.Principal.SecurityIdentifier ob...
Guid InheritedObjectType
Gets the type of child object that can inherit the T:System.Security.AccessControl....
void AddAccess(AccessControlType accessType, SecurityIdentifier sid, ObjectAccessRule rule)
Adds an Access Control Entry (ACE) with the specified settings to the current T:System....
Represents an Access Control Entry (ACE), and is the base class for all other ACE classes.
Represents an Access Control List (ACL).
void AddAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType)
Adds an Access Control Entry (ACE) with the specified settings to the current T:System....
void RemoveAccessSpecific(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)
Removes the specified Access Control Entry (ACE) from the current T:System.Security....
Provides information about, and means to manipulate, the current environment and platform....
Guid ObjectType
Gets the type of object to which the T:System.Security.AccessControl.ObjectAccessRule applies.
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
A logical OR of F:System.Security.AccessControl.AceFlags.ObjectInherit, F:System.Security....
void AddAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)
Adds an Access Control Entry (ACE) with the specified settings to the current T:System....
ObjectAceFlags ObjectFlags
Gets flags that specify if the P:System.Security.AccessControl.ObjectAccessRule.ObjectType and P:Syst...
bool RemoveAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)
Removes the specified access control rule from the current T:System.Security.AccessControl....
bool RemoveAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType)
Removes the specified access control rule from the current T:System.Security.AccessControl....
bool RemoveAccess(AccessControlType accessType, SecurityIdentifier sid, ObjectAccessRule rule)
Removes the specified access control rule from the current T:System.Security.AccessControl....
Represents an access control list (ACL) and is the base class for the T:System.Security....
static readonly byte AclRevisionDS
The revision level of the current T:System.Security.AccessControl.GenericAcl. This value is returned ...
Represents a combination of a user's identity, an access mask, and an access control type (allow or d...
AccessControlType
Specifies whether an T:System.Security.AccessControl.AccessRule object is used to allow or deny acces...
DiscretionaryAcl(bool isContainer, bool isDS, byte revision, int capacity)
Initializes a new instance of the T:System.Security.AccessControl.DiscretionaryAcl class with the spe...
InheritanceFlags InheritanceFlags
Gets the value of flags that determine how this rule is inherited by child objects.
void SetAccess(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags)
Sets the specified access control for the specified T:System.Security.Principal.SecurityIdentifier ob...
Represents an access control list (ACL) and is the base class for the T:System.Security....
AceQualifier
Specifies the function of an access control entry (ACE).
Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
void RemoveAccessSpecific(AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType)
Removes the specified Access Control Entry (ACE) from the current T:System.Security....
static readonly byte AclRevision
The revision level of the current T:System.Security.AccessControl.GenericAcl. This value is returned ...
The exception that is thrown when a method call is invalid for the object's current state.
void SetAccess(AccessControlType accessType, SecurityIdentifier sid, ObjectAccessRule rule)
Sets the specified access control for the specified T:System.Security.Principal.SecurityIdentifier ob...
static readonly Guid Empty
A read-only instance of the T:System.Guid structure whose value is all zeros.
Represents a Discretionary Access Control List (DACL).
InheritanceFlags
Inheritance flags specify the semantics of inheritance for access control entries (ACEs).
ObjectAceFlags
Specifies the presence of object types for Access Control Entries (ACEs).
WellKnownSidType
Defines a set of commonly used security identifiers (SIDs).
PropagationFlags PropagationFlags
Gets the value of the propagation flags, which determine how inheritance of this rule is propagated t...