Registry / security / elastic-go-seccomp-bpf

elastic-go-seccomp-bpf

JSON →
library1.6.0gogounverified

Package seccomp provides a way to install a syscall filter for a Linux process using seccomp BPF filters.

go get github.com/elastic/go-seccomp-bpf
INSTALL
IMPORT
SIG · ELASTIC-GO-SECCOMP
E
elastic-go-seccomp-bpf
securitygov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

seccomp
github.com/elastic/go-seccomp-bpf

Load a seccomp BPF filter

package main import ( "fmt" "github.com/elastic/go-seccomp-bpf" ) func main() { filter := seccomp.Filter{ DefaultAction: seccomp.Allow, } if err := seccomp.LoadFilter(filter); err != nil { fmt.Println(err) return } fmt.Println("Seccomp filter loaded") }
Debug
Known issues
gotchaOnly works on Linux systems with seccomp support
fix
Ensure the application runs on a Linux kernel with seccomp enabled
affects: >=0.0.0
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
elastic-go-seccomp-bpf — go get elastic-go-seccomp-bpf · libregistry