88 references to ObjectAceFlags
mscorlib (88)
system\security\accesscontrol\ace.cs (22)
332
ObjectAceFlags
objectFlags;
1751
private
ObjectAceFlags
_objectFlags;
1762
public ObjectAce( AceFlags aceFlags, AceQualifier qualifier, int accessMask, SecurityIdentifier sid,
ObjectAceFlags
flags, Guid type, Guid inheritedType, bool isCallback, byte[] opaque )
1815
internal bool ObjectTypesMatch(
ObjectAceFlags
objectFlags, Guid objectType )
1817
if (( ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent) != ( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ))
1822
if ((( ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 ) &&
1835
internal bool InheritedObjectTypesMatch(
ObjectAceFlags
objectFlags, Guid inheritedObjectType )
1837
if ((ObjectAceFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != ( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ))
1842
if ((( ObjectAceFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 ) &&
1866
out
ObjectAceFlags
objectFlags,
1956
(
ObjectAceFlags
)(
1964
if (( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 )
1984
if (( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 )
2017
if (( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 )
2022
if (( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 )
2061
public
ObjectAceFlags
ObjectAceFlags
2118
(( _objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 ? GuidLength : 0 ) +
2119
(( _objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 ? GuidLength : 0 );
2181
if (( ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 )
2188
if (( ObjectAceFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 )
system\security\accesscontrol\acl.cs (48)
1271
private void GetObjectTypesForSplit( ObjectAce originalAce, int accessMask, AceFlags aceFlags, out
ObjectAceFlags
objectFlags, out Guid objectType, out Guid inheritedObjectType )
1285
objectFlags |= originalAce.ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent;
1295
objectFlags |= originalAce.ObjectAceFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent;
1330
ObjectAceFlags
objectFlags = ( ace is ObjectAce ) ? (( ObjectAce ) ace ).ObjectAceFlags :
ObjectAceFlags
.None;
1332
(( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) == 0 ))
1356
ObjectAceFlags
objectFlags = ( ace is ObjectAce ) ? (( ObjectAce ) ace ).ObjectAceFlags :
ObjectAceFlags
.None;
1357
if (( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) == 0 )
1372
private bool GetAccessMaskForRemoval( QualifiedAce ace,
ObjectAceFlags
objectFlags, Guid objectType, ref int accessMask )
1399
if ((( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 ) &&
1400
(( objectAce.ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent ) == 0 ))
1410
commonAccessBitsWithObjectTypeExist = (( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) == 0 ) ||
1417
else if (( objectFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 )
1429
private bool GetInheritanceFlagsForRemoval( QualifiedAce ace,
ObjectAceFlags
objectFlags, Guid inheritedObjectType, ref AceFlags aceFlags )
1456
if ((( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 ) &&
1457
(( objectAce.ObjectAceFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) == 0 ))
1466
commonInheritanceFlagsExist = (( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) == 0 ) ||
1473
else if (( objectFlags &
ObjectAceFlags
.InheritedObjectAceTypePresent ) != 0 )
2008
internal void AddQualifiedAce( SecurityIdentifier sid, AceQualifier qualifier, int accessMask, AceFlags flags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
2037
if (( !IsDS ) || ( objectFlags ==
ObjectAceFlags
.None ))
2092
internal void SetQualifiedAce( SecurityIdentifier sid, AceQualifier qualifier, int accessMask, AceFlags flags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
2118
if (( !IsDS ) || ( objectFlags ==
ObjectAceFlags
.None ))
2203
internal bool RemoveQualifiedAces( SecurityIdentifier sid, AceQualifier qualifier, int accessMask, AceFlags flags, bool saclSemantics,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
2424
ObjectAceFlags
ps_ObjectAceFlags = 0;
2431
ObjectAceFlags
as_ObjectAceFlags = 0;
2438
ObjectAceFlags
ms_ObjectAceFlags = 0;
2548
(((( ObjectAce) ace ).ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent ) != 0 ) &&
2549
(( ps_ObjectAceFlags &
ObjectAceFlags
.ObjectAceTypePresent ) == 0 ))
2648
internal void RemoveQualifiedAcesSpecific( SecurityIdentifier sid, AceQualifier qualifier, int accessMask, AceFlags flags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
2737
if (( ace is ObjectAce ) && ( objectFlags !=
ObjectAceFlags
.None ))
2750
else if (( ace is ObjectAce ) || ( objectFlags !=
ObjectAceFlags
.None ))
2975
AddQualifiedAce( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
2981
SetQualifiedAce( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
2986
return RemoveQualifiedAces(sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), true,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
2991
RemoveQualifiedAcesSpecific( sid, AceQualifier.SystemAudit, accessMask, GenericAce.AceFlagsFromAuditFlags( auditFlags ) | GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
2999
public void AddAudit( AuditFlags auditFlags, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3020
public void SetAudit( AuditFlags auditFlags, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3041
public bool RemoveAudit( AuditFlags auditFlags, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3061
public void RemoveAuditSpecific( AuditFlags auditFlags, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3132
AddQualifiedAce( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
3140
SetQualifiedAce( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
3147
return RemoveQualifiedAces( sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), false,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
3154
RemoveQualifiedAcesSpecific(sid, accessType == AccessControlType.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ),
ObjectAceFlags
.None, Guid.Empty, Guid.Empty );
3162
public void AddAccess( AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3185
public void SetAccess( AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3208
public bool RemoveAccess( AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
3230
public void RemoveAccessSpecific( AccessControlType accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
ObjectAceFlags
objectFlags, Guid objectType, Guid inheritedObjectType )
system\security\accesscontrol\directoryobjectsecurity.cs (8)
270
( rule.ObjectFlags !=
ObjectAceFlags
.None ))
304
_securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
313
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
345
_securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
354
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(AccessControlType.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
403
( rule.ObjectFlags !=
ObjectAceFlags
.None ))
435
_securityDescriptor.SystemAcl.RemoveAudit(AuditFlags.Failure | AuditFlags.Success, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
444
result = _securityDescriptor.SystemAcl.RemoveAudit(AuditFlags.Failure | AuditFlags.Success, sid, -1, InheritanceFlags.ContainerInherit, 0,
ObjectAceFlags
.None, Guid.Empty, Guid.Empty);
system\security\accesscontrol\rules.cs (10)
183
private readonly
ObjectAceFlags
_objectFlags =
ObjectAceFlags
.None;
195
_objectFlags |=
ObjectAceFlags
.ObjectAceTypePresent;
205
_objectFlags |=
ObjectAceFlags
.InheritedObjectAceTypePresent;
227
public
ObjectAceFlags
ObjectFlags
290
private readonly
ObjectAceFlags
_objectFlags =
ObjectAceFlags
.None;
303
_objectFlags |=
ObjectAceFlags
.ObjectAceTypePresent;
313
_objectFlags |=
ObjectAceFlags
.InheritedObjectAceTypePresent;
335
public
ObjectAceFlags
ObjectFlags