SeaBee
Loading...
Searching...
No Matches
Macros | Enumerations | Functions | Variables
seabee_utils.h File Reference
#include <bpf/vmlinux.h>
#include <bpf/bpf_helpers.h>
#include "seabee_maps.h"
#include "shared_rust_types.h"
#include "logging.h"
#include "logging_types.h"
Include dependency graph for seabee_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZERO   0
 An alias for the literal number 0.
 
#define ALLOW   0
 LSM return code for allowing an operation to continue.
 
#define DENY   -1
 LSM return code for denying an operation.
 

Enumerations

enum  object_type { OBJECT_TYPE_INODE , OBJECT_TYPE_TASK , OBJECT_TYPE_MAP }
 

Functions

struct task_struct * get_task ()
 gets the task for the current context
 

Variables

struct inode_storage inode_storage
 local storage for inodes
 
struct task_storage task_storage
 local storage for tasks
 
struct policy_map policy_map
 Hashmap from policy id to policy config.
 
struct map_to_pol_id map_to_pol_id
 maps a map id to a policy id
 

Variable Documentation

◆ inode_storage

local storage for inodes

local storage for inodes

◆ task_storage

struct task_storage task_storage
extern

local storage for tasks

local storage for tasks