[PATCH RFC 41/41] selftests/filesystems: add backing file tests for pseudo files

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 10 09:29:53 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 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
> 
> And make sure that a memfd and another loop device still work as loop
> backing files and that loop refuses a backing file that isn't open for
> reading.
> 
> 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/20261110-work-loop-pseudo-v1-0-4c998976c6c7@kernel.org?part=41




More information about the Linux-security-module-archive mailing list