gvisor/pkg/sentry/fsimpl
Dean Deng 137f361400 Use host-defined file owner and mode, when possible, for imported fds.
Using the host-defined file owner matches VFS1. It is more correct to use the
host-defined mode, since the cached value may become out of date. However,
kernfs.Inode.Mode() does not return an error--other filesystems on kernfs are
in-memory so retrieving mode should not fail. Therefore, if the host syscall
fails, we rely on a cached value instead.

Updates #1672.

PiperOrigin-RevId: 303220864
2020-03-26 16:47:20 -07:00
..
devtmpfs Inline vfs.VirtualFilesystem in Kernel struct 2020-02-14 13:40:39 -08:00
ext Combine file mode and isDir arguments 2020-03-26 08:48:04 -07:00
gofer Combine file mode and isDir arguments 2020-03-26 08:48:04 -07:00
host Use host-defined file owner and mode, when possible, for imported fds. 2020-03-26 16:47:20 -07:00
kernfs Combine file mode and isDir arguments 2020-03-26 08:48:04 -07:00
proc Combine file mode and isDir arguments 2020-03-26 08:48:04 -07:00
sys Enforce file size rlimits in VFS2 2020-03-16 16:00:49 -07:00
testutil Add remaining procfs files 2020-03-13 18:57:07 -07:00
tmpfs Combine file mode and isDir arguments 2020-03-26 08:48:04 -07:00