Files
mirror_zfs/module/os/linux/zfs
Ryan Moeller 4b2e20824b Intentionally allow ZFS_READONLY in zfs_write
ZFS_READONLY represents the "DOS R/O" attribute.
When that flag is set, we should behave as if write access
were not granted by anything in the ACL.  In particular:
We _must_ allow writes after opening the file r/w, then
setting the DOS R/O attribute, and writing some more.
(Similar to how you can write after fchmod(fd, 0444).)

Restore these semantics which were lost on FreeBSD when refactoring
zfs_write.  To my knowledge Linux does not actually expose this flag,
but we'll need it to eventually so I've added the supporting checks.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11693
2021-03-07 09:31:52 -08:00
..
2021-01-28 09:28:20 -08:00
2020-12-10 14:09:23 -08:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2020-11-13 13:51:51 -08:00
2020-11-10 12:42:47 -08:00
2020-10-02 17:44:10 -07:00
2020-04-10 10:33:35 -07:00
2021-03-05 14:45:13 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00