fuse: add request extension
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 10 Nov 2022 14:46:33 +0000 (15:46 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 26 Jan 2023 16:10:37 +0000 (17:10 +0100)
commit15d937d7ca8c55d2b0ce9116e20c780fdd0b67cc
treec679eb27d286dc1630806095c040ef3de951247a
parent1b929c02afd37871d5afb9d498426f83432e71c2
fuse: add request extension

Will need to add supplementary groups to create messages, so add the
general concept of a request extension.  A request extension is appended to
the end of the main request.  It has a header indicating the size and type
of the extension.

The create security context (fuse_secctx_*) is similar to the generic
request extension, so include that as well in a backward compatible manner.

Add the total extension length to the request header.  The offset of the
extension block within the request can be calculated by:

  inh->len - inh->total_extlen * 8

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/dir.c
fs/fuse/fuse_i.h
include/uapi/linux/fuse.h