Can not write file , even the directory has permission to read/write
Description
Please take a look the screen, thank you.
Steps to reproduce
No response
runsc version
docker version (if using docker)
uname
No response
kubectl (if using Kubernetes)
repo state (if built from source)
No response
runsc debug logs (if available)
Do you observe the same behavior with similar permissions on a non-NFS mountpoint? I'm wondering if this is NFS-specific.
Do you observe the same behavior with similar permissions on a non-NFS mountpoint? I'm wondering if this is NFS-specific.
Yes, maybe NFS-specific.
- /localdisk/fid work
- /nfs/fid NOT WORK
- /tmpfs/fid work
PS: runc runtime work for all above mount point
For NFS mounts, we set disable_file_handle_sharing mount option: https://github.com/google/gvisor/blob/c238e15234feef339823ad328f7c1208d0b276d7/runsc/cmd/gofer.go#L744-L750
So it may have something to do with that option, in which gofer filesystem uses gofer.specialFileFD for regular files.