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