diff options
author | Andrey Ignatov <rdna@fb.com> | 2019-04-16 13:13:47 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-16 19:45:47 -0700 |
commit | f25377ee4fb1118650a08b403234aa6f57ce25a9 (patch) | |
tree | d43ca1165798dbd3e11157e0fc9d77df6ff0bf80 /certs | |
parent | e1d1dc4653ecdea55cb0e96844f88da62c65cd4f (diff) |
bpftool: Support sysctl hook
Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type
and BPF_CGROUP_SYSCTL attach type.
Example of bpftool output with sysctl program from selftests:
# bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_prog type cgroup/sysctl
# bpftool p l
9: cgroup_sysctl name sysctl_tcp_mem tag 0dd05f81a8d0d52e gpl
loaded_at 2019-04-16T12:57:27-0700 uid 0
xlated 1008B jited 623B memlock 4096B
# bpftool c a /mnt/cgroup2/bla sysctl id 9
# bpftool c t
CgroupPath
ID AttachType AttachFlags Name
/mnt/cgroup2/bla
9 sysctl sysctl_tcp_mem
# bpftool c d /mnt/cgroup2/bla sysctl id 9
# bpftool c t
CgroupPath
ID AttachType AttachFlags Name
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions