UPSTREAM: ANDROID: fuse-bpf: Avoid reusing uint64_t for file

This moves the backing/fd files to their own space, instead of reusing
the userspace provided fds.

Bug: 222619123
Test: fuse_test passes, on cuttlefish CtsCameraTestCases passes
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Change-Id: I5d3b1ea8299f249ef5adc1ce2b7f45404a041208
This commit is contained in:
Daniel Rosenberg 2022-03-08 17:23:14 -08:00 • committed by Alexander Martinz
commit 66d1fc6d06
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2
6 changed files with 34 additions and 30 deletions

View file

@ -527,6 +527,12 @@ struct fuse_entry_bpf_out {
uint64_t bpf_fd;
};
struct fuse_entry_bpf {
struct fuse_entry_bpf_out out;
struct file *backing_file;
struct file *bpf_file;
};
struct fuse_forget_in {
uint64_t nlookup;
};