Documentation
¶
Index ¶
- func DefaultProfile() *seccomp.Seccomp
- type Config
- func (c *Config) IsDisabled() bool
- func (c *Config) LoadDefaultProfile() error
- func (c *Config) LoadProfile(profilePath string) error
- func (c *Config) NotifierPath() string
- func (c *Config) Profile() *seccomp.Seccomp
- func (c *Config) SetNotifierPath(path string)
- func (c *Config) Setup(ctx context.Context, sys *imagetypes.SystemContext, msgChan chan Notification, ...) (*Notifier, string, error)
- type Notification
- type Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultProfile ¶ added in v1.24.0
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the global seccomp configuration type.
func (*Config) IsDisabled ¶
func (*Config) LoadDefaultProfile ¶ added in v1.25.0
LoadDefaultProfile sets the internal default profile.
func (*Config) LoadProfile ¶
LoadProfile can be used to load a seccomp profile from the provided path. This method will not fail if seccomp is disabled.
func (*Config) NotifierPath ¶ added in v1.26.0
NotifierPath returns the currently used seccomp notifier base path.
func (*Config) SetNotifierPath ¶ added in v1.26.0
SetNotifierPath sets the default path for creating seccomp notifier sockets.
func (*Config) Setup ¶ added in v1.21.0
func (c *Config) Setup( ctx context.Context, sys *imagetypes.SystemContext, msgChan chan Notification, containerID, containerName string, sandboxAnnotations, imageAnnotations map[string]string, specGenerator *generate.Generator, profileField *types.SecurityProfile, ) (*Notifier, string, error)
Setup can be used to setup the seccomp profile.
type Notification ¶ added in v1.26.0
type Notification struct{}
Notification is a seccomp notification which gets sent to the CRI-O server.
func (*Notification) ContainerID ¶ added in v1.26.0
func (*Notification) ContainerID() string
func (*Notification) Ctx ¶ added in v1.26.0
func (*Notification) Ctx() context.Context
func (*Notification) Syscall ¶ added in v1.26.0
func (*Notification) Syscall() string
type Notifier ¶ added in v1.26.0
type Notifier struct{}
Notifier wraps a seccomp notifier instance for a container.
func NewNotifier ¶ added in v1.26.0
func NewNotifier( ctx context.Context, msgChan chan Notification, containerID, listenerPath string, annotationMap map[string]string, ) (*Notifier, error)
NewNotifier starts the notifier for the provided arguments.
func (*Notifier) AddSyscall ¶ added in v1.26.0
func (*Notifier) StopContainers ¶ added in v1.26.0
func (*Notifier) UsedSyscalls ¶ added in v1.26.0
Click to show internal directories.
Click to hide internal directories.