gvisor/pkg/sentry/fsimpl/host
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
..
BUILD Whitelist utimensat(2). 2020-03-19 23:30:21 -07:00
host.go Use host-defined file owner and mode, when possible, for imported fds. 2020-03-26 16:47:20 -07:00
ioctl_unsafe.go Port imported TTY fds to vfs2. 2020-03-18 19:12:10 -07:00
tty.go Port imported TTY fds to vfs2. 2020-03-18 19:12:10 -07:00
util.go Whitelist utimensat(2). 2020-03-19 23:30:21 -07:00
util_unsafe.go Whitelist utimensat(2). 2020-03-19 23:30:21 -07:00