lofs mount of single file cannot be opened with O_CREAT
The following illustrates how to reproduce this.
If you have a read-only file simulating /etc/shadow (mode 400),
mount -F lofs foo bar,
then try to force write to bar, you get ENOSYS.
If you have the same thing in a directory and lofs mount the
directory instead of the file, you can write to bar.
DTrace shows we're hitting the ENOSYS exit path out of lo_create here.
Updated by Electric Monk almost 5 years ago
- Status changed from New to Closed
commit 5ffe84436efb0849931d99235105feb72ae5144d Author: Jerry Jelinek <firstname.lastname@example.org> Date: 2016-04-29T07:04:25.000Z 6863 lofs mount of single file cannot be opened with O_CREAT Reviewed by: Patrick Mooney <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>