Skip to content

Commit

Permalink
chore(docs): rename killer to enforcer
Browse files Browse the repository at this point in the history
closes #2517

Signed-off-by: mozillazg <[email protected]>
  • Loading branch information
mozillazg committed Sep 7, 2024
1 parent 5f6ca6e commit 9a40cd9
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion api/v1/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/tetragon/tetragon.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/tetragon/tetragon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ enum KprobeAction {
KPROBE_ACTION_TRACKSOCK = 11;
// UntrackSock action un-tracks socket.
KPROBE_ACTION_UNTRACKSOCK = 12;
// NotifyEnforcer action notifies killer sensor.
// NotifyEnforcer action notifies enforcer sensor.
KPROBE_ACTION_NOTIFYENFORCER = 13;
}

Expand Down
4 changes: 2 additions & 2 deletions bpf/process/types/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ enum {
ACTION_SIGNAL = 9,
ACTION_TRACKSOCK = 10,
ACTION_UNTRACKSOCK = 11,
ACTION_NOTIFY_KILLER = 12,
ACTION_NOTIFY_ENFORCER = 12,
};

enum {
Expand Down Expand Up @@ -2257,7 +2257,7 @@ do_action(void *ctx, __u32 i, struct selector_action *actions,
socki = actions->act[++i];
err = tracksock(e, socki, action == ACTION_TRACKSOCK);
break;
case ACTION_NOTIFY_KILLER:
case ACTION_NOTIFY_ENFORCER:
error = actions->act[++i];
signal = actions->act[++i];
do_action_notify_enforcer(error, signal);
Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/docs/reference/grpc-api.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion install/kubernetes/schemas/tracingpolicy-cilium.io.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"additionalProperties": false
},
"enforcers": {
"description": "A killer spec.",
"description": "A enforcer spec.",
"items": {
"properties": {
"calls": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"additionalProperties": false
},
"enforcers": {
"description": "A killer spec.",
"description": "A enforcer spec.",
"items": {
"properties": {
"calls": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
26 changes: 13 additions & 13 deletions pkg/api/tracingapi/client_kprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ const (
)

const (
ActionPost = 0
ActionFollowFd = 1
ActionSigKill = 2
ActionUnfollowFd = 3
ActionOverride = 4
ActionCopyFd = 5
ActionGetUrl = 6
ActionLookupDns = 7
ActionNoPost = 8
ActionSignal = 9
ActionTrackSock = 10
ActionUntrackSock = 11
ActionNotifyKiller = 12
ActionPost = 0
ActionFollowFd = 1
ActionSigKill = 2
ActionUnfollowFd = 3
ActionOverride = 4
ActionCopyFd = 5
ActionGetUrl = 6
ActionLookupDns = 7
ActionNoPost = 8
ActionSignal = 9
ActionTrackSock = 10
ActionUntrackSock = 11
ActionNotifyEnforcer = 12
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/grpc/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func kprobeAction(act uint64) tetragon.KprobeAction {
return tetragon.KprobeAction_KPROBE_ACTION_TRACKSOCK
case tracingapi.ActionUntrackSock:
return tetragon.KprobeAction_KPROBE_ACTION_UNTRACKSOCK
case tracingapi.ActionNotifyKiller:
case tracingapi.ActionNotifyEnforcer:
return tetragon.KprobeAction_KPROBE_ACTION_NOTIFYENFORCER
default:
return tetragon.KprobeAction_KPROBE_ACTION_UNKNOWN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ spec:
type: object
type: object
enforcers:
description: A killer spec.
description: A enforcer spec.
items:
properties:
calls:
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/tracing_policy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type TracingPolicySpec struct {
Lists []ListSpec `json:"lists,omitempty"`

// +kubebuilder:validation:Optional
// A killer spec.
// A enforcer spec.
Enforcers []EnforcerSpec `json:"enforcers,omitempty"`

// +kubebuilder:validation:Optional
Expand Down

0 comments on commit 9a40cd9

Please sign in to comment.