tree: 27218167dfae032d2b75b28b0a37e36e4b771d8a [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. fuse_main.cc
  5. fuse_main.h
  6. operation_throttle.cc
  7. operation_throttle.h
  8. operation_throttle_test.cc
  9. org.chromium.VirtualFileProvider.conf
  10. org.chromium.VirtualFileProvider.service
  11. service.cc
  12. service.h
  13. size_map.cc
  14. size_map.h
  15. util.cc
  16. util.h
  17. virtual-file-provider-jailed.sh
  18. virtual_file_provider.cc
virtual_file_provider/README.md

Virtual File Provider

Virtual File Provider is a service which provides file descriptors which forward access requests to chrome. From the accessing process‘s perspective, the file descriptor behaves like a regular file descriptor (unlike pipe, it’s seekable), while actually there is no real file associated with it.

Private FUSE file system

To forward access requests on file descriptors, this service implements a FUSE file system which is only accessible to this service itself.

D-Bus interface

This service provides only one D-Bus method, OpenFile(). When OpenFile() is called, it generates a new unique ID, opens a file descriptor on the private FUSE file system, and returns the ID and the FD to the caller. The caller should remember the ID to handle access requests later. When the FD is being accessed, this service sends signal to forward the access request to chrome.