Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 29a3a808 authored by Alessio Balsini's avatar Alessio Balsini Committed by Michael Bestas
Browse files

FROMLIST: fuse: Allocate unlikely used ioctl number for passthrough V1

The current UAPI interface for FUSE passthrough is still under
discussion upstream, thus we are reserving this ioctl number to avoid
future conflicts with user space binaries.
The user space implementation in Android will take care of doing all the
checking to fall into the most appropriate ioctl number.

Bug: 167695973
Link: https://lore.kernel.org/lkml/20210125153057.3623715-3-balsini@android.com/


Fixes: 9655e27a40d2 ("FROMLIST: fuse: Definitions and ioctl for passthrough")
Test: manual test with additional printks
Signed-off-by: default avatarAlessio Balsini <balsini@google.com>
Change-Id: I658c5ab2ebfe2b76d20685a099ac1b1fee3549cc
parent 5d232ddb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -796,6 +796,7 @@ struct fuse_in_header {
	uint32_t	padding;
};

/* fuse_passthrough_out for passthrough V1 */
struct fuse_passthrough_out {
	uint32_t	fd;
	/* For future implementation */
@@ -880,7 +881,8 @@ struct fuse_notify_retrieve_in {
/* Device ioctls: */
#define FUSE_DEV_IOC_MAGIC		229
#define FUSE_DEV_IOC_CLONE		_IOR(FUSE_DEV_IOC_MAGIC, 0, uint32_t)
#define FUSE_DEV_IOC_PASSTHROUGH_OPEN	_IOW(FUSE_DEV_IOC_MAGIC, 1, struct fuse_passthrough_out)
/* 127 is reserved for the V1 interface implementation in Android */
#define FUSE_DEV_IOC_PASSTHROUGH_OPEN	_IOW(FUSE_DEV_IOC_MAGIC, 127, struct fuse_passthrough_out)

struct fuse_lseek_in {
	uint64_t	fh;