summaryrefslogtreecommitdiff
path: root/profiles/seccomp/seccomp_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/seccomp/seccomp_linux.go')
-rw-r--r--profiles/seccomp/seccomp_linux.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/profiles/seccomp/seccomp_linux.go b/profiles/seccomp/seccomp_linux.go
index c2221115d1..cddf9c4214 100644
--- a/profiles/seccomp/seccomp_linux.go
+++ b/profiles/seccomp/seccomp_linux.go
@@ -8,7 +8,6 @@ import (
"fmt"
"runtime"
- "github.com/docker/docker/pkg/parsers/kernel"
specs "github.com/opencontainers/runtime-spec/specs-go"
)
@@ -177,19 +176,3 @@ func createSpecsSyscall(names []string, action specs.LinuxSeccompAction, args []
}
return newCall
}
-
-var currentKernelVersion *kernel.VersionInfo
-
-func kernelGreaterEqualThan(v string) (bool, error) {
- version, err := kernel.ParseRelease(v)
- if err != nil {
- return false, err
- }
- if currentKernelVersion == nil {
- currentKernelVersion, err = kernel.GetKernelVersion()
- if err != nil {
- return false, err
- }
- }
- return kernel.CompareKernelVersion(*version, *currentKernelVersion) <= 0, nil
-}