diff --git a/src/ApiService/ApiService/OneFuzzTypes/Enums.cs b/src/ApiService/ApiService/OneFuzzTypes/Enums.cs index d0498cdbe0..e8b2358273 100644 --- a/src/ApiService/ApiService/OneFuzzTypes/Enums.cs +++ b/src/ApiService/ApiService/OneFuzzTypes/Enums.cs @@ -89,6 +89,7 @@ public enum ContainerType { Analysis, Coverage, Crashes, + CrashDumps, Inputs, NoRepro, ReadonlyInputs, diff --git a/src/ApiService/ApiService/onefuzzlib/Defs.cs b/src/ApiService/ApiService/onefuzzlib/Defs.cs index b1692094f4..327af4c9f0 100644 --- a/src/ApiService/ApiService/onefuzzlib/Defs.cs +++ b/src/ApiService/ApiService/onefuzzlib/Defs.cs @@ -1,7 +1,6 @@ namespace Microsoft.OneFuzz.Service; public static class Defs { - public static readonly IReadOnlyDictionary TASK_DEFINITIONS = new Dictionary() { { TaskType.Coverage , new TaskDefinition( @@ -162,6 +161,12 @@ public static class Defs { Value:1, Permissions: ContainerPermission.Write ), + new ContainerDefinition( + Type:ContainerType.CrashDumps, + Compare: Compare.Equal, + Value:1, + Permissions: ContainerPermission.Write + ), new ContainerDefinition( Type: ContainerType.Inputs, Compare: Compare.Equal, @@ -234,19 +239,23 @@ public static class Defs { Vm: new VmDefinition(Compare: Compare.AtLeast, Value: 1), Containers: new[] { new ContainerDefinition( - Type:ContainerType.Setup, + Type: ContainerType.Setup, Compare: Compare.Equal, - Value:1, + Value: 1, Permissions: ContainerPermission.Read | ContainerPermission.List ), new ContainerDefinition( - Type:ContainerType.Crashes, + Type: ContainerType.Crashes, Compare: Compare.Equal, - Value:1, + Value: 1, Permissions: ContainerPermission.Write - - - ), + ), + new ContainerDefinition( + Type: ContainerType.CrashDumps, + Compare: Compare.Equal, + Value: 1, + Permissions: ContainerPermission.Write + ), new ContainerDefinition( Type: ContainerType.Inputs, Compare: Compare.Equal, @@ -407,8 +416,6 @@ public static class Defs { Compare: Compare.Equal, Value:1, Permissions: ContainerPermission.Write - - ), new ContainerDefinition( Type: ContainerType.Inputs,