Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Server side changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Feb 2, 2023
1 parent 6e5800d commit 3c95ed7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/ApiService/ApiService/OneFuzzTypes/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public enum ContainerType {
Analysis,
Coverage,
Crashes,
CrashDumps,
Inputs,
NoRepro,
ReadonlyInputs,
Expand Down
27 changes: 17 additions & 10 deletions src/ApiService/ApiService/onefuzzlib/Defs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Microsoft.OneFuzz.Service;

public static class Defs {

public static readonly IReadOnlyDictionary<TaskType, TaskDefinition> TASK_DEFINITIONS = new Dictionary<TaskType, TaskDefinition>() {
{ TaskType.Coverage ,
new TaskDefinition(
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -407,8 +416,6 @@ public static class Defs {
Compare: Compare.Equal,
Value:1,
Permissions: ContainerPermission.Write


),
new ContainerDefinition(
Type: ContainerType.Inputs,
Expand Down

0 comments on commit 3c95ed7

Please sign in to comment.