Documentation
¶
Index ¶
Constants ¶
View Source
const ( SeccompAddFdFlagSetFd = 1 SeccompUserNotifFlagContinue = 1 SeccompIocMagic = '!' )
View Source
const ( // Bypassed means that the socket is replaced by one created on the host Bypassed socketState = iota // SwitchBacked means that the socket was bypassed but now rereplaced to the socket in netns. // This state can be hannpend in connect(2), sendto(2) and sendmsg(2) // when connecting to a host outside of netns and then connecting to a host inside of netns with same fd. SwitchBacked )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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()
StartHandle starts seccomp notif handler
Click to show internal directories.
Click to hide internal directories.