summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/fsutil
diff options
context:
space:
mode:
authorNeel Natu <neelnatu@google.com>2018-07-16 12:19:02 -0700
committerShentubot <shentubot@google.com>2018-07-16 12:20:05 -0700
commit8f21c0bb2807888d812318def43c2405c9b13f5a (patch)
tree5ddaa634acbad46a248954e32dc0b901624ad42b /pkg/sentry/fs/fsutil
parent9059983fdb2cf64a08152d2aab648b6660b9631b (diff)
Add EventOperations.HostFD()
This method allows an eventfd inside the Sentry to be registered with with the host kernel. Update comment about memory mapping host fds via CachingInodeOperations. PiperOrigin-RevId: 204784859 Change-Id: I55823321e2d84c17ae0f7efaabc6b55b852ae257
Diffstat (limited to 'pkg/sentry/fs/fsutil')
-rw-r--r--pkg/sentry/fs/fsutil/inode_cached.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/sentry/fs/fsutil/inode_cached.go b/pkg/sentry/fs/fsutil/inode_cached.go
index 7c0f96ac2..cba642a8f 100644
--- a/pkg/sentry/fs/fsutil/inode_cached.go
+++ b/pkg/sentry/fs/fsutil/inode_cached.go
@@ -44,8 +44,7 @@ import (
//
// CachingInodeOperations implements Mappable for the CachedFileObject:
//
-// - If CachedFileObject.FD returns a value >= 0 and the current platform shares
-// a host fd table with the sentry, then the value of CachedFileObject.FD
+// - If CachedFileObject.FD returns a value >= 0 then the file descriptor
// will be memory mapped on the host.
//
// - Otherwise, the contents of CachedFileObject are buffered into memory