73 references to ControlFlags
mscorlib (68)
system\security\accesscontrol\commonobjectsecurity.cs (4)
62if (( _securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent ) != 0) 69if (( _securityDescriptor.ControlFlags & ControlFlags.SystemAclPresent ) != 0) 237_securityDescriptor.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 368_securityDescriptor.AddControlFlags(ControlFlags.SystemAclPresent);
system\security\accesscontrol\directoryobjectsecurity.cs (4)
60if ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0) 67if ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclPresent) != 0) 267_securityDescriptor.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 400_securityDescriptor.AddControlFlags(ControlFlags.SystemAclPresent);
system\security\accesscontrol\nativeobjectsecurity.cs (2)
223if (( _securityDescriptor.ControlFlags & ControlFlags.SystemAclProtected ) != 0 ) 247if (( _securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected ) != 0 )
system\security\accesscontrol\objectsecurity.cs (15)
54static private readonly ControlFlags SACL_CONTROL_FLAGS = 55ControlFlags.SystemAclPresent | 56ControlFlags.SystemAclAutoInherited | 57ControlFlags.SystemAclProtected; 61static private readonly ControlFlags DACL_CONTROL_FLAGS = 62ControlFlags.DiscretionaryAclPresent | 63ControlFlags.DiscretionaryAclAutoInherited | 64ControlFlags.DiscretionaryAclProtected; 79_securityDescriptor = new CommonSecurityDescriptor( isContainer, isDS, ControlFlags.None, null, null, null, dacl ); 126_securityDescriptor.UpdateControlFlags(SACL_CONTROL_FLAGS, (ControlFlags)(newOne.ControlFlags & SACL_CONTROL_FLAGS)); 143ControlFlags daclFlag = (_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent); 146(ControlFlags)((newOne.ControlFlags | daclFlag) & DACL_CONTROL_FLAGS)); 491return (( _securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected ) != 0 ); 523return (( _securityDescriptor.ControlFlags & ControlFlags.SystemAclProtected ) != 0 );
system\security\accesscontrol\securitydescriptor.cs (43)
146public abstract ControlFlags ControlFlags { get; } 181if (( ControlFlags & ControlFlags.SystemAclPresent ) != 0 && 187if (( ControlFlags & ControlFlags.DiscretionaryAclPresent ) != 0 && 298(( ControlFlags & ControlFlags.RMControlValid ) != 0 )) ? (( this as RawSecurityDescriptor ).ResourceManagerControl ) : ( byte )0; 304unchecked {materializedControlFlags &= ~((int)ControlFlags.DiscretionaryAclPresent);} 367if (( ControlFlags & ControlFlags.SystemAclPresent ) != 0 && 387if (( ControlFlags & ControlFlags.DiscretionaryAclPresent ) != 0 && 414private ControlFlags _flags; 437private void CreateFromParts( ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, RawAcl systemAcl, RawAcl discretionaryAcl ) 455public RawSecurityDescriptor( ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, RawAcl systemAcl, RawAcl discretionaryAcl ) 521ControlFlags flags; 536flags = ( ControlFlags )(( binaryForm[offset + 2] << 0 ) + ( binaryForm[offset + 3] << 8 )); 542if (( flags & ControlFlags.SelfRelative ) == 0 ) 585if ((( flags & ControlFlags.SystemAclPresent ) != 0 ) && 601if ((( flags & ControlFlags.DiscretionaryAclPresent ) != 0 ) && 622if (( flags & ControlFlags.RMControlValid ) != 0 ) 716public override ControlFlags ControlFlags 817public void SetFlags( ControlFlags flags ) 824_flags = ( flags | ControlFlags.SelfRelative ); 846private void CreateFromParts( bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, SystemAcl systemAcl, DiscretionaryAcl discretionaryAcl ) 913ControlFlags actualFlags = flags | ControlFlags.DiscretionaryAclPresent; 921unchecked { actualFlags &= ~(ControlFlags.SystemAclPresent); } 925actualFlags |= (ControlFlags.SystemAclPresent); 939public CommonSecurityDescriptor( bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, SystemAcl systemAcl, DiscretionaryAcl discretionaryAcl ) 944private CommonSecurityDescriptor( bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier owner, SecurityIdentifier group, RawAcl systemAcl, RawAcl discretionaryAcl ) 1023public override ControlFlags ControlFlags 1101AddControlFlags( ControlFlags.SystemAclPresent ); 1106RemoveControlFlags( ControlFlags.SystemAclPresent ); 1159AddControlFlags( ControlFlags.DiscretionaryAclPresent ); 1181RemoveControlFlags( ControlFlags.SystemAclProtected ); 1190AddControlFlags( ControlFlags.SystemAclProtected ); 1198RemoveControlFlags( ControlFlags.DiscretionaryAclProtected ); 1207AddControlFlags( ControlFlags.DiscretionaryAclProtected ); 1246this.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 1252this.AddControlFlags(ControlFlags.SystemAclPresent); 1258internal void UpdateControlFlags(ControlFlags flagsToUpdate, ControlFlags newFlags) 1260ControlFlags finalFlags = newFlags | (_rawSd.ControlFlags & (~flagsToUpdate)); 1270internal void AddControlFlags(ControlFlags flags) 1275internal void RemoveControlFlags(ControlFlags flags) 1287return (_rawSd.ControlFlags & ControlFlags.SystemAclPresent) != 0; 1295return (_rawSd.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0;
System.Runtime.Remoting (3)
channels\ipc\ipcport.cs (3)
62return new CommonSecurityDescriptor(false, false, ControlFlags.OwnerDefaulted | ControlFlags.GroupDefaulted | ControlFlags.DiscretionaryAclPresent, null, null, null, dacl);;
System.ServiceModel (2)
System\ServiceModel\Channels\PipeConnection.cs (1)
2463new CommonSecurityDescriptor(false, false, ControlFlags.None, null, null, null, dacl);
System\ServiceModel\ComIntegration\ComPlusAuthorization.cs (1)
259securityDescriptor = new CommonSecurityDescriptor(true, false, ControlFlags.DiscretionaryAclPresent, sidAdministrators, sidAdministrators, null, dacl);