180 references to AccessControlSections
mscorlib (145)
microsoft\win32\registrykey.cs (4)
1636
return GetAccessControl(
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
1640
public RegistrySecurity GetAccessControl(
AccessControlSections
includeSections) {
system\io\directory.cs (4)
567
return new DirectorySecurity(path,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
572
public static DirectorySecurity GetAccessControl(String path,
AccessControlSections
includeSections)
system\io\directoryinfo.cs (4)
310
return Directory.GetAccessControl(FullPath,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
315
public DirectorySecurity GetAccessControl(
AccessControlSections
includeSections)
system\io\file.cs (4)
723
return GetAccessControl(path,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
728
public static FileSecurity GetAccessControl(String path,
AccessControlSections
includeSections)
system\io\fileinfo.cs (4)
232
return File.GetAccessControl(FullPath,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
237
public FileSecurity GetAccessControl(
AccessControlSections
includeSections)
system\io\filestream.cs (3)
1255
return new FileSecurity(_handle, _fileName,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
system\security\accesscontrol\cryptokeysecurity.cs (7)
234
internal
AccessControlSections
ChangedAccessControlSections {
237
AccessControlSections
changedSections =
AccessControlSections
.None;
251
changedSections |=
AccessControlSections
.Access;
253
changedSections |=
AccessControlSections
.Audit;
255
changedSections |=
AccessControlSections
.Group;
257
changedSections |=
AccessControlSections
.Owner;
system\security\accesscontrol\eventwaithandlesecurity.cs (11)
122
internal EventWaitHandleSecurity(String name,
AccessControlSections
includeSections)
129
internal EventWaitHandleSecurity(SafeWaitHandle handle,
AccessControlSections
includeSections)
167
internal
AccessControlSections
GetAccessControlSectionsFromChanges()
169
AccessControlSections
persistRules =
AccessControlSections
.None;
171
persistRules =
AccessControlSections
.Access;
173
persistRules |=
AccessControlSections
.Audit;
175
persistRules |=
AccessControlSections
.Owner;
177
persistRules |=
AccessControlSections
.Group;
192
AccessControlSections
persistSections = GetAccessControlSectionsFromChanges();
194
if (persistSections ==
AccessControlSections
.None)
system\security\accesscontrol\filesecurity.cs (14)
332
internal FileSystemSecurity( bool isContainer, String name,
AccessControlSections
includeSections, bool isDirectory )
338
internal FileSystemSecurity( bool isContainer, SafeFileHandle handle,
AccessControlSections
includeSections, bool isDirectory )
420
internal
AccessControlSections
GetAccessControlSectionsFromChanges()
422
AccessControlSections
persistRules =
AccessControlSections
.None;
424
persistRules =
AccessControlSections
.Access;
426
persistRules |=
AccessControlSections
.Audit;
428
persistRules |=
AccessControlSections
.Owner;
430
persistRules |=
AccessControlSections
.Group;
446
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
469
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
640
public FileSecurity(string fileName,
AccessControlSections
includeSections)
655
internal FileSecurity(SafeFileHandle handle, string fullPath,
AccessControlSections
includeSections)
677
public DirectorySecurity(string name,
AccessControlSections
includeSections)
system\security\accesscontrol\mutexsecurity.cs (11)
122
public MutexSecurity(String name,
AccessControlSections
includeSections)
129
internal MutexSecurity(SafeWaitHandle handle,
AccessControlSections
includeSections)
167
internal
AccessControlSections
GetAccessControlSectionsFromChanges()
169
AccessControlSections
persistRules =
AccessControlSections
.None;
171
persistRules =
AccessControlSections
.Access;
173
persistRules |=
AccessControlSections
.Audit;
175
persistRules |=
AccessControlSections
.Owner;
177
persistRules |=
AccessControlSections
.Group;
190
AccessControlSections
persistSections = GetAccessControlSectionsFromChanges();
191
if (persistSections ==
AccessControlSections
.None)
system\security\accesscontrol\nativeobjectsecurity.cs (14)
80
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType, string name,
AccessControlSections
includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext )
85
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType, string name,
AccessControlSections
includeSections )
91
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType, SafeHandle handle,
AccessControlSections
includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext )
97
protected NativeObjectSecurity( bool isContainer, ResourceType resourceType, SafeHandle handle,
AccessControlSections
includeSections )
107
private static CommonSecurityDescriptor CreateInternal( ResourceType resourceType, bool isContainer, string name, SafeHandle handle,
AccessControlSections
includeSections, bool createByName, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext )
184
private void Persist( string name, SafeHandle handle,
AccessControlSections
includeSections, object exceptionContext )
197
if (( includeSections &
AccessControlSections
.Owner ) != 0 && _securityDescriptor.Owner != null )
203
if (( includeSections &
AccessControlSections
.Group ) != 0 && _securityDescriptor.Group != null )
209
if (( includeSections &
AccessControlSections
.Audit ) != 0 )
233
if (( includeSections &
AccessControlSections
.Access ) != 0 && _securityDescriptor.IsDiscretionaryAclPresent )
348
protected sealed override void Persist( string name,
AccessControlSections
includeSections )
356
protected void Persist( string name,
AccessControlSections
includeSections, object exceptionContext )
374
protected sealed override void Persist( SafeHandle handle,
AccessControlSections
includeSections )
382
protected void Persist( SafeHandle handle,
AccessControlSections
includeSections, object exceptionContext )
system\security\accesscontrol\objectsecurity.cs (15)
98
private void UpdateWithNewSecurityDescriptor( RawSecurityDescriptor newOne,
AccessControlSections
includeSections )
102
if (( includeSections &
AccessControlSections
.Owner ) != 0 )
108
if (( includeSections &
AccessControlSections
.Group ) != 0 )
114
if (( includeSections &
AccessControlSections
.Audit ) != 0 )
129
if (( includeSections &
AccessControlSections
.Access ) != 0 )
282
protected virtual void Persist( string name,
AccessControlSections
includeSections )
296
protected virtual void Persist(bool enableOwnershipPrivilege, string name,
AccessControlSections
includeSections )
344
protected virtual void Persist( SafeHandle handle,
AccessControlSections
includeSections )
586
public string GetSecurityDescriptorSddlForm(
AccessControlSections
includeSections )
602
SetSecurityDescriptorSddlForm( sddlForm,
AccessControlSections
.All );
605
public void SetSecurityDescriptorSddlForm( string sddlForm,
AccessControlSections
includeSections )
612
if (( includeSections &
AccessControlSections
.All ) == 0 )
652
SetSecurityDescriptorBinaryForm( binaryForm,
AccessControlSections
.All );
655
public void SetSecurityDescriptorBinaryForm( byte[] binaryForm,
AccessControlSections
includeSections )
662
if (( includeSections &
AccessControlSections
.All ) == 0 )
system\security\accesscontrol\objectsecurityt.cs (13)
210
protected ObjectSecurity(bool isContainer, ResourceType resourceType, string name,
AccessControlSections
includeSections)
213
protected ObjectSecurity(bool isContainer, ResourceType resourceType, string name,
AccessControlSections
includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
217
protected ObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle safeHandle,
AccessControlSections
includeSections)
221
protected ObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle safeHandle,
AccessControlSections
includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
262
private
AccessControlSections
GetAccessControlSectionsFromChanges() {
263
AccessControlSections
persistRules =
AccessControlSections
.None;
265
persistRules =
AccessControlSections
.Access;
268
persistRules |=
AccessControlSections
.Audit;
271
persistRules |=
AccessControlSections
.Owner;
274
persistRules |=
AccessControlSections
.Group;
293
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
310
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
system\security\accesscontrol\registrysecurity.cs (10)
152
internal RegistrySecurity(SafeRegistryHandle hKey, String name,
AccessControlSections
includeSections)
193
internal
AccessControlSections
GetAccessControlSectionsFromChanges()
195
AccessControlSections
persistRules =
AccessControlSections
.None;
197
persistRules =
AccessControlSections
.Access;
199
persistRules |=
AccessControlSections
.Audit;
201
persistRules |=
AccessControlSections
.Owner;
203
persistRules |=
AccessControlSections
.Group;
246
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
247
if (persistRules ==
AccessControlSections
.None)
system\security\accesscontrol\securitydescriptor.cs (5)
206
public string GetSddlForm(
AccessControlSections
includeSections )
216
if (( includeSections &
AccessControlSections
.Owner ) != 0 )
221
if (( includeSections &
AccessControlSections
.Group ) != 0 )
226
if (( includeSections &
AccessControlSections
.Audit ) != 0 )
231
if (( includeSections &
AccessControlSections
.Access ) != 0 )
system\security\accesscontrol\win32.cs (5)
83
AccessControlSections
accessControlSections,
102
if (( accessControlSections &
AccessControlSections
.Owner ) != 0 )
107
if (( accessControlSections &
AccessControlSections
.Group ) != 0 )
112
if (( accessControlSections &
AccessControlSections
.Access ) != 0 )
117
if (( accessControlSections &
AccessControlSections
.Audit ) != 0 )
system\security\cryptography\icspasymmetricalgorithm.cs (1)
200
return Utils.GetKeySetSecurityInfo(safeProvHandle,
AccessControlSections
.All);
system\security\cryptography\utils.cs (10)
238
internal static CryptoKeySecurity GetKeySetSecurityInfo (SafeProvHandle hProv,
AccessControlSections
accessControlSections) {
242
if ((accessControlSections &
AccessControlSections
.Owner) != 0)
244
if ((accessControlSections &
AccessControlSections
.Group) != 0)
246
if ((accessControlSections &
AccessControlSections
.Access) != 0)
254
if ((accessControlSections &
AccessControlSections
.Audit) != 0) {
287
internal static void SetKeySetSecurityInfo (SafeProvHandle hProv, CryptoKeySecurity cryptoKeySecurity,
AccessControlSections
accessControlSections) {
291
if ((accessControlSections &
AccessControlSections
.Owner) != 0 && cryptoKeySecurity._securityDescriptor.Owner != null)
293
if ((accessControlSections &
AccessControlSections
.Group) != 0 && cryptoKeySecurity._securityDescriptor.Group != null)
295
if ((accessControlSections &
AccessControlSections
.Audit) != 0)
297
if ((accessControlSections &
AccessControlSections
.Access) != 0 && cryptoKeySecurity._securityDescriptor.IsDiscretionaryAclPresent)
system\threading\eventwaithandle.cs (3)
287
return new EventWaitHandleSecurity(safeWaitHandle,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
system\threading\mutex.cs (3)
502
return new MutexSecurity(safeWaitHandle,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
System (14)
sys\system\security\accesscontrol\semaphoresecurity.cs (11)
119
public SemaphoreSecurity(String name,
AccessControlSections
includeSections)
125
internal SemaphoreSecurity(SafeWaitHandle handle,
AccessControlSections
includeSections)
162
internal
AccessControlSections
GetAccessControlSectionsFromChanges()
164
AccessControlSections
persistRules =
AccessControlSections
.None;
166
persistRules =
AccessControlSections
.Access;
168
persistRules |=
AccessControlSections
.Audit;
170
persistRules |=
AccessControlSections
.Owner;
172
persistRules |=
AccessControlSections
.Group;
184
AccessControlSections
persistSections = GetAccessControlSectionsFromChanges();
185
if (persistSections ==
AccessControlSections
.None)
sys\system\threading\semaphore.cs (3)
333
return new SemaphoreSecurity(SafeWaitHandle,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
System.Configuration (1)
System\Configuration\Internal\WriteFileContext.cs (1)
133
fileSecurity = File.GetAccessControl( source,
AccessControlSections
.Access );
System.Core (17)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (3)
638
return new MemoryMappedFileSecurity(_handle,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
System\IO\MemoryMappedFiles\MemoryMappedFileSecurity.cs (1)
60
internal MemoryMappedFileSecurity(SafeMemoryMappedFileHandle safeHandle,
AccessControlSections
includeSections )
System\IO\Pipes\PipeSecurity.cs (10)
237
internal PipeSecurity(SafePipeHandle safeHandle,
AccessControlSections
includeSections)
400
private
AccessControlSections
GetAccessControlSectionsFromChanges() {
401
AccessControlSections
persistRules =
AccessControlSections
.None;
403
persistRules =
AccessControlSections
.Access;
405
persistRules |=
AccessControlSections
.Audit;
407
persistRules |=
AccessControlSections
.Owner;
409
persistRules |=
AccessControlSections
.Group;
424
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
441
AccessControlSections
persistRules = GetAccessControlSectionsFromChanges();
System\IO\Pipes\PipeStream.cs (3)
973
return new PipeSecurity(m_handle,
AccessControlSections
.Access |
AccessControlSections
.Owner |
AccessControlSections
.Group);
System.Web (3)
Configuration\RemoteWebConfigurationHostServer.cs (3)
294
AccessControlSections
.Access |
295
AccessControlSections
.Audit);
301
AccessControlSections
.Access);