summaryrefslogtreecommitdiff
path: root/pkg/criu/criu.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/criu/criu.go')
-rw-r--r--pkg/criu/criu.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/criu/criu.go b/pkg/criu/criu.go
index b54870abc..6570159d7 100644
--- a/pkg/criu/criu.go
+++ b/pkg/criu/criu.go
@@ -28,6 +28,11 @@ func CheckForCriu(version int) bool {
return result
}
+func GetCriuVestion() (int, error) {
+ c := criu.MakeCriu()
+ return c.GetCriuVersion()
+}
+
func MemTrack() bool {
features, err := criu.MakeCriu().FeatureCheck(
&rpc.CriuFeatures{