aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/seccomp/seccomp.go
diff options
context:
space:
mode:
Diffstat (limited to 'helper/seccomp/seccomp.go')
-rw-r--r--helper/seccomp/seccomp.go9
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