Skip to content

Commit 54d27be

Browse files
committed
libcontainer: use ParseSocketControlMessage/ParseUnixRights from x/sys/unix
Use ParseSocketControlMessage and ParseUnixRights from golang.org/x/sys/unix instead of their syscall equivalent. Signed-off-by: Tobias Klauser <[email protected]>
1 parent a0159fd commit 54d27be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcontainer/container_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,11 +1290,11 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
12901290
}
12911291
}
12921292
case notify.GetScript() == "orphan-pts-master":
1293-
scm, err := syscall.ParseSocketControlMessage(oob)
1293+
scm, err := unix.ParseSocketControlMessage(oob)
12941294
if err != nil {
12951295
return err
12961296
}
1297-
fds, err := syscall.ParseUnixRights(&scm[0])
1297+
fds, err := unix.ParseUnixRights(&scm[0])
12981298

12991299
master := os.NewFile(uintptr(fds[0]), "orphan-pts-master")
13001300
defer master.Close()

0 commit comments

Comments
 (0)