diff options
author | Jamie Liu <jamieliu@google.com> | 2021-06-24 17:59:12 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-24 18:03:15 -0700 |
commit | ccd2d607e5b51b0940c2c267305d7b565ba99102 (patch) | |
tree | 50a71d215fac3b8a65aa15dcaff8d143aed95229 /pkg/sentry/hostfd/hostfd_linux.go | |
parent | 4470caec4e2fea10f5d116894ca6b3fc9d78789b (diff) |
Internal change.
PiperOrigin-RevId: 381375705
Diffstat (limited to 'pkg/sentry/hostfd/hostfd_linux.go')
-rw-r--r-- | pkg/sentry/hostfd/hostfd_linux.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkg/sentry/hostfd/hostfd_linux.go b/pkg/sentry/hostfd/hostfd_linux.go index 1cabc848f..e103e7296 100644 --- a/pkg/sentry/hostfd/hostfd_linux.go +++ b/pkg/sentry/hostfd/hostfd_linux.go @@ -14,5 +14,10 @@ package hostfd -// maxIov is the maximum permitted size of a struct iovec array. -const maxIov = 1024 // UIO_MAXIOV +// MaxReadWriteIov is the maximum permitted size of a struct iovec array in a +// readv, writev, preadv, or pwritev host syscall. +const MaxReadWriteIov = 1024 // UIO_MAXIOV + +// MaxSendRecvMsgIov is the maximum permitted size of a struct iovec array in a +// sendmsg or recvmsg host syscall. +const MaxSendRecvMsgIov = 1024 // UIO_MAXIOV |