8#include <bpf/vmlinux.h>
9#include <bpf/bpf_helpers.h>
10#include "shared_rust_types.h"
18 __uint(type, BPF_MAP_TYPE_TASK_STORAGE);
20 __uint(map_flags, BPF_F_NO_PREALLOC);
28 __uint(type, BPF_MAP_TYPE_INODE_STORAGE);
30 __uint(map_flags, BPF_F_NO_PREALLOC);
38 __uint(type, BPF_MAP_TYPE_SK_STORAGE);
40 __uint(map_flags, BPF_F_NO_PREALLOC);
48 __uint(
type, BPF_MAP_TYPE_HASH);
61 unsigned int policy_id;
67 __uint(
type, BPF_MAP_TYPE_HASH);
71 __type(
key,
struct bpf_map *);
#define BPF_MAP_NAME_LEN
the length of the name of an eBPF map
Definition constants.h:26
Definition seabee_maps.h:60
c_policy_config contains security levels for protected objects and corresponds to a policy id.
Definition shared_rust_types.h:31
Definition seabee_maps.h:27
Definition seabee_maps.h:65
unsigned int type
Hash map so we don't have to prealloc memory.
Definition seabee_maps.h:67
struct bpf_map * key
map pointer
Definition seabee_maps.h:71
unsigned int map_flags
for more efficient memory usage
Definition seabee_maps.h:69
struct bpf_map_data value
map data
Definition seabee_maps.h:73
Definition seabee_maps.h:46
struct c_policy_config value
a seabee security policy
Definition seabee_maps.h:54
unsigned int map_flags
enables more efficient memory usage
Definition seabee_maps.h:50
u32 key
a seabee policy ID
Definition seabee_maps.h:52
unsigned int type
Hash map so we don't have to prealloc memory.
Definition seabee_maps.h:48
Definition seabee_maps.h:12
Definition seabee_maps.h:37
Definition seabee_maps.h:17