147 references to AccessControlType
mscorlib (108)
system\security\accesscontrol\acl.cs (24)
1961
internal void CheckAccessType(
AccessControlType
accessType )
1963
if ( accessType !=
AccessControlType
.Allow &&
1964
accessType !=
AccessControlType
.Deny )
3127
public void AddAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags )
3132
AddQualifiedAce( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty );
3135
public void SetAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags )
3140
SetQualifiedAce( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty );
3143
public bool RemoveAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags )
3147
return RemoveQualifiedAces( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), false, ObjectAceFlags.None, Guid.Empty, Guid.Empty );
3150
public void RemoveAccessSpecific(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags )
3154
RemoveQualifiedAcesSpecific(sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), ObjectAceFlags.None, Guid.Empty, Guid.Empty );
3157
public void AddAccess(
AccessControlType
accessType, SecurityIdentifier sid, ObjectAccessRule rule)
3162
public void AddAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
3177
AddQualifiedAce( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), objectFlags, objectType, inheritedObjectType );
3180
public void SetAccess(
AccessControlType
accessType, SecurityIdentifier sid, ObjectAccessRule rule)
3185
public void SetAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
3200
SetQualifiedAce( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), objectFlags, objectType, inheritedObjectType);
3203
public bool RemoveAccess(
AccessControlType
accessType, SecurityIdentifier sid, ObjectAccessRule rule)
3208
public bool RemoveAccess(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
3222
return RemoveQualifiedAces(sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), false, objectFlags, objectType, inheritedObjectType );
3225
public void RemoveAccessSpecific(
AccessControlType
accessType, SecurityIdentifier sid, ObjectAccessRule rule)
3230
public void RemoveAccessSpecific(
AccessControlType
accessType, SecurityIdentifier sid, int accessMask, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, ObjectAceFlags objectFlags, Guid objectType, Guid inheritedObjectType )
3244
RemoveQualifiedAcesSpecific( sid, accessType ==
AccessControlType
.Allow ? AceQualifier.AccessAllowed : AceQualifier.AccessDenied, accessMask, GenericAce.AceFlagsFromInheritanceFlags( inheritanceFlags, propagationFlags ), objectFlags, objectType, inheritedObjectType );
3284
AccessControlType
.Allow,
system\security\accesscontrol\commonobjectsecurity.cs (19)
130
AccessControlType
type;
134
type =
AccessControlType
.Allow;
138
type =
AccessControlType
.Deny;
242
if ( rule.AccessControlType ==
AccessControlType
.Allow )
247
_securityDescriptor.DiscretionaryAcl.AddAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
251
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
255
_securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, -1, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, 0 );
256
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
260
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
264
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, -1, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, 0 );
274
_securityDescriptor.DiscretionaryAcl.RemoveAccessSpecific(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
283
else if ( rule.AccessControlType ==
AccessControlType
.Deny )
288
_securityDescriptor.DiscretionaryAcl.AddAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
292
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
296
_securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, -1, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, 0 );
297
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
301
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
305
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, -1, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, 0 );
315
_securityDescriptor.DiscretionaryAcl.RemoveAccessSpecific(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags );
system\security\accesscontrol\cryptokeysecurity.cs (7)
39
public CryptoKeyAccessRule (IdentityReference identity, CryptoKeyRights cryptoKeyRights,
AccessControlType
type)
48
public CryptoKeyAccessRule (string identity, CryptoKeyRights cryptoKeyRights,
AccessControlType
type)
58
InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
78
private static int AccessMaskFromRights (CryptoKeyRights cryptoKeyRights,
AccessControlType
controlType) {
79
if (controlType ==
AccessControlType
.Allow) {
82
else if (controlType ==
AccessControlType
.Deny) {
154
AccessControlType
type) {
system\security\accesscontrol\directoryobjectsecurity.cs (20)
191
AccessControlType
type;
195
type =
AccessControlType
.Allow;
199
type =
AccessControlType
.Deny;
291
if (rule.AccessControlType ==
AccessControlType
.Allow)
296
_securityDescriptor.DiscretionaryAcl.AddAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
300
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
304
_securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty);
305
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
309
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
313
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty);
323
_securityDescriptor.DiscretionaryAcl.RemoveAccessSpecific(
AccessControlType
.Allow, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
332
else if (rule.AccessControlType ==
AccessControlType
.Deny)
337
_securityDescriptor.DiscretionaryAcl.AddAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
341
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
345
_securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Allow, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty);
346
_securityDescriptor.DiscretionaryAcl.SetAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
350
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
354
result = _securityDescriptor.DiscretionaryAcl.RemoveAccess(
AccessControlType
.Deny, sid, -1, InheritanceFlags.ContainerInherit, 0, ObjectAceFlags.None, Guid.Empty, Guid.Empty);
364
_securityDescriptor.DiscretionaryAcl.RemoveAccessSpecific(
AccessControlType
.Deny, sid, rule.AccessMask, rule.InheritanceFlags, rule.PropagationFlags, rule.ObjectFlags, rule.ObjectType, rule.InheritedObjectType);
472
public virtual AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type, Guid objectType, Guid inheritedObjectType)
system\security\accesscontrol\eventwaithandlesecurity.cs (4)
52
public EventWaitHandleAccessRule(IdentityReference identity, EventWaitHandleRights eventRights,
AccessControlType
type)
57
public EventWaitHandleAccessRule(String identity, EventWaitHandleRights eventRights,
AccessControlType
type)
72
AccessControlType
type )
157
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
system\security\accesscontrol\filesecurity.cs (11)
82
AccessControlType
type )
96
AccessControlType
type )
116
AccessControlType
type )
132
AccessControlType
type )
154
AccessControlType
type )
183
internal static int AccessMaskFromRights( FileSystemRights fileSystemRights,
AccessControlType
controlType )
189
if (controlType ==
AccessControlType
.Allow) {
192
else if (controlType ==
AccessControlType
.Deny) {
388
AccessControlType
type )
528
FileSystemAccessRule.AccessMaskFromRights(rule.FileSystemRights,
AccessControlType
.Deny),
574
FileSystemAccessRule.AccessMaskFromRights(rule.FileSystemRights,
AccessControlType
.Deny),
system\security\accesscontrol\mutexsecurity.cs (4)
52
public MutexAccessRule(IdentityReference identity, MutexRights eventRights,
AccessControlType
type)
57
public MutexAccessRule(String identity, MutexRights eventRights,
AccessControlType
type)
72
AccessControlType
type )
157
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
system\security\accesscontrol\objectsecurity.cs (1)
743
public abstract AccessRule AccessRuleFactory( IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type );
system\security\accesscontrol\objectsecurityt.cs (6)
34
AccessControlType
type)
46
AccessControlType
type)
64
AccessControlType
type)
78
AccessControlType
type)
98
AccessControlType
type)
233
AccessControlType
type) {
system\security\accesscontrol\registrysecurity.cs (6)
61
public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights,
AccessControlType
type)
66
public RegistryAccessRule(String identity, RegistryRights registryRights,
AccessControlType
type)
71
public RegistryAccessRule(IdentityReference identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
76
public RegistryAccessRule(string identity, RegistryRights registryRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
91
AccessControlType
type )
183
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
system\security\accesscontrol\rules.cs (6)
123
private readonly
AccessControlType
_type;
135
AccessControlType
type )
138
if ( type !=
AccessControlType
.Allow &&
139
type !=
AccessControlType
.Deny )
168
public
AccessControlType
AccessControlType
189
protected ObjectAccessRule( IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType,
AccessControlType
type )
System (5)
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
120
sec.AddAccessRule(new MutexAccessRule(everyoneSid, MutexRights.Synchronize | MutexRights.Modify,
AccessControlType
.Allow));
sys\system\security\accesscontrol\semaphoresecurity.cs (4)
50
public SemaphoreAccessRule(IdentityReference identity, SemaphoreRights eventRights,
AccessControlType
type)
55
public SemaphoreAccessRule(String identity, SemaphoreRights eventRights,
AccessControlType
type)
70
AccessControlType
type )
152
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags,
AccessControlType
type)
System.Core (9)
System\IO\Pipes\PipeSecurity.cs (9)
85
AccessControlType
type)
96
AccessControlType
type)
112
AccessControlType
type)
141
internal static int AccessMaskFromRights(PipeAccessRights rights,
AccessControlType
controlType) {
145
if (controlType ==
AccessControlType
.Allow) {
148
else if (controlType ==
AccessControlType
.Deny) {
288
PipeAccessRule.AccessMaskFromRights(rule.PipeAccessRights,
AccessControlType
.Deny),
324
PipeAccessRule.AccessMaskFromRights(rule.PipeAccessRights,
AccessControlType
.Deny),
355
PropagationFlags propagationFlags,
AccessControlType
type) {
System.Runtime.Remoting (3)
channels\ipc\ipcport.cs (3)
56
dacl.AddAccess(
AccessControlType
.Deny, sid, -1, InheritanceFlags.None, PropagationFlags.None);
58
dacl.AddAccess(
AccessControlType
.Allow, userSid, -1, InheritanceFlags.None, PropagationFlags.None);
60
dacl.AddAccess(
AccessControlType
.Allow, WindowsIdentity.GetCurrent().User, -1, InheritanceFlags.None, PropagationFlags.None);
System.ServiceModel (8)
System\ServiceModel\Activation\Utility.cs (2)
288
dacl.AddAccess(
AccessControlType
.Allow, account, right, InheritanceFlags.None, PropagationFlags.None);
292
dacl.RemoveAccess(
AccessControlType
.Allow, account, right, InheritanceFlags.None, PropagationFlags.None);
System\ServiceModel\Channels\PipeConnection.cs (5)
2426
dacl.AddAccess(
AccessControlType
.Deny, new SecurityIdentifier(WellKnownSidType.NetworkSid, null),
2434
dacl.AddAccess(
AccessControlType
.Allow, new SecurityIdentifier(WellKnownSidType.WorldSid, null),
2442
dacl.AddAccess(
AccessControlType
.Allow, allowedSid,
2447
dacl.AddAccess(
AccessControlType
.Allow, GetProcessLogonSid(), accessRights, InheritanceFlags.None, PropagationFlags.None);
2455
AccessControlType
.Allow,
System\ServiceModel\Channels\SharedConnectionListener.cs (1)
385
handleSecurity.AddAccessRule(new EventWaitHandleAccessRule(listenerUniqueSid, EventWaitHandleRights.Modify,
AccessControlType
.Allow));
WsatConfig (7)
Configuration\ClusterRegistryConfigurationProvider.cs (2)
337
dacl.AddAccess(
AccessControlType
.Allow, new SecurityIdentifier(WellKnownSidType.AuthenticatedUserSid, null),
339
dacl.AddAccess(
AccessControlType
.Allow, new SecurityIdentifier(WellKnownSidType.NetworkServiceSid, null),
Configuration\StdRegProviderWrapper.cs (2)
351
AccessControlType
.Allow);
360
AccessControlType
.Allow);
Configuration\WsatConfiguration.cs (3)
666
if (keyAccessRule.AccessControlType ==
AccessControlType
.Allow &&
674
AccessControlType
.Allow);
718
AccessControlType
.Allow);
WsatUI (7)
Configuration\ClusterRegistryConfigurationProvider.cs (2)
337
dacl.AddAccess(
AccessControlType
.Allow, new SecurityIdentifier(WellKnownSidType.AuthenticatedUserSid, null),
339
dacl.AddAccess(
AccessControlType
.Allow, new SecurityIdentifier(WellKnownSidType.NetworkServiceSid, null),
Configuration\StdRegProviderWrapper.cs (2)
351
AccessControlType
.Allow);
360
AccessControlType
.Allow);
Configuration\WsatConfiguration.cs (3)
666
if (keyAccessRule.AccessControlType ==
AccessControlType
.Allow &&
674
AccessControlType
.Allow);
718
AccessControlType
.Allow);