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)
62if ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0) 69if ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclPresent) != 0) 221_securityDescriptor.AddControlFlags(ControlFlags.DiscretionaryAclPresent); 345_securityDescriptor.AddControlFlags(ControlFlags.SystemAclPresent);
System\Security\AccessControl\NativeObjectSecurity.cs (2)
194if ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclProtected) != 0) 218if ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected) != 0)
System\Security\AccessControl\ObjectSecurity.cs (15)
34private const ControlFlags SACL_CONTROL_FLAGS = 35ControlFlags.SystemAclPresent | 36ControlFlags.SystemAclAutoInherited | 37ControlFlags.SystemAclProtected; 41private const ControlFlags DACL_CONTROL_FLAGS = 42ControlFlags.DiscretionaryAclPresent | 43ControlFlags.DiscretionaryAclAutoInherited | 44ControlFlags.DiscretionaryAclProtected; 55_securityDescriptor = new CommonSecurityDescriptor(isContainer, isDS, ControlFlags.None, null, null, null, dacl); 94_securityDescriptor.UpdateControlFlags(SACL_CONTROL_FLAGS, (ControlFlags)(newOne.ControlFlags & SACL_CONTROL_FLAGS)); 111ControlFlags daclFlag = (_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclPresent); 114(ControlFlags)((newOne.ControlFlags | daclFlag) & DACL_CONTROL_FLAGS)); 412return ((_securityDescriptor.ControlFlags & ControlFlags.DiscretionaryAclProtected) != 0); 444return ((_securityDescriptor.ControlFlags & ControlFlags.SystemAclProtected) != 0);
System\Security\AccessControl\SecurityDescriptor.cs (43)
105public abstract ControlFlags ControlFlags { get; } 131if ((ControlFlags & ControlFlags.SystemAclPresent) != 0 && 137if ((ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0 && 218((ControlFlags & ControlFlags.RMControlValid) != 0)) ? (rsd.ResourceManagerControl) : (byte)0; 224unchecked { materializedControlFlags &= ~((int)ControlFlags.DiscretionaryAclPresent); } 269if ((ControlFlags & ControlFlags.SystemAclPresent) != 0 && 283if ((ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0 && 301private ControlFlags _flags; 316private void CreateFromParts(ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 327public RawSecurityDescriptor(ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 364ControlFlags flags; 373flags = (ControlFlags)((binaryForm[offset + 2] << 0) + (binaryForm[offset + 3] << 8)); 376if ((flags & ControlFlags.SelfRelative) == 0) 410if (((flags & ControlFlags.SystemAclPresent) != 0) && 423if (((flags & ControlFlags.DiscretionaryAclPresent) != 0) && 438if ((flags & ControlFlags.RMControlValid) != 0) 510public override ControlFlags ControlFlags 591public void SetFlags(ControlFlags flags) 595_flags = (flags | ControlFlags.SelfRelative); 608private void CreateFromParts(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, SystemAcl? systemAcl, DiscretionaryAcl? discretionaryAcl) 663ControlFlags actualFlags = flags | ControlFlags.DiscretionaryAclPresent; 668unchecked { actualFlags &= ~(ControlFlags.SystemAclPresent); } 672actualFlags |= (ControlFlags.SystemAclPresent); 679public CommonSecurityDescriptor(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, SystemAcl? systemAcl, DiscretionaryAcl? discretionaryAcl) 684private CommonSecurityDescriptor(bool isContainer, bool isDS, ControlFlags flags, SecurityIdentifier? owner, SecurityIdentifier? group, RawAcl? systemAcl, RawAcl? discretionaryAcl) 741public override ControlFlags ControlFlags 812AddControlFlags(ControlFlags.SystemAclPresent); 817RemoveControlFlags(ControlFlags.SystemAclPresent); 864AddControlFlags(ControlFlags.DiscretionaryAclPresent); 882RemoveControlFlags(ControlFlags.SystemAclProtected); 891AddControlFlags(ControlFlags.SystemAclProtected); 899RemoveControlFlags(ControlFlags.DiscretionaryAclProtected); 908AddControlFlags(ControlFlags.DiscretionaryAclProtected); 933AddControlFlags(ControlFlags.DiscretionaryAclPresent); 939AddControlFlags(ControlFlags.SystemAclPresent); 942internal void UpdateControlFlags(ControlFlags flagsToUpdate, ControlFlags newFlags) 944ControlFlags finalFlags = newFlags | (_rawSd.ControlFlags & (~flagsToUpdate)); 951internal void AddControlFlags(ControlFlags flags) 956internal void RemoveControlFlags(ControlFlags flags) 968return (_rawSd.ControlFlags & ControlFlags.SystemAclPresent) != 0; 976return (_rawSd.ControlFlags & ControlFlags.DiscretionaryAclPresent) != 0;