Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROCESS pidInfoPidType = iota THREAD )
View Source
const ( SeccompAddFdFlagSetFd = 1 SeccompUserNotifFlagContinue = 1 SeccompIocMagic = '!' )
View Source
const ( // NotBypassableSocket means that the fd is not socket or not bypassed NotBypassable socketState = iota // NotBypassed means that the socket is not bypassed. NotBypassed // Bypassed means that the socket is replaced by one created on the host Bypassed // Error happened after bypass. Nothing can be done to recover from this state. Error )
View Source
const ETCD_MULTINODE_PREFIX = "bypass4netns/multinode/"
Variables ¶
This section is empty.
Functions ¶
func OpenMemWithNSEnterAgent ¶ added in v0.4.0
Types ¶
type C2CConnectionHandleConfig ¶ added in v0.4.0
type ForwardPortMapping ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler creates new seccomp notif handler
func (*Handler) SetForwardingPort ¶
func (h *Handler) SetForwardingPort(mapping ForwardPortMapping) error
SetForwardingPort checks and configures port forwarding
func (*Handler) SetIgnoredSubnets ¶
SetIgnoreSubnets configures subnets to ignore in bypass4netns.
func (*Handler) SetReadyFd ¶
SetReadyFd configure ready notification file descriptor
func (*Handler) StartHandle ¶
func (h *Handler) StartHandle(c2cConfig *C2CConnectionHandleConfig, multinodeConfig *MultinodeConfig)
StartHandle starts seccomp notif handler
type MultinodeConfig ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.