Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BPFProg: create AttachCgroup to allow Cgroup link attachments
Create AttachCgroup(string) to allow the following program types: - BPF_PROG_TYPE_CGROUP_SKB - BPF_PROG_TYPE_CGROUP_SOCK - BPF_PROG_TYPE_CGROUP_DEVICE - BPF_PROG_TYPE_CGROUP_SOCK_ADDR - BPF_PROG_TYPE_CGROUP_SYSCTL - BPF_PROG_TYPE_CGROUP_SOCKOPT to be attached to a cgroupv2 directory file descriptor, such as: - /sys/fs/cgroup/unified - /sys/fs/cgroup/unified/user.slice/user-1000.slice and on... Those eBPF program types will be triggered for all processes within the cgroupv2 they were attached to.
- Loading branch information