]> git.ipfire.org Git - thirdparty/systemd.git/commit
mountfsd: allow O_NONBLOCK on image fds
authorLennart Poettering <lennart@poettering.net>
Wed, 3 Dec 2025 08:37:07 +0000 (09:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Dec 2025 06:04:42 +0000 (07:04 +0100)
commitd4f8be786ca788d1323bb46e1ac506f95ba325ed
tree8701c3602c3572dc9952d4376c9e1d87643211b4
parent46341769b7146d6d7b80507b0b37f253dd7cfda1
mountfsd: allow O_NONBLOCK on image fds

Let's accept O_NONBLOCK on image fds. It's usually wise to open block
device with O_NONBLOCK as it means that drivers with removable media
won't block until a medium is inserted. Otherwise it has no effect. It
also has no effect when opening regular files. Since block devices and
raw devices are the only two things we accept in mountfsd, it's hence
safe to allow it.
src/mountfsd/mountwork.c