Add Bpf Prog Type for CGROUP_SOCK_ADDR
When loading a BPF program check for CGROUP_SOCK_ADDR program type. Bug: 179733303 Change-Id: I0464052065ec6f77a639a12a8dd343b7bf6f6ef8
This commit is contained in:
parent
eb61b739ae
commit
25c028576d
1 changed files with 3 additions and 2 deletions
|
|
@ -28,9 +28,9 @@
|
|||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// This is BpfLoader v0.4
|
||||
// This is BpfLoader v0.5
|
||||
#define BPFLOADER_VERSION_MAJOR 0u
|
||||
#define BPFLOADER_VERSION_MINOR 4u
|
||||
#define BPFLOADER_VERSION_MINOR 5u
|
||||
#define BPFLOADER_VERSION ((BPFLOADER_VERSION_MAJOR << 16) | BPFLOADER_VERSION_MINOR)
|
||||
|
||||
#include "../progs/include/bpf_map_def.h"
|
||||
|
|
@ -95,6 +95,7 @@ sectionType sectionNameTypes[] = {
|
|||
{"schedact", BPF_PROG_TYPE_SCHED_ACT},
|
||||
{"cgroupsock", BPF_PROG_TYPE_CGROUP_SOCK},
|
||||
{"xdp", BPF_PROG_TYPE_XDP},
|
||||
{"cgroupsockaddr", BPF_PROG_TYPE_CGROUP_SOCK_ADDR},
|
||||
|
||||
/* End of table */
|
||||
{"END", BPF_PROG_TYPE_UNSPEC},
|
||||
|
|
|
|||
Loading…
Reference in a new issue