summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-05-12 00:27:13 +0000
committergVisor bot <gvisor-bot@google.com>2021-05-12 00:27:13 +0000
commitccc377e3a485ddda506be9ff0149bb936f954816 (patch)
treeeaaa3cefdce0b7680fa9bf575ba34f17a51948e4 /pkg/sentry
parent4c1436afe028fe0c45f51e1dfe9e7cd493eb8fb9 (diff)
parent49eb3da98aeb436011ec9d895727b237ec2ea93f (diff)
Merge release-20210503.0-36-g49eb3da98 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/socket/netlink/socket.go2
-rw-r--r--pkg/sentry/socket/netstack/netstack.go2
-rw-r--r--pkg/sentry/socket/socket.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/socket/netlink/socket.go b/pkg/sentry/socket/netlink/socket.go
index d75a2879f..280563d09 100644
--- a/pkg/sentry/socket/netlink/socket.go
+++ b/pkg/sentry/socket/netlink/socket.go
@@ -656,7 +656,7 @@ func dumpErrorMesage(hdr linux.NetlinkMessageHeader, ms *MessageSet, err *syserr
Type: linux.NLMSG_ERROR,
})
m.Put(&linux.NetlinkErrorMessage{
- Error: int32(-err.ToLinux().Number()),
+ Error: int32(-err.ToLinux()),
Header: hdr,
})
}
diff --git a/pkg/sentry/socket/netstack/netstack.go b/pkg/sentry/socket/netstack/netstack.go
index 455a92e53..3fd22f936 100644
--- a/pkg/sentry/socket/netstack/netstack.go
+++ b/pkg/sentry/socket/netstack/netstack.go
@@ -851,7 +851,7 @@ func getSockOptSocket(t *kernel.Task, s socket.SocketOps, ep commonEndpoint, fam
return &optP, nil
}
- optP := primitive.Int32(syserr.TranslateNetstackError(err).ToLinux().Number())
+ optP := primitive.Int32(syserr.TranslateNetstackError(err).ToLinux())
return &optP, nil
case linux.SO_PEERCRED:
diff --git a/pkg/sentry/socket/socket.go b/pkg/sentry/socket/socket.go
index 9e56487a6..353f4ade0 100644
--- a/pkg/sentry/socket/socket.go
+++ b/pkg/sentry/socket/socket.go
@@ -80,7 +80,7 @@ func sockErrCmsgToLinux(sockErr *tcpip.SockError) linux.SockErrCMsg {
}
ee := linux.SockExtendedErr{
- Errno: uint32(syserr.TranslateNetstackError(sockErr.Err).ToLinux().Number()),
+ Errno: uint32(syserr.TranslateNetstackError(sockErr.Err).ToLinux()),
Origin: errOriginToLinux(sockErr.Cause.Origin()),
Type: sockErr.Cause.Type(),
Code: sockErr.Cause.Code(),