summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/mount_test.go
diff options
context:
space:
mode:
authorDean Deng <deandeng@google.com>2020-04-07 16:16:31 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-07 16:17:40 -0700
commit693b6bdda9206a5910c552a3997b2df5480d6947 (patch)
treedc14bb5ecb3f1e7190fac8f7dbfd82aae1036826 /pkg/sentry/fs/mount_test.go
parentfc72eb3595a7c4e2fa83caa39a9bb4171875c208 (diff)
Correctly distinguish between seekable and non-seekable host fds.
Check whether an fd is seekable by calling the seek syscall and examining the return value, instead of checking the file type, which is inaccurate. PiperOrigin-RevId: 305361593
Diffstat (limited to 'pkg/sentry/fs/mount_test.go')
0 files changed, 0 insertions, 0 deletions