[PATCH RFC v2 40/42] erofs: refuse files on pseudo filesystems as backing files
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sat Nov 14 13:24:09 UTC 2026
> File-backed mounts take any regular file as the image and the same goes
> for the extra devices of such a mount. erofs reads them with the
> credentials of the mounter so this doesn't hand out anything the mounter
> couldn't read anyway. But files on pseudo filesystems aren't images.
> Refuse them just like loop does.
>
> file_check_backing() also checks that the file is open for reading. So
> a source file descriptor that erofs can't read from fails the mount
> right away instead of on the first read.
>
> 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/20261114-work-loop-pseudo-v2-0-98639a2286fb@kernel.org?part=40
More information about the Linux-security-module-archive
mailing list