[PATCH RFC v3 44/44] selftests/filesystems: add backing file tests for pseudo files
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 16 11:29:34 UTC 2026
> Add tests that files on pseudo filesystems can't be used as storage:
>
> - a procfs file attached read-only to a loop device
> - sysfs files attached read-only and read-write to a loop device
> - a sysfs file behind a lower-only overlayfs attached to a loop device
> - a symlink and a magic link to a sysfs file attached to a loop device
> - a procfs file as the backing file of an nvme target namespace
> - a procfs file as the backing file and as the protection file of a
> fileio device of the scsi target
> - a procfs file as a zloop zone file
> - a sysfs file as the backing file of a usb mass storage gadget LUN
> - a sysfs file as the source of a file-backed erofs mount
> - a sysfs file as fuse passthrough backing file, by O_PATH and by
> regular file descriptor
> - an O_PATH file descriptor of an overlayfs metacopy file whose data
> [ ... ]
>
> Reviewed-by: Alexander Mikhalitsyn <alex at amutable.com>
> Reviewed-by: Chris Down <chris at chrisdown.name>
> Tested-by: Chris Down <chris at chrisdown.name>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261116-work-loop-pseudo-v3-0-8cbbea1cf34f@kernel.org?part=44
More information about the Linux-security-module-archive
mailing list