35 references to Access
aspire (2)
Utils\ConfigurationHelper.cs (2)
4204096, FileOptions.Asynchronous, new FileInfo(destination).GetAccessControl(AccessControlSections.Access)); 444? new FileInfo(destination).GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group)
Aspire.Cli.Tests (11)
Agents\AgentConfigurationTests.cs (2)
383Assert.Equal(before.GetSecurityDescriptorSddlForm(AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group), 384new FileInfo(path).GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group));
Configuration\ConfigurationHelperTests.cs (4)
204var expected = file.GetAccessControl(AccessControlSections.Access).GetSecurityDescriptorSddlForm(AccessControlSections.Access); 208Assert.Equal(expected, file.GetAccessControl(AccessControlSections.Access).GetSecurityDescriptorSddlForm(AccessControlSections.Access));
Secrets\SecretStoreResolverTests.cs (5)
475var originalPermissions = file.GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access); 476var parentPermissions = workspace.WorkspaceRoot.GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access); 481Assert.Equal(originalPermissions, file.GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access)); 485Assert.Equal(originalPermissions, file.GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access)); 486Assert.Equal(parentPermissions, workspace.WorkspaceRoot.GetAccessControl().GetSecurityDescriptorSddlForm(AccessControlSections.Access));
dotnet-aot (1)
parent\dotnet\Installer\Windows\TrustedMachinePath.cs (1)
92Validate(new DirectoryInfo(path).GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner), path);
Microsoft.DotNet.TemplateLocator (1)
src\sdk\src\Cli\dotnet\Installer\Windows\TrustedMachinePath.cs (1)
92Validate(new DirectoryInfo(path).GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner), path);
Microsoft.NET.Build.Tasks (1)
src\sdk\src\Cli\dotnet\Installer\Windows\TrustedMachinePath.cs (1)
92Validate(new DirectoryInfo(path).GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner), path);
Microsoft.NET.Sdk.WorkloadManifestReader (1)
src\sdk\src\Cli\dotnet\Installer\Windows\TrustedMachinePath.cs (1)
92Validate(new DirectoryInfo(path).GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner), path);
Microsoft.Win32.Registry (2)
Microsoft\Win32\RegistryKey.cs (1)
592return GetAccessControl(AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group);
System\Security\AccessControl\RegistrySecurity.cs (1)
138persistRules = AccessControlSections.Access;
PresentationUI (1)
MS\Internal\Documents\Application\DocumentStream.cs (1)
533FileSecurity originalSecurity = originalInfo.GetAccessControl(AccessControlSections.Access);
System.IO.FileSystem.AccessControl (4)
System\IO\FileSystemAclExtensions.cs (3)
17return new DirectorySecurity(directoryInfo.FullName, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 39return GetAccessControl(fileInfo, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 75return new FileSecurity(handle, AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group);
System\Security\AccessControl\FileSystemSecurity.cs (1)
107persistRules = AccessControlSections.Access;
System.Security.AccessControl (5)
System\Security\AccessControl\NativeObjectSecurity.cs (1)
204if ((includeSections & AccessControlSections.Access) != 0 && _securityDescriptor.IsDiscretionaryAclPresent)
System\Security\AccessControl\ObjectSecurity.cs (1)
97if ((includeSections & AccessControlSections.Access) != 0)
System\Security\AccessControl\ObjectSecurityT.cs (1)
240persistRules = AccessControlSections.Access;
System\Security\AccessControl\SecurityDescriptor.cs (1)
173if ((includeSections & AccessControlSections.Access) != 0)
System\Security\AccessControl\Win32.cs (1)
82if ((accessControlSections & AccessControlSections.Access) != 0)
System.Threading.AccessControl (6)
System\Security\AccessControl\EventWaitHandleSecurity.cs (1)
162persistRules |= AccessControlSections.Access;
System\Security\AccessControl\MutexSecurity.cs (1)
156persistRules |= AccessControlSections.Access;
System\Security\AccessControl\SemaphoreSecurity.cs (1)
150persistRules |= AccessControlSections.Access;
System\Threading\ThreadingAclExtensions.cs (3)
16return new EventWaitHandleSecurity(handle.GetSafeWaitHandle(), AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 28return new MutexSecurity(mutex.GetSafeWaitHandle(), AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group); 40return new SemaphoreSecurity(semaphore.GetSafeWaitHandle(), AccessControlSections.Access | AccessControlSections.Owner | AccessControlSections.Group);