133 references to AceFlags
mscorlib (129)
system\security\accesscontrol\ace.cs (37)
82
private
AceFlags
_flags;
157
internal GenericAce( AceType type,
AceFlags
flags )
176
internal static
AceFlags
AceFlagsFromAuditFlags( AuditFlags auditFlags )
178
AceFlags
flags =
AceFlags
.None;
182
flags |=
AceFlags
.SuccessfulAccess;
187
flags |=
AceFlags
.FailedAccess;
190
if ( flags ==
AceFlags
.None )
204
internal static
AceFlags
AceFlagsFromInheritanceFlags( InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags )
206
AceFlags
flags =
AceFlags
.None;
210
flags |=
AceFlags
.ContainerInherit;
215
flags |=
AceFlags
.ObjectInherit;
226
flags |=
AceFlags
.NoPropagateInherit;
231
flags |=
AceFlags
.InheritOnly; // ContainerInherit already turned on above
312
AceFlags
flags = (
AceFlags
)binaryForm[offset + 1];
340
AceFlags
flags = (
AceFlags
)binaryForm[offset + 1];
356
AceFlags
flags = (
AceFlags
)binaryForm[offset + 1];
366
AceFlags
flags = (
AceFlags
)binaryForm[offset + 1];
437
public
AceFlags
AceFlags
454
return (( this.AceFlags &
AceFlags
.Inherited ) != 0 );
464
if (( this.AceFlags &
AceFlags
.ContainerInherit ) != 0 )
469
if (( this.AceFlags &
AceFlags
.ObjectInherit ) != 0 )
484
if (( this.AceFlags &
AceFlags
.InheritOnly ) != 0 )
489
if (( this.AceFlags &
AceFlags
.NoPropagateInherit ) != 0 )
504
if (( this.AceFlags &
AceFlags
.SuccessfulAccess ) != 0 )
509
if (( this.AceFlags &
AceFlags
.FailedAccess ) != 0 )
685
internal KnownAce( AceType type,
AceFlags
flags, int accessMask, SecurityIdentifier securityIdentifier )
784
public CustomAce( AceType type,
AceFlags
flags, byte[] opaque )
943
public CompoundAce(
AceFlags
flags, int accessMask, CompoundAceType compoundAceType, SecurityIdentifier sid )
1214
internal QualifiedAce( AceType type,
AceFlags
flags, int accessMask, SecurityIdentifier sid, byte[] opaque )
1387
public CommonAce(
AceFlags
flags, AceQualifier qualifier, int accessMask, SecurityIdentifier sid, bool isCallback, byte[] opaque )
1762
public ObjectAce(
AceFlags
aceFlags, AceQualifier qualifier, int accessMask, SecurityIdentifier sid, ObjectAceFlags flags, Guid type, Guid inheritedType, bool isCallback, byte[] opaque )
system\security\accesscontrol\acl.cs (88)
694
private static AF AFFromAceFlags(
AceFlags
aceFlags, bool isDS )
698
if (( aceFlags &
AceFlags
.ContainerInherit ) != 0)
707
if (( !isDS ) && (( aceFlags &
AceFlags
.ObjectInherit ) != 0 ))
712
if (( aceFlags &
AceFlags
.InheritOnly ) != 0 )
717
if (( aceFlags &
AceFlags
.NoPropagateInherit ) != 0 )
729
private static
AceFlags
AceFlagsFromAF( AF af, bool isDS )
731
AceFlags
aceFlags = 0;
735
aceFlags |=
AceFlags
.ContainerInherit;
744
aceFlags |=
AceFlags
.ObjectInherit;
749
aceFlags |=
AceFlags
.InheritOnly;
754
aceFlags |=
AceFlags
.NoPropagateInherit;
764
private static bool MergeInheritanceBits(
AceFlags
left,
AceFlags
right, bool isDS, out
AceFlags
result )
793
private static bool RemoveInheritanceBits(
AceFlags
existing,
AceFlags
remove, bool isDS, out
AceFlags
result, out bool total )
891
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
948
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
1078
const
AceFlags
AuditFlags =
1079
AceFlags
.SuccessfulAccess |
1080
AceFlags
.FailedAccess;
1082
const
AceFlags
InheritFlags =
1083
AceFlags
.ObjectInherit |
1084
AceFlags
.ContainerInherit |
1085
AceFlags
.NoPropagateInherit |
1086
AceFlags
.InheritOnly;
1113
if (( ace.AceFlags &
AceFlags
.InheritOnly ) != 0 )
1130
if ((( ace.AceFlags &
AceFlags
.InheritOnly ) != 0 ) &&
1131
(( ace.AceFlags &
AceFlags
.ContainerInherit ) == 0 ) &&
1132
(( ace.AceFlags &
AceFlags
.ObjectInherit ) == 0 ))
1141
if ((( ace.AceFlags &
AceFlags
.NoPropagateInherit ) != 0 ) &&
1142
(( ace.AceFlags &
AceFlags
.ContainerInherit ) == 0 ) &&
1143
(( ace.AceFlags &
AceFlags
.ObjectInherit ) == 0 ))
1145
unchecked { ace.AceFlags &= ~
AceFlags
.NoPropagateInherit; }
1271
private void GetObjectTypesForSplit( ObjectAce originalAce, int accessMask,
AceFlags
aceFlags, out ObjectAceFlags objectFlags, out Guid objectType, out Guid inheritedObjectType )
1291
if (( aceFlags &
AceFlags
.ContainerInherit ) != 0 )
1429
private bool GetInheritanceFlagsForRemoval( QualifiedAce ace, ObjectAceFlags objectFlags, Guid inheritedObjectType, ref
AceFlags
aceFlags )
1431
if ((( ace.AceFlags &
AceFlags
.ContainerInherit ) != 0 ) && (( aceFlags &
AceFlags
.ContainerInherit ) != 0 ))
1470
aceFlags &= ~
AceFlags
.InheritanceFlags;
1526
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
1531
if (( newAce.AceFlags &
AceFlags
.Inherited ) != 0 )
1616
if ((( ace.AceFlags &
AceFlags
.InheritanceFlags ) == ( newAce.AceFlags &
AceFlags
.InheritanceFlags )) &&
1625
ace.AceFlags |= ( newAce.AceFlags &
AceFlags
.AuditFlags );
1631
ace.AceFlags |= ( newAce.AceFlags &
AceFlags
.AuditFlags );
1642
if ((( ace.AceFlags &
AceFlags
.AuditFlags ) == ( newAce.AceFlags &
AceFlags
.AuditFlags )) &&
1645
AceFlags
merged;
1660
ace.AceFlags = ( merged | ( ace.AceFlags &
AceFlags
.AuditFlags ));
1669
ace.AceFlags = ( merged | ( ace.AceFlags &
AceFlags
.AuditFlags ));
1711
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
1798
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
2008
internal void AddQualifiedAce( SecurityIdentifier sid, AceQualifier qualifier, int accessMask,
AceFlags
flags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
2021
(( flags &
AceFlags
.AuditFlags ) == 0 ))
2092
internal void SetQualifiedAce( SecurityIdentifier sid, AceQualifier qualifier, int accessMask,
AceFlags
flags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
2100
(( flags &
AceFlags
.AuditFlags ) == 0 ))
2153
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
2203
internal bool RemoveQualifiedAces( SecurityIdentifier sid, AceQualifier qualifier, int accessMask,
AceFlags
flags, bool saclSemantics, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
2213
(( flags &
AceFlags
.AuditFlags ) == 0 ))
2243
AceFlags
originalFlags = flags;
2276
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
2334
if (((( ace.AceFlags &
AceFlags
.ContainerInherit ) == 0 ) && (( flags &
AceFlags
.ContainerInherit ) != 0 ) && (( flags &
AceFlags
.InheritOnly ) != 0 )) ||
2335
((( flags &
AceFlags
.ContainerInherit ) == 0 ) && (( ace.AceFlags &
AceFlags
.ContainerInherit ) != 0 ) && (( ace.AceFlags &
AceFlags
.InheritOnly ) != 0)))
2345
if ((( originalFlags &
AceFlags
.ContainerInherit ) != 0 ) && (( originalFlags &
AceFlags
.InheritOnly ) != 0 ) && (( flags &
AceFlags
.ContainerInherit ) == 0 ))
2374
(( ace.AceFlags & flags &
AceFlags
.AuditFlags ) == 0 ))
2422
AceFlags
ps_AceFlags = 0;
2429
AceFlags
as_AceFlags = 0;
2436
AceFlags
ms_AceFlags = 0;
2443
AceFlags
mergeResultFlags = 0;
2473
unchecked { as_AceFlags = ace.AceFlags & ~( flags &
AceFlags
.AuditFlags ); }
2495
ms_AceFlags = ( ace.AceFlags &
AceFlags
.InheritanceFlags ) | ( flags & ace.AceFlags &
AceFlags
.AuditFlags );
2507
(( ms_AceFlags &
AceFlags
.AuditFlags ) != 0 ))
2517
mergeResultFlags |= ( ms_AceFlags &
AceFlags
.AuditFlags );
2582
if ( saclSemantics && (( as_AceFlags &
AceFlags
.AuditFlags ) != 0 ))
2648
internal void RemoveQualifiedAcesSpecific( SecurityIdentifier sid, AceQualifier qualifier, int accessMask,
AceFlags
flags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
2658
(( flags &
AceFlags
.AuditFlags ) == 0 ))
2689
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
2875
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
2909
if (( ace.AceFlags &
AceFlags
.Inherited ) != 0 )
system\security\accesscontrol\commonobjectsecurity.cs (2)
200
(( ace.AceFlags &
AceFlags
.Inherited ) == 0 )) ||
202
(( ace.AceFlags &
AceFlags
.Inherited ) != 0 )))
system\security\accesscontrol\directoryobjectsecurity.cs (2)
185
if ((includeExplicit && ((ace.AceFlags &
AceFlags
.Inherited) == 0)) || (includeInherited && ((ace.AceFlags &
AceFlags
.Inherited) != 0)))
System.ServiceModel (3)
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (3)
231
ace = new CommonAce(
AceFlags
.None, AceQualifier.AccessAllowed, (int)ComRights.EXECUTE, sid, false, null);
242
ace = new CommonAce(
AceFlags
.None, AceQualifier.AccessAllowed, (int)ComRights.EXECUTE, sid, false, null);
253
ace = new CommonAce(
AceFlags
.None, AceQualifier.AccessAllowed, (int)ComRights.EXECUTE, sid, false, null);
System.Workflow.Runtime (1)
DebugEngine\DebugController.cs (1)
109
CommonAce adminsGroupAceForToken = new CommonAce(
AceFlags
.None, AceQualifier.AccessAllowed, NativeMethods.TOKEN_QUERY, new SecurityIdentifier(WellKnownSidType.BuiltinAdministratorsSid, null), false, null);