Skip to content

Commit

Permalink
bpf: track processes by cgrpid
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <tixxdz@gmail.com>
  • Loading branch information
tixxdz committed Oct 14, 2024
1 parent d8ce450 commit 7dafb65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bpf/lib/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ struct execve_map_value {
struct msg_execve_key pkey;
__u32 flags;
__u32 nspid;
__u64 cgrpid;
struct msg_ns ns;
struct msg_capabilities caps;
struct binary bin;
Expand Down
1 change: 1 addition & 0 deletions pkg/sensors/exec/execvemap/execve.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type ExecveValue struct {
Parent processapi.MsgExecveKey `align:"pkey"`
Flags uint32 `align:"flags"`
Nspid uint32 `align:"nspid"`
CgrpId uint64 `align:"cgrpid"`
Namespaces processapi.MsgNamespaces `align:"ns"`
Capabilities processapi.MsgCapabilities `align:"caps"`
Binary processapi.Binary `align:"bin"`
Expand Down

0 comments on commit 7dafb65

Please sign in to comment.