summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/fsutil/inode.go
diff options
context:
space:
mode:
authorLi Qiang <pangpei.lq@antfin.com>2019-04-09 14:56:04 -0700
committerShentubot <shentubot@google.com>2019-04-09 14:57:05 -0700
commitb3b140ea4f9e1b632463cbf83c97f58464eceeac (patch)
tree71dbeb07f58aba6b9494ad6e67765f75f2a294bd /pkg/sentry/fs/fsutil/inode.go
parent93b3c9b76c16104cbb5cc55b6f2339cb43c356b5 (diff)
syscalls: sendfile: limit the count to MAX_RW_COUNT
From sendfile spec and also the linux kernel code, we should limit the count arg to 'MAX_RW_COUNT'. This patch export 'MAX_RW_COUNT' in kernel pkg and use it in the implementation of sendfile syscall. Signed-off-by: Li Qiang <pangpei.lq@antfin.com> Change-Id: I1086fec0685587116984555abd22b07ac233fbd2 PiperOrigin-RevId: 242745831
Diffstat (limited to 'pkg/sentry/fs/fsutil/inode.go')
0 files changed, 0 insertions, 0 deletions