501 references to UnixFileMode
aspire (14)
Aspire.Hosting (31)
ContainerResourceBuilderExtensions.cs (6)
1165/// <param name="umask">The umask <see cref="UnixFileMode"/> permissions to exclude from the default file and folder permissions. This takes away (rather than granting) default permissions to files and folders without an explicit mode permission set.</param>
1198public static IResourceBuilder<T> WithContainerFiles<T>(this IResourceBuilder<T> builder, string destinationPath, IEnumerable<ContainerFileSystemItem> entries, int? defaultOwner = null, int? defaultGroup = null, UnixFileMode? umask = null) where T : ContainerResource
1226/// <param name="umask">The umask <see cref="UnixFileMode"/> permissions to exclude from the default file and folder permissions. This takes away (rather than granting) default permissions to files and folders without an explicit mode permission set.</param>
1269public static IResourceBuilder<T> WithContainerFiles<T>(this IResourceBuilder<T> builder, string destinationPath, Func<ContainerFileSystemCallbackContext, CancellationToken, Task<IEnumerable<ContainerFileSystemItem>>> callback, int? defaultOwner = null, int? defaultGroup = null, UnixFileMode? umask = null) where T : ContainerResource
1298/// <param name="umask">The umask <see cref="UnixFileMode"/> permissions to exclude from the default file and folder permissions. This takes away (rather than granting) default permissions to files and folders without an explicit mode permission set.</param>
1300public static IResourceBuilder<T> WithContainerFiles<T>(this IResourceBuilder<T> builder, string destinationPath, string sourcePath, int? defaultOwner = null, int? defaultGroup = null, UnixFileMode? umask = null) where T : ContainerResource
Aspire.Hosting.Docker (17)
Aspire.Hosting.Docker.Tests (3)
Aspire.Hosting.Garnet.Tests (10)
Aspire.Hosting.Kafka.Tests (10)
Aspire.Hosting.MongoDB.Tests (4)
Aspire.Hosting.MySql (5)
Aspire.Hosting.Oracle.Tests (7)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Redis.Tests (7)
Aspire.Hosting.SqlServer.Tests (10)
Aspire.Hosting.Tests (13)
aspire-server (2)
dotnet-dev-certs (8)
dotnet-user-jwts (2)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Microsoft.AspNetCore.Shared.Tests (8)
Microsoft.AspNetCore.WebUtilities.Tests (4)
Microsoft.DotNet.MacOsPkg.Tests (22)
UnpackPackTests.cs (22)
29const UnixFileMode nonExecutableFileMode = UnixFileMode.OtherRead |
30UnixFileMode.GroupRead |
31UnixFileMode.UserWrite |
32UnixFileMode.UserRead;
33const UnixFileMode executableFileMode = UnixFileMode.OtherExecute |
34UnixFileMode.OtherRead |
35UnixFileMode.GroupExecute |
36UnixFileMode.GroupRead |
37UnixFileMode.UserExecute |
38UnixFileMode.UserWrite |
39UnixFileMode.UserRead;
40private static readonly (string file, UnixFileMode mode)[] simplePkgFiles =
47private static readonly (string file, UnixFileMode mode)[] withAppPkgFiles =
54private static readonly (string file, UnixFileMode mode)[] appFiles =
61private static readonly (string file, UnixFileMode mode)[] simpleInstallerFiles =
67private static readonly (string file, UnixFileMode mode)[] withAppInstallerFiles =
191private void Unpack(string srcPath, string dstPath, (string, UnixFileMode)[] expectedFiles)
200private void Pack(string srcPath, string dstPath, (string, UnixFileMode)[] expectedFiles)
246private static void CompareContent(string basePath, (string file, UnixFileMode mode)[] expectedFiles)
248(string, UnixFileMode)[] actualFiles = Directory.GetFiles(basePath, "*.*", SearchOption.AllDirectories)
Microsoft.DotNet.SignTool (2)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
PrepareTests (1)
RepoTasks (8)
System.Diagnostics.Process (9)
System.Formats.Tar (65)
System.IO.Compression (11)
System.IO.Compression.ZipFile (24)
System.IO.MemoryMappedFiles (5)
System.Private.CoreLib (120)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (24)
14private const UnixFileMode PermissionMask =
15UnixFileMode.UserRead |
16UnixFileMode.UserWrite |
17UnixFileMode.UserExecute |
18UnixFileMode.GroupRead |
19UnixFileMode.GroupWrite |
20UnixFileMode.GroupExecute |
21UnixFileMode.OtherRead |
22UnixFileMode.OtherWrite |
23UnixFileMode.OtherExecute;
29internal const UnixFileMode DefaultCreateMode =
30UnixFileMode.UserRead |
31UnixFileMode.UserWrite |
32UnixFileMode.GroupRead |
33UnixFileMode.GroupWrite |
34UnixFileMode.OtherRead |
35UnixFileMode.OtherWrite;
166internal static SafeFileHandle OpenReadOnly(string fullPath, FileOptions options, out long fileLength, out UnixFileMode filePermissions)
173internal static SafeFileHandle Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unixCreateMode = null,
179internal static SafeFileHandle? OpenNoFollowSymlink(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, out bool wasSymlink, UnixFileMode? unixCreateMode = null,
185private static SafeFileHandle Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode openPermissions,
186out long fileLength, out UnixFileMode filePermissions, bool failForSymlink, out bool wasSymlink,
311out long fileLength, out UnixFileMode filePermissions)
346filePermissions = ((UnixFileMode)status.Mode) & PermissionMask;
System.Runtime (1)
System.Security.Cryptography (9)
Templates.Blazor.Tests (8)
Templates.Blazor.WebAssembly.Auth.Tests (8)
Templates.Blazor.WebAssembly.Tests (8)
Templates.Mvc.Tests (8)
Templates.Tests (8)