diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-13 19:11:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-13 19:11:52 +0200 |
| commit | 6c1335b3538dabc82b4931d4bf13a36f86c4666e (patch) | |
| tree | 3f8971f8b3d81ba09637ee39c9f5e238072edb51 /maps.bpf.h | |
| parent | ef80f577771e95c0843658d65ced3dd069634471 (diff) | |
can pass flags to BPF
Diffstat (limited to 'maps.bpf.h')
| -rw-r--r-- | maps.bpf.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,16 +4,16 @@ #define MAX_FILENAME_LENGTH 256 #define MAX_PROGNAME_LENGTH 16 -struct config { +struct flags { __u32 uid_filter; }; struct { __uint(type, BPF_MAP_TYPE_HASH); __type(key, u32); - __type(value, struct config); + __type(value, struct flags); __uint(max_entries, 1 << 24); -} config_map SEC(".maps"); +} flags_map SEC(".maps"); struct open_event { __s32 fd; |
