This repository has been archived on 2026-03-13. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
greywall/internal/sandbox/linux_seccomp_stub.go
2025-12-25 20:47:11 -08:00

25 lines
608 B
Go

//go:build !linux
package sandbox
// SeccompFilter is a stub for non-Linux platforms.
type SeccompFilter struct {
debug bool
}
// NewSeccompFilter creates a stub seccomp filter.
func NewSeccompFilter(debug bool) *SeccompFilter {
return &SeccompFilter{debug: debug}
}
// GenerateBPFFilter returns an error on non-Linux platforms.
func (s *SeccompFilter) GenerateBPFFilter() (string, error) {
return "", nil
}
// CleanupFilter is a no-op on non-Linux platforms.
func (s *SeccompFilter) CleanupFilter(path string) {}
// DangerousSyscalls is empty on non-Linux platforms.
var DangerousSyscalls []string