Files
mirror_zfs/module/zfs
Ryan Moeller cda6fdd500 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-08 09:07:29 -08:00
..
2021-01-24 16:06:33 -08:00
2020-08-20 10:30:06 -07:00
2019-07-26 10:54:14 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2019-06-19 09:48:12 -07:00
2020-08-17 15:25:37 -07:00
2020-06-18 12:21:18 -07:00
2019-12-03 09:51:44 -08:00
2020-06-18 12:21:25 -07:00
2020-11-11 11:03:24 -08:00
2020-08-20 10:30:06 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:25:59 -07:00
2020-06-18 12:21:25 -07:00
2020-09-09 10:26:00 -07:00
2020-06-18 12:21:25 -07:00
2017-10-11 16:54:48 -04:00
2020-06-18 12:21:25 -07:00
2019-06-19 09:48:12 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2020-08-27 16:06:52 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2019-10-09 10:36:03 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:26:00 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-11-11 18:46:22 -08:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:18 -07:00
2020-09-09 10:21:16 -07:00
2020-11-17 12:20:09 -08:00