diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-13 23:15:34 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-13 23:34:15 +0900 |
| commit | fe7d208cf76fa6f24bb9d12ba29b5ed61d837ce3 (patch) | |
| tree | cac02af50a13b2078739a8f5a74d219f3b60833d /helper/seccomp/seccomp.go | |
| parent | 60c287375048b21eab2bd82f1e7d43e36dcfb3a2 (diff) | |
helper: use generic extra files interface
This replaces the pipes object and integrates context into helper process lifecycle.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/seccomp/seccomp.go')
| -rw-r--r-- | helper/seccomp/seccomp.go | 9 |
1 files changed, 0 insertions, 9 deletions
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 |
