From fe7d208cf76fa6f24bb9d12ba29b5ed61d837ce3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 13 Feb 2025 23:15:34 +0900 Subject: helper: use generic extra files interface This replaces the pipes object and integrates context into helper process lifecycle. Signed-off-by: Ophestra --- helper/seccomp/seccomp.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'helper/seccomp/seccomp.go') diff --git a/helper/seccomp/seccomp.go b/helper/seccomp/seccomp.go index affe369c..a8cf8bb2 100644 --- a/helper/seccomp/seccomp.go +++ b/helper/seccomp/seccomp.go @@ -9,7 +9,6 @@ import "C" import ( "errors" "fmt" - "os" "runtime" ) @@ -47,14 +46,6 @@ const ( FlagBluetooth SyscallOpts = C.F_BLUETOOTH ) -func tmpfile() (*os.File, error) { - fd, err := C.f_tmpfile_fd() - if err != nil { - return nil, err - } - return os.NewFile(uintptr(fd), "tmpfile"), err -} - func exportFilter(fd uintptr, opts SyscallOpts) error { var ( arch C.uint32_t = 0 -- cgit v1.3.1