common

package
v0.0.0-...-9016431 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package common holds common related files

Package common holds common related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdSocketPath

func GetCmdSocketPath(socketPath string, cmdSocketPath string) (string, error)

GetCmdSocketPath returns the path to the cmd socket for system-probe <-> security-agent communication it will use the cmd_socket config if set, otherwise it will use the socket config as a base

func GetFamilyAddress

func GetFamilyAddress(path string) string

GetFamilyAddress returns the address famility to use for system-probe <-> security-agent communication

func NewContainerFilter

func NewContainerFilter(cfg model.Config, prefix string) (*containers.Filter, error)

NewContainerFilter returns a new include/exclude filter for containers

func NewLogContext

func NewLogContext(logsConfig *logsconfig.LogsConfigKeys, endpointPrefix string, intakeTrackType logsconfig.IntakeTrackType, intakeOrigin logsconfig.IntakeOrigin, intakeProtocol logsconfig.IntakeProtocol) (*logsconfig.Endpoints, *client.DestinationsContext, error)

NewLogContext returns the context fields to send events to the intake

func NewLogContextCompliance

func NewLogContextCompliance() (*logsconfig.Endpoints, *client.DestinationsContext, error)

NewLogContextCompliance returns the context fields to send compliance events to the intake

func NewLogContextRuntime

func NewLogContextRuntime(useSecRuntimeTrack bool) (*logsconfig.Endpoints, *client.DestinationsContext, error)

NewLogContextRuntime returns the context fields to send runtime (CWS) events to the intake This function will only be used on Linux. The only platforms where the runtime agent runs

func NewLogContextSecInfo

func NewLogContextSecInfo() (*logsconfig.Endpoints, *client.DestinationsContext, error)

NewLogContextSecInfo returns the context fields to send remediation events to the intake

func QueryAccountIDTag

func QueryAccountIDTag() string

QueryAccountIDTag returns the account id tag matching the current deployment

Types

type NoopStatusProvider

type NoopStatusProvider struct{}

NoopStatusProvider is a no-op implementation of the StatusProvider interface

func (*NoopStatusProvider) AddGlobalWarning

func (n *NoopStatusProvider) AddGlobalWarning(string, string)

AddGlobalWarning is a no-op implementation of the StatusProvider interface

func (*NoopStatusProvider) RemoveGlobalWarning

func (n *NoopStatusProvider) RemoveGlobalWarning(string)

RemoveGlobalWarning is a no-op implementation of the StatusProvider interface

type RawReporter

type RawReporter interface {
	ReportRaw(content []byte, service string, timestamp time.Time, tags ...string)
}

RawReporter defines an interface for reporting raw rule events

type StaticHostnameService

type StaticHostnameService struct {
	// contains filtered or unexported fields
}

StaticHostnameService is a hostname service that returns a fixed hostname

func NewStaticHostnameService

func NewStaticHostnameService(hostname string) *StaticHostnameService

NewStaticHostnameService creates a new hostname service that returns the provided hostname

func (*StaticHostnameService) Get

Get returns the fixed hostname

func (*StaticHostnameService) GetSafe

GetSafe returns the fixed hostname

func (*StaticHostnameService) GetWithProvider

GetWithProvider returns the fixed hostname with "static" as the provider

type TrackType

type TrackType = logsconfig.IntakeTrackType

TrackType represents the type of track for event routing

const (

	// SecRuntime is the track type for secruntime events
	SecRuntime TrackType = "secruntime"
	// Logs is the track type for logs events
	Logs TrackType = "logs"
	// SecInfo is the track type for secinfo events
	SecInfo TrackType = "secinfo"
)

Directories

Path Synopsis
Package usergroup holds usergroup related files
Package usergroup holds usergroup related files

Jump to

Keyboard shortcuts

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