seabee_init

Function seabee_init 

Source
pub fn seabee_init(
    config: Config,
    open_obj: &mut MaybeUninit<OpenObject>,
) -> Result<SeaBee<'_>>
Expand description

Load all of the eBPF programs in the desired configuration.

  1. The eBPF code was converted to multiple [libbpf_rs::skel] during compilation.
  2. First the ‘enforce skeleton’ containing eBPF LSM programs is loaded.
  3. Next, ‘policy skeleton’ is loaded containing programs for updating policy.
  4. Each program is attached to its hook point and pinned to the eBPF filesystem.