Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libbpfgo cgroup attach #196

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Libbpfgo cgroup attach #196

merged 2 commits into from
Jul 28, 2022

Commits on Jul 24, 2022

  1. BPFProg: move AttachLSM to a correct place

    - Keep doAttach...() function together
    rafaeldtinoco committed Jul 24, 2022
    Configuration menu
    Copy the full SHA
    f531670 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2022

  1. 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.
    rafaeldtinoco committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    0c5d783 View commit details
    Browse the repository at this point in the history