diff options
author | Ridwan Sharif <ridwanmsharif@google.com> | 2020-07-27 13:25:21 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-27 13:34:44 -0700 |
commit | 112eb0c5b9e6d45b58470fb5536a9fd91fb4222b (patch) | |
tree | 62fce72aae9d4f4972d7eec88ea0cefbb4c0f8ab /pkg/sentry/fsimpl/kernfs | |
parent | c8fa685cb6b562e4d8fc05c7d01968e4e12234aa (diff) |
Add device implementation for /dev/fuse
This PR adds the following:
- [x] Marshall-able structs for fuse headers
- [x] Data structures needed in /dev/fuse to communicate with the daemon server
- [x] Implementation of the device interface
- [x] Go unit tests
This change adds the `/dev/fuse` implementation. `Connection` controls the
communication between the server and the sentry. The FUSE server uses
the `FileDescription` interface to interact with the Sentry. The Sentry
implmenetation of fusefs, uses `Connection` and the Connection interface
to interact with the Server. All communication messages are in the form
of `go_marshal` backed structs defined in the ABI package.
This change also adds some go unit tests that test (pretty basically)
the interfaces and should be used as an example of an end to end FUSE
operation.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gvisor/pull/3083 from ridwanmsharif:ridwanmsharif/fuse-device-impl 69aa2ce970004938fe9f918168dfe57636ab856e
PiperOrigin-RevId: 323428180
Diffstat (limited to 'pkg/sentry/fsimpl/kernfs')
0 files changed, 0 insertions, 0 deletions