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