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