diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-12 15:18:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-12 15:18:52 +0900 |
| commit | be16970e770554b3c2191da41eb9bd4472b323e4 (patch) | |
| tree | a1c76f09b55ce44a6e0997147e24f0713c332089 /helper/seccomp/api.go | |
| parent | df266527f17987af4bf275cc04990bfb89a82f4a (diff) | |
helper/seccomp: seccomp_load on negative fd
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/seccomp/api.go')
| -rw-r--r-- | helper/seccomp/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helper/seccomp/api.go b/helper/seccomp/api.go index 2799fc90..697b09f3 100644 --- a/helper/seccomp/api.go +++ b/helper/seccomp/api.go @@ -11,6 +11,9 @@ import ( // New returns an inactive Encoder instance. func New(opts SyscallOpts) *Encoder { return &Encoder{newExporter(opts)} } +// Load loads a filter into the kernel. +func Load(opts SyscallOpts) error { return buildFilter(-1, opts) } + /* An Encoder writes a BPF program to an output stream. |
