Skip to content

Commit

Permalink
api: add TracingPolicyMode
Browse files Browse the repository at this point in the history
Add TracingPolicyMode in protobuf file.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Feb 14, 2025
1 parent 259cc53 commit 2290361
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/v1/tetragon/sensors.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ enum TracingPolicyState {
TP_STATE_UNLOADING = 6;
}

enum TracingPolicyMode {
TP_MODE_UNKNOWN = 0;
TP_MODE_ENFORCE = 1;
TP_MODE_MONITOR = 2;
}

message TracingPolicyStatus {
// id is the id of the policy
uint64 id = 1;
Expand All @@ -69,6 +75,7 @@ message TracingPolicyStatus {
TracingPolicyState state = 9;
// the amount of kernel memory in bytes used by policy's sensors non-shared BPF maps (memlock)
uint64 kernel_memory_bytes = 10;
TracingPolicyMode mode = 11;
}

message ListTracingPoliciesResponse {
Expand Down

0 comments on commit 2290361

Please sign in to comment.