sockops

package
v1.5.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOrMountCgrpFS

func CheckOrMountCgrpFS(mapRoot string)

CheckOrMountCgrpFS this checks if the cilium cgroup2 root mount point is mounted and if not mounts it. If mapRoot is "" it will mount the default location. It is harmless to have multiple cgroupv2 root mounts so unlike BPFFS case we simply mount at the cilium default regardless if the system has another mount created by systemd or otherwise.

func SkmsgDisable

func SkmsgDisable()

SkmsgDisable "unloads" the SK_MSG program. This simply deletes the file associated with the program.

func SkmsgEnable

func SkmsgEnable() error

SkmsgEnable will compile and attach the SK_MSG programs to the sockmap. After this all sockets added to the cilium_sock_ops will have sendmsg/sendfile calls running through BPF program.

func SockmapDisable

func SockmapDisable()

SockmapDisable will detach any sockmap programs from cgroups then "unload" all the programs and maps associated with it. Here "unload" just means deleting the file associated with the map.

func SockmapEnable

func SockmapEnable() error

SockmapEnable will compile sockops programs and attach the sockops programs to the cgroup. After this all TCP connect events will be filtered by a BPF sockops program.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL