aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/seccomp/export.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-12 15:18:52 +0900
committerOphestra <cat@gensokyo.uk>2025-03-12 15:18:52 +0900
commitbe16970e770554b3c2191da41eb9bd4472b323e4 (patch)
treea1c76f09b55ce44a6e0997147e24f0713c332089 /helper/seccomp/export.go
parentdf266527f17987af4bf275cc04990bfb89a82f4a (diff)
helper/seccomp: seccomp_load on negative fd
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/seccomp/export.go')
-rw-r--r--helper/seccomp/export.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/seccomp/export.go b/helper/seccomp/export.go
index 9efee3b4..95684235 100644
--- a/helper/seccomp/export.go
+++ b/helper/seccomp/export.go
@@ -28,7 +28,7 @@ func (e *exporter) prepare() error {
ec := make(chan error, 1)
go func(fd uintptr) {
- ec <- exportFilter(fd, e.opts)
+ ec <- buildFilter(int(fd), e.opts)
close(ec)
_ = e.closeWrite()
runtime.KeepAlive(e.w)