fuse: do not allow mapping a non-regular backing file
authorAmir Goldstein <amir73il@gmail.com>
Thu, 10 Jul 2025 10:08:30 +0000 (12:08 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 26 Aug 2025 10:43:31 +0000 (12:43 +0200)
commite9c8da670e749f7dedc53e3af54a87b041918092
tree10365d6dcb523866db1fe7424ce8422dfdcc7c0b
parent1b237f190eb3d36f52dffe07a40b5eb210280e00
fuse: do not allow mapping a non-regular backing file

We do not support passthrough operations other than read/write on
regular file, so allowing non-regular backing files makes no sense.

Fixes: efad7153bf93 ("fuse: allow O_PATH fd for FUSE_DEV_IOC_BACKING_OPEN")
Cc: stable@vger.kernel.org
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/passthrough.c