67 references to ControlFlags
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
808[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.AccessControl.ControlFlags))]
System.IO.FileSystem.AccessControl (2)
System\Security\AccessControl\DirectoryObjectSecurity.cs (2)
63if ((SecurityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0) 70if ((SecurityDescriptor.ControlFlags & ControlFlags.SystemAclPresent) != 0)
System.Security.AccessControl (64)
System\Security\AccessControl\CommonObjectSecurity.cs (4)
74if ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0) 81if ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclPresent) != 0) 245_securityDescriptor.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 372_securityDescriptor.AddControlFlags(ControlFlags.SystemAclPresent);
System\Security\AccessControl\NativeObjectSecurity.cs (2)
220if ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclProtected) != 0) 244if ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected) != 0)
System\Security\AccessControl\ObjectSecurity.cs (15)
46private const ControlFlags SACL_CONTROL_FLAGS = 47ControlFlags.SystemAclPresent | 48ControlFlags.SystemAclAutoInherited | 49ControlFlags.SystemAclProtected; 53private const ControlFlags DACL_CONTROL_FLAGS = 54ControlFlags.DiscretionaryAclPresent | 55ControlFlags.DiscretionaryAclAutoInherited | 56ControlFlags.DiscretionaryAclProtected; 71_securityDescriptor = new CommonSecurityDescriptor(isContainer, isDS, ControlFlags.None, null, null, null, dacl); 114_securityDescriptor.UpdateControlFlags(SACL_CONTROL_FLAGS, (ControlFlags)(newOne.ControlFlags & SACL_CONTROL_FLAGS)); 131ControlFlags daclFlag = (_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent); 134(ControlFlags)((newOne.ControlFlags | daclFlag) & DACL_CONTROL_FLAGS)); 454return ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected) != 0); 486return ((_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 && 287((ControlFlags & ControlFlags.RMControlValid) != 0)) ? (rsd.ResourceManagerControl) : (byte)0; 293unchecked { materializedControlFlags &= ~((int)ControlFlags.DiscretionaryAclPresent); } 356if ((ControlFlags & ControlFlags.SystemAclPresent) != 0 && 376if ((ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0 && 401private ControlFlags _flags; 424private void CreateFromParts(ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 442public RawSecurityDescriptor(ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 495ControlFlags flags; 510flags = (ControlFlags)((binaryForm[offset + 2] << 0) + (binaryForm[offset + 3] << 8)); 516if ((flags & ControlFlags.SelfRelative) == 0) 559if (((flags & ControlFlags.SystemAclPresent) != 0) && 575if (((flags & ControlFlags.DiscretionaryAclPresent) != 0) && 596if ((flags & ControlFlags.RMControlValid) != 0) 684public override ControlFlags ControlFlags 785public void SetFlags(ControlFlags flags) 792_flags = (flags | ControlFlags.SelfRelative); 813private void CreateFromParts(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, SystemAcl? systemAcl, DiscretionaryAcl? discretionaryAcl) 877ControlFlags actualFlags = flags | ControlFlags.DiscretionaryAclPresent; 885unchecked { actualFlags &= ~(ControlFlags.SystemAclPresent); } 889actualFlags |= (ControlFlags.SystemAclPresent); 903public CommonSecurityDescriptor(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, SystemAcl? systemAcl, DiscretionaryAcl? discretionaryAcl) 908private CommonSecurityDescriptor(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 983public override ControlFlags ControlFlags 1061AddControlFlags(ControlFlags.SystemAclPresent); 1066RemoveControlFlags(ControlFlags.SystemAclPresent); 1119AddControlFlags(ControlFlags.DiscretionaryAclPresent); 1141RemoveControlFlags(ControlFlags.SystemAclProtected); 1150AddControlFlags(ControlFlags.SystemAclProtected); 1158RemoveControlFlags(ControlFlags.DiscretionaryAclProtected); 1167AddControlFlags(ControlFlags.DiscretionaryAclProtected); 1192this.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 1198this.AddControlFlags(ControlFlags.SystemAclPresent); 1204internal void UpdateControlFlags(ControlFlags flagsToUpdate, ControlFlags newFlags) 1206ControlFlags finalFlags = newFlags | (_rawSd.ControlFlags & (~flagsToUpdate)); 1216internal void AddControlFlags(ControlFlags flags) 1221internal void RemoveControlFlags(ControlFlags flags) 1233return (_rawSd.ControlFlags & ControlFlags.SystemAclPresent) != 0; 1241return (_rawSd.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0;