Skip to content

Commit 67bd2ab

Browse files
authored
Merge pull request opencontainers#1442 from clnperez/libcontainer-sys-unix
Move libcontainer to x/sys/unix
2 parents d7c264a + 9ed7e9b commit 67bd2ab

40 files changed

+649
-651
lines changed

checkpoint.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"fmt"
77
"strconv"
88
"strings"
9-
"syscall"
109

1110
"github.com/opencontainers/runc/libcontainer"
1211
"github.com/opencontainers/runtime-spec/specs-go"
1312
"github.com/urfave/cli"
13+
14+
"golang.org/x/sys/unix"
1415
)
1516

1617
var checkpointCommand = cli.Command{
@@ -113,7 +114,7 @@ func setManageCgroupsMode(context *cli.Context, options *libcontainer.CriuOpts)
113114
}
114115

115116
var namespaceMapping = map[specs.LinuxNamespaceType]int{
116-
specs.NetworkNamespace: syscall.CLONE_NEWNET,
117+
specs.NetworkNamespace: unix.CLONE_NEWNET,
117118
}
118119

119120
func setEmptyNsMask(context *cli.Context, options *libcontainer.CriuOpts) error {

0 commit comments

Comments
 (0)