Open control FD in gofer server (and directfs gofer client) with O_PATH. #10385
Labels
no-auto-close
stale-issue
This issue has not been updated in 120 days.
type: bug
Something isn't working
Description
The issue is that gVisor's gofer client (pkg/fsimpl/gofer/) opens the file
read-only
first and then opens it for writing, butmountpoint_s3::fuse
refuses to support that. The gofer client first caches the dentry for the file being opened. It holds a "control FD" for all the dentries it caches. This control FD is opened with O_RDONLY|O_NONBLOCK:gvisor/pkg/sentry/fsimpl/gofer/directfs_dentry.go
Lines 41 to 50 in f67e10c
I think we should change that logic to open regular files with O_PATH only. Directories and FIFOs can continue to be opened with O_RDONLY.
Originally posted by @ayushr2 in awslabs/mountpoint-s3#862 (comment)
The text was updated successfully, but these errors were encountered: